AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
IcebergDestinationConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/Catalog.h>
11#include <aws/kafka/model/DeadLetterQueueS3.h>
12#include <aws/kafka/model/DestinationTable.h>
13#include <aws/kafka/model/IcebergCompressionType.h>
14#include <aws/kafka/model/SchemaEvolution.h>
15#include <aws/kafka/model/TableCreation.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Kafka {
27namespace Model {
28
36 public:
37 AWS_KAFKA_API IcebergDestinationConfiguration() = default;
40 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline bool GetAppendOnly() const { return m_appendOnly; }
48 inline bool AppendOnlyHasBeenSet() const { return m_appendOnlyHasBeenSet; }
49 inline void SetAppendOnly(bool value) {
50 m_appendOnlyHasBeenSet = true;
51 m_appendOnly = value;
52 }
54 SetAppendOnly(value);
55 return *this;
56 }
58
60
64 inline const Catalog& GetCatalog() const { return m_catalog; }
65 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
66 template <typename CatalogT = Catalog>
67 void SetCatalog(CatalogT&& value) {
68 m_catalogHasBeenSet = true;
69 m_catalog = std::forward<CatalogT>(value);
70 }
71 template <typename CatalogT = Catalog>
73 SetCatalog(std::forward<CatalogT>(value));
74 return *this;
75 }
77
79
83 inline int GetDataFreshnessInSeconds() const { return m_dataFreshnessInSeconds; }
84 inline bool DataFreshnessInSecondsHasBeenSet() const { return m_dataFreshnessInSecondsHasBeenSet; }
85 inline void SetDataFreshnessInSeconds(int value) {
86 m_dataFreshnessInSecondsHasBeenSet = true;
87 m_dataFreshnessInSeconds = value;
88 }
91 return *this;
92 }
94
96
100 inline const DeadLetterQueueS3& GetDeadLetterQueueS3() const { return m_deadLetterQueueS3; }
101 inline bool DeadLetterQueueS3HasBeenSet() const { return m_deadLetterQueueS3HasBeenSet; }
102 template <typename DeadLetterQueueS3T = DeadLetterQueueS3>
103 void SetDeadLetterQueueS3(DeadLetterQueueS3T&& value) {
104 m_deadLetterQueueS3HasBeenSet = true;
105 m_deadLetterQueueS3 = std::forward<DeadLetterQueueS3T>(value);
106 }
107 template <typename DeadLetterQueueS3T = DeadLetterQueueS3>
109 SetDeadLetterQueueS3(std::forward<DeadLetterQueueS3T>(value));
110 return *this;
111 }
113
115
119 inline const Aws::Vector<DestinationTable>& GetDestinationTableList() const { return m_destinationTableList; }
120 inline bool DestinationTableListHasBeenSet() const { return m_destinationTableListHasBeenSet; }
121 template <typename DestinationTableListT = Aws::Vector<DestinationTable>>
122 void SetDestinationTableList(DestinationTableListT&& value) {
123 m_destinationTableListHasBeenSet = true;
124 m_destinationTableList = std::forward<DestinationTableListT>(value);
125 }
126 template <typename DestinationTableListT = Aws::Vector<DestinationTable>>
128 SetDestinationTableList(std::forward<DestinationTableListT>(value));
129 return *this;
130 }
131 template <typename DestinationTableListT = DestinationTable>
133 m_destinationTableListHasBeenSet = true;
134 m_destinationTableList.emplace_back(std::forward<DestinationTableListT>(value));
135 return *this;
136 }
138
140
144 inline const SchemaEvolution& GetSchemaEvolution() const { return m_schemaEvolution; }
145 inline bool SchemaEvolutionHasBeenSet() const { return m_schemaEvolutionHasBeenSet; }
146 template <typename SchemaEvolutionT = SchemaEvolution>
147 void SetSchemaEvolution(SchemaEvolutionT&& value) {
148 m_schemaEvolutionHasBeenSet = true;
149 m_schemaEvolution = std::forward<SchemaEvolutionT>(value);
150 }
151 template <typename SchemaEvolutionT = SchemaEvolution>
153 SetSchemaEvolution(std::forward<SchemaEvolutionT>(value));
154 return *this;
155 }
157
159
164 inline const Aws::String& GetServiceExecutionRoleArn() const { return m_serviceExecutionRoleArn; }
165 inline bool ServiceExecutionRoleArnHasBeenSet() const { return m_serviceExecutionRoleArnHasBeenSet; }
166 template <typename ServiceExecutionRoleArnT = Aws::String>
167 void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
168 m_serviceExecutionRoleArnHasBeenSet = true;
169 m_serviceExecutionRoleArn = std::forward<ServiceExecutionRoleArnT>(value);
170 }
171 template <typename ServiceExecutionRoleArnT = Aws::String>
173 SetServiceExecutionRoleArn(std::forward<ServiceExecutionRoleArnT>(value));
174 return *this;
175 }
177
179
183 inline const TableCreation& GetTableCreation() const { return m_tableCreation; }
184 inline bool TableCreationHasBeenSet() const { return m_tableCreationHasBeenSet; }
185 template <typename TableCreationT = TableCreation>
186 void SetTableCreation(TableCreationT&& value) {
187 m_tableCreationHasBeenSet = true;
188 m_tableCreation = std::forward<TableCreationT>(value);
189 }
190 template <typename TableCreationT = TableCreation>
192 SetTableCreation(std::forward<TableCreationT>(value));
193 return *this;
194 }
196
198
201 inline IcebergCompressionType GetCompressionType() const { return m_compressionType; }
202 inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; }
204 m_compressionTypeHasBeenSet = true;
205 m_compressionType = value;
206 }
208 SetCompressionType(value);
209 return *this;
210 }
212 private:
213 bool m_appendOnly{false};
214
215 Catalog m_catalog;
216
217 int m_dataFreshnessInSeconds{0};
218
219 DeadLetterQueueS3 m_deadLetterQueueS3;
220
221 Aws::Vector<DestinationTable> m_destinationTableList;
222
223 SchemaEvolution m_schemaEvolution;
224
225 Aws::String m_serviceExecutionRoleArn;
226
227 TableCreation m_tableCreation;
228
230 bool m_appendOnlyHasBeenSet = false;
231 bool m_catalogHasBeenSet = false;
232 bool m_dataFreshnessInSecondsHasBeenSet = false;
233 bool m_deadLetterQueueS3HasBeenSet = false;
234 bool m_destinationTableListHasBeenSet = false;
235 bool m_schemaEvolutionHasBeenSet = false;
236 bool m_serviceExecutionRoleArnHasBeenSet = false;
237 bool m_tableCreationHasBeenSet = false;
238 bool m_compressionTypeHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace Kafka
243} // namespace Aws
IcebergDestinationConfiguration & WithCatalog(CatalogT &&value)
IcebergDestinationConfiguration & WithServiceExecutionRoleArn(ServiceExecutionRoleArnT &&value)
IcebergDestinationConfiguration & WithSchemaEvolution(SchemaEvolutionT &&value)
AWS_KAFKA_API IcebergDestinationConfiguration(Aws::Utils::Json::JsonView jsonValue)
IcebergDestinationConfiguration & WithDestinationTableList(DestinationTableListT &&value)
IcebergDestinationConfiguration & WithDeadLetterQueueS3(DeadLetterQueueS3T &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
IcebergDestinationConfiguration & WithCompressionType(IcebergCompressionType value)
IcebergDestinationConfiguration & AddDestinationTableList(DestinationTableListT &&value)
IcebergDestinationConfiguration & WithTableCreation(TableCreationT &&value)
IcebergDestinationConfiguration & WithDataFreshnessInSeconds(int value)
IcebergDestinationConfiguration & WithAppendOnly(bool value)
const Aws::Vector< DestinationTable > & GetDestinationTableList() const
AWS_KAFKA_API IcebergDestinationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue