AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SourceDescription.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/firehose/model/DirectPutSourceDescription.h>
9#include <aws/firehose/model/KinesisStreamSourceDescription.h>
10#include <aws/firehose/model/MSKSourceDescription.h>
11#include <aws/firehose/model/DatabaseSourceDescription.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Firehose
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_FIREHOSE_API SourceDescription() = default;
39 AWS_FIREHOSE_API SourceDescription(Aws::Utils::Json::JsonView jsonValue);
41 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const DirectPutSourceDescription& GetDirectPutSourceDescription() const { return m_directPutSourceDescription; }
49 inline bool DirectPutSourceDescriptionHasBeenSet() const { return m_directPutSourceDescriptionHasBeenSet; }
50 template<typename DirectPutSourceDescriptionT = DirectPutSourceDescription>
51 void SetDirectPutSourceDescription(DirectPutSourceDescriptionT&& value) { m_directPutSourceDescriptionHasBeenSet = true; m_directPutSourceDescription = std::forward<DirectPutSourceDescriptionT>(value); }
52 template<typename DirectPutSourceDescriptionT = DirectPutSourceDescription>
53 SourceDescription& WithDirectPutSourceDescription(DirectPutSourceDescriptionT&& value) { SetDirectPutSourceDescription(std::forward<DirectPutSourceDescriptionT>(value)); return *this;}
55
57
61 inline const KinesisStreamSourceDescription& GetKinesisStreamSourceDescription() const { return m_kinesisStreamSourceDescription; }
62 inline bool KinesisStreamSourceDescriptionHasBeenSet() const { return m_kinesisStreamSourceDescriptionHasBeenSet; }
63 template<typename KinesisStreamSourceDescriptionT = KinesisStreamSourceDescription>
64 void SetKinesisStreamSourceDescription(KinesisStreamSourceDescriptionT&& value) { m_kinesisStreamSourceDescriptionHasBeenSet = true; m_kinesisStreamSourceDescription = std::forward<KinesisStreamSourceDescriptionT>(value); }
65 template<typename KinesisStreamSourceDescriptionT = KinesisStreamSourceDescription>
66 SourceDescription& WithKinesisStreamSourceDescription(KinesisStreamSourceDescriptionT&& value) { SetKinesisStreamSourceDescription(std::forward<KinesisStreamSourceDescriptionT>(value)); return *this;}
68
70
74 inline const MSKSourceDescription& GetMSKSourceDescription() const { return m_mSKSourceDescription; }
75 inline bool MSKSourceDescriptionHasBeenSet() const { return m_mSKSourceDescriptionHasBeenSet; }
76 template<typename MSKSourceDescriptionT = MSKSourceDescription>
77 void SetMSKSourceDescription(MSKSourceDescriptionT&& value) { m_mSKSourceDescriptionHasBeenSet = true; m_mSKSourceDescription = std::forward<MSKSourceDescriptionT>(value); }
78 template<typename MSKSourceDescriptionT = MSKSourceDescription>
79 SourceDescription& WithMSKSourceDescription(MSKSourceDescriptionT&& value) { SetMSKSourceDescription(std::forward<MSKSourceDescriptionT>(value)); return *this;}
81
83
87 inline const DatabaseSourceDescription& GetDatabaseSourceDescription() const { return m_databaseSourceDescription; }
88 inline bool DatabaseSourceDescriptionHasBeenSet() const { return m_databaseSourceDescriptionHasBeenSet; }
89 template<typename DatabaseSourceDescriptionT = DatabaseSourceDescription>
90 void SetDatabaseSourceDescription(DatabaseSourceDescriptionT&& value) { m_databaseSourceDescriptionHasBeenSet = true; m_databaseSourceDescription = std::forward<DatabaseSourceDescriptionT>(value); }
91 template<typename DatabaseSourceDescriptionT = DatabaseSourceDescription>
92 SourceDescription& WithDatabaseSourceDescription(DatabaseSourceDescriptionT&& value) { SetDatabaseSourceDescription(std::forward<DatabaseSourceDescriptionT>(value)); return *this;}
94 private:
95
96 DirectPutSourceDescription m_directPutSourceDescription;
97 bool m_directPutSourceDescriptionHasBeenSet = false;
98
99 KinesisStreamSourceDescription m_kinesisStreamSourceDescription;
100 bool m_kinesisStreamSourceDescriptionHasBeenSet = false;
101
102 MSKSourceDescription m_mSKSourceDescription;
103 bool m_mSKSourceDescriptionHasBeenSet = false;
104
105 DatabaseSourceDescription m_databaseSourceDescription;
106 bool m_databaseSourceDescriptionHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Firehose
111} // namespace Aws
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
SourceDescription & WithMSKSourceDescription(MSKSourceDescriptionT &&value)
AWS_FIREHOSE_API SourceDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FIREHOSE_API SourceDescription()=default
const MSKSourceDescription & GetMSKSourceDescription() const
SourceDescription & WithDatabaseSourceDescription(DatabaseSourceDescriptionT &&value)
SourceDescription & WithDirectPutSourceDescription(DirectPutSourceDescriptionT &&value)
AWS_FIREHOSE_API SourceDescription(Aws::Utils::Json::JsonView jsonValue)
SourceDescription & WithKinesisStreamSourceDescription(KinesisStreamSourceDescriptionT &&value)
void SetDirectPutSourceDescription(DirectPutSourceDescriptionT &&value)
const KinesisStreamSourceDescription & GetKinesisStreamSourceDescription() const
const DirectPutSourceDescription & GetDirectPutSourceDescription() const
void SetDatabaseSourceDescription(DatabaseSourceDescriptionT &&value)
void SetMSKSourceDescription(MSKSourceDescriptionT &&value)
const DatabaseSourceDescription & GetDatabaseSourceDescription() const
void SetKinesisStreamSourceDescription(KinesisStreamSourceDescriptionT &&value)
Aws::Utils::Json::JsonValue JsonValue