AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ClusterOperationInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kafka/Kafka_EXPORTS.h>
11#include <aws/kafka/model/ClusterOperationStep.h>
12#include <aws/kafka/model/ErrorInfo.h>
13#include <aws/kafka/model/MutableClusterInfo.h>
14#include <aws/kafka/model/VpcConnectionInfo.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Kafka {
26namespace Model {
27
37 public:
38 AWS_KAFKA_API ClusterOperationInfo() = default;
41 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
50 inline const Aws::String& GetClientRequestId() const { return m_clientRequestId; }
51 inline bool ClientRequestIdHasBeenSet() const { return m_clientRequestIdHasBeenSet; }
52 template <typename ClientRequestIdT = Aws::String>
53 void SetClientRequestId(ClientRequestIdT&& value) {
54 m_clientRequestIdHasBeenSet = true;
55 m_clientRequestId = std::forward<ClientRequestIdT>(value);
56 }
57 template <typename ClientRequestIdT = Aws::String>
58 ClusterOperationInfo& WithClientRequestId(ClientRequestIdT&& value) {
59 SetClientRequestId(std::forward<ClientRequestIdT>(value));
60 return *this;
61 }
63
65
70 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
71 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
72 template <typename ClusterArnT = Aws::String>
73 void SetClusterArn(ClusterArnT&& value) {
74 m_clusterArnHasBeenSet = true;
75 m_clusterArn = std::forward<ClusterArnT>(value);
76 }
77 template <typename ClusterArnT = Aws::String>
78 ClusterOperationInfo& WithClusterArn(ClusterArnT&& value) {
79 SetClusterArn(std::forward<ClusterArnT>(value));
80 return *this;
81 }
83
85
90 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
91 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
92 template <typename CreationTimeT = Aws::Utils::DateTime>
93 void SetCreationTime(CreationTimeT&& value) {
94 m_creationTimeHasBeenSet = true;
95 m_creationTime = std::forward<CreationTimeT>(value);
96 }
97 template <typename CreationTimeT = Aws::Utils::DateTime>
98 ClusterOperationInfo& WithCreationTime(CreationTimeT&& value) {
99 SetCreationTime(std::forward<CreationTimeT>(value));
100 return *this;
101 }
103
105
110 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
111 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
112 template <typename EndTimeT = Aws::Utils::DateTime>
113 void SetEndTime(EndTimeT&& value) {
114 m_endTimeHasBeenSet = true;
115 m_endTime = std::forward<EndTimeT>(value);
116 }
117 template <typename EndTimeT = Aws::Utils::DateTime>
119 SetEndTime(std::forward<EndTimeT>(value));
120 return *this;
121 }
123
125
130 inline const ErrorInfo& GetErrorInfo() const { return m_errorInfo; }
131 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
132 template <typename ErrorInfoT = ErrorInfo>
133 void SetErrorInfo(ErrorInfoT&& value) {
134 m_errorInfoHasBeenSet = true;
135 m_errorInfo = std::forward<ErrorInfoT>(value);
136 }
137 template <typename ErrorInfoT = ErrorInfo>
138 ClusterOperationInfo& WithErrorInfo(ErrorInfoT&& value) {
139 SetErrorInfo(std::forward<ErrorInfoT>(value));
140 return *this;
141 }
143
145
150 inline const Aws::String& GetOperationArn() const { return m_operationArn; }
151 inline bool OperationArnHasBeenSet() const { return m_operationArnHasBeenSet; }
152 template <typename OperationArnT = Aws::String>
153 void SetOperationArn(OperationArnT&& value) {
154 m_operationArnHasBeenSet = true;
155 m_operationArn = std::forward<OperationArnT>(value);
156 }
157 template <typename OperationArnT = Aws::String>
158 ClusterOperationInfo& WithOperationArn(OperationArnT&& value) {
159 SetOperationArn(std::forward<OperationArnT>(value));
160 return *this;
161 }
163
165
170 inline const Aws::String& GetOperationState() const { return m_operationState; }
171 inline bool OperationStateHasBeenSet() const { return m_operationStateHasBeenSet; }
172 template <typename OperationStateT = Aws::String>
173 void SetOperationState(OperationStateT&& value) {
174 m_operationStateHasBeenSet = true;
175 m_operationState = std::forward<OperationStateT>(value);
176 }
177 template <typename OperationStateT = Aws::String>
178 ClusterOperationInfo& WithOperationState(OperationStateT&& value) {
179 SetOperationState(std::forward<OperationStateT>(value));
180 return *this;
181 }
183
185
190 inline const Aws::Vector<ClusterOperationStep>& GetOperationSteps() const { return m_operationSteps; }
191 inline bool OperationStepsHasBeenSet() const { return m_operationStepsHasBeenSet; }
192 template <typename OperationStepsT = Aws::Vector<ClusterOperationStep>>
193 void SetOperationSteps(OperationStepsT&& value) {
194 m_operationStepsHasBeenSet = true;
195 m_operationSteps = std::forward<OperationStepsT>(value);
196 }
197 template <typename OperationStepsT = Aws::Vector<ClusterOperationStep>>
198 ClusterOperationInfo& WithOperationSteps(OperationStepsT&& value) {
199 SetOperationSteps(std::forward<OperationStepsT>(value));
200 return *this;
201 }
202 template <typename OperationStepsT = ClusterOperationStep>
203 ClusterOperationInfo& AddOperationSteps(OperationStepsT&& value) {
204 m_operationStepsHasBeenSet = true;
205 m_operationSteps.emplace_back(std::forward<OperationStepsT>(value));
206 return *this;
207 }
209
211
216 inline const Aws::String& GetOperationType() const { return m_operationType; }
217 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
218 template <typename OperationTypeT = Aws::String>
219 void SetOperationType(OperationTypeT&& value) {
220 m_operationTypeHasBeenSet = true;
221 m_operationType = std::forward<OperationTypeT>(value);
222 }
223 template <typename OperationTypeT = Aws::String>
224 ClusterOperationInfo& WithOperationType(OperationTypeT&& value) {
225 SetOperationType(std::forward<OperationTypeT>(value));
226 return *this;
227 }
229
231
237 inline const MutableClusterInfo& GetSourceClusterInfo() const { return m_sourceClusterInfo; }
238 inline bool SourceClusterInfoHasBeenSet() const { return m_sourceClusterInfoHasBeenSet; }
239 template <typename SourceClusterInfoT = MutableClusterInfo>
240 void SetSourceClusterInfo(SourceClusterInfoT&& value) {
241 m_sourceClusterInfoHasBeenSet = true;
242 m_sourceClusterInfo = std::forward<SourceClusterInfoT>(value);
243 }
244 template <typename SourceClusterInfoT = MutableClusterInfo>
245 ClusterOperationInfo& WithSourceClusterInfo(SourceClusterInfoT&& value) {
246 SetSourceClusterInfo(std::forward<SourceClusterInfoT>(value));
247 return *this;
248 }
250
252
258 inline const MutableClusterInfo& GetTargetClusterInfo() const { return m_targetClusterInfo; }
259 inline bool TargetClusterInfoHasBeenSet() const { return m_targetClusterInfoHasBeenSet; }
260 template <typename TargetClusterInfoT = MutableClusterInfo>
261 void SetTargetClusterInfo(TargetClusterInfoT&& value) {
262 m_targetClusterInfoHasBeenSet = true;
263 m_targetClusterInfo = std::forward<TargetClusterInfoT>(value);
264 }
265 template <typename TargetClusterInfoT = MutableClusterInfo>
266 ClusterOperationInfo& WithTargetClusterInfo(TargetClusterInfoT&& value) {
267 SetTargetClusterInfo(std::forward<TargetClusterInfoT>(value));
268 return *this;
269 }
271
273
279 inline const VpcConnectionInfo& GetVpcConnectionInfo() const { return m_vpcConnectionInfo; }
280 inline bool VpcConnectionInfoHasBeenSet() const { return m_vpcConnectionInfoHasBeenSet; }
281 template <typename VpcConnectionInfoT = VpcConnectionInfo>
282 void SetVpcConnectionInfo(VpcConnectionInfoT&& value) {
283 m_vpcConnectionInfoHasBeenSet = true;
284 m_vpcConnectionInfo = std::forward<VpcConnectionInfoT>(value);
285 }
286 template <typename VpcConnectionInfoT = VpcConnectionInfo>
287 ClusterOperationInfo& WithVpcConnectionInfo(VpcConnectionInfoT&& value) {
288 SetVpcConnectionInfo(std::forward<VpcConnectionInfoT>(value));
289 return *this;
290 }
292 private:
293 Aws::String m_clientRequestId;
294
295 Aws::String m_clusterArn;
296
297 Aws::Utils::DateTime m_creationTime{};
298
299 Aws::Utils::DateTime m_endTime{};
300
301 ErrorInfo m_errorInfo;
302
303 Aws::String m_operationArn;
304
305 Aws::String m_operationState;
306
307 Aws::Vector<ClusterOperationStep> m_operationSteps;
308
309 Aws::String m_operationType;
310
311 MutableClusterInfo m_sourceClusterInfo;
312
313 MutableClusterInfo m_targetClusterInfo;
314
315 VpcConnectionInfo m_vpcConnectionInfo;
316 bool m_clientRequestIdHasBeenSet = false;
317 bool m_clusterArnHasBeenSet = false;
318 bool m_creationTimeHasBeenSet = false;
319 bool m_endTimeHasBeenSet = false;
320 bool m_errorInfoHasBeenSet = false;
321 bool m_operationArnHasBeenSet = false;
322 bool m_operationStateHasBeenSet = false;
323 bool m_operationStepsHasBeenSet = false;
324 bool m_operationTypeHasBeenSet = false;
325 bool m_sourceClusterInfoHasBeenSet = false;
326 bool m_targetClusterInfoHasBeenSet = false;
327 bool m_vpcConnectionInfoHasBeenSet = false;
328};
329
330} // namespace Model
331} // namespace Kafka
332} // namespace Aws
const Aws::String & GetOperationState() const
void SetClientRequestId(ClientRequestIdT &&value)
ClusterOperationInfo & WithErrorInfo(ErrorInfoT &&value)
AWS_KAFKA_API ClusterOperationInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterOperationInfo & WithClientRequestId(ClientRequestIdT &&value)
void SetOperationType(OperationTypeT &&value)
AWS_KAFKA_API ClusterOperationInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClientRequestId() const
ClusterOperationInfo & WithClusterArn(ClusterArnT &&value)
AWS_KAFKA_API ClusterOperationInfo()=default
void SetTargetClusterInfo(TargetClusterInfoT &&value)
ClusterOperationInfo & WithOperationSteps(OperationStepsT &&value)
const Aws::Vector< ClusterOperationStep > & GetOperationSteps() const
ClusterOperationInfo & WithCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetSourceClusterInfo(SourceClusterInfoT &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOperationState(OperationStateT &&value)
const VpcConnectionInfo & GetVpcConnectionInfo() const
void SetVpcConnectionInfo(VpcConnectionInfoT &&value)
ClusterOperationInfo & WithSourceClusterInfo(SourceClusterInfoT &&value)
void SetCreationTime(CreationTimeT &&value)
ClusterOperationInfo & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
void SetOperationSteps(OperationStepsT &&value)
const MutableClusterInfo & GetSourceClusterInfo() const
const MutableClusterInfo & GetTargetClusterInfo() const
ClusterOperationInfo & WithOperationType(OperationTypeT &&value)
ClusterOperationInfo & WithOperationArn(OperationArnT &&value)
ClusterOperationInfo & AddOperationSteps(OperationStepsT &&value)
ClusterOperationInfo & WithOperationState(OperationStateT &&value)
ClusterOperationInfo & WithVpcConnectionInfo(VpcConnectionInfoT &&value)
ClusterOperationInfo & WithTargetClusterInfo(TargetClusterInfoT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue