AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClusterOperationInfo.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/kafka/model/ErrorInfo.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/kafka/model/MutableClusterInfo.h>
13#include <aws/kafka/model/VpcConnectionInfo.h>
14#include <aws/kafka/model/ClusterOperationStep.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Kafka
28{
29namespace Model
30{
31
41 {
42 public:
43 AWS_KAFKA_API ClusterOperationInfo();
46 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
56 inline const Aws::String& GetClientRequestId() const{ return m_clientRequestId; }
57 inline bool ClientRequestIdHasBeenSet() const { return m_clientRequestIdHasBeenSet; }
58 inline void SetClientRequestId(const Aws::String& value) { m_clientRequestIdHasBeenSet = true; m_clientRequestId = value; }
59 inline void SetClientRequestId(Aws::String&& value) { m_clientRequestIdHasBeenSet = true; m_clientRequestId = std::move(value); }
60 inline void SetClientRequestId(const char* value) { m_clientRequestIdHasBeenSet = true; m_clientRequestId.assign(value); }
61 inline ClusterOperationInfo& WithClientRequestId(const Aws::String& value) { SetClientRequestId(value); return *this;}
62 inline ClusterOperationInfo& WithClientRequestId(Aws::String&& value) { SetClientRequestId(std::move(value)); return *this;}
63 inline ClusterOperationInfo& WithClientRequestId(const char* value) { SetClientRequestId(value); return *this;}
65
67
72 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
73 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
74 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
75 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
76 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
77 inline ClusterOperationInfo& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
78 inline ClusterOperationInfo& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
79 inline ClusterOperationInfo& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
81
83
88 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
89 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
90 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
91 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
92 inline ClusterOperationInfo& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
93 inline ClusterOperationInfo& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
95
97
102 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
103 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
104 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
105 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
106 inline ClusterOperationInfo& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
107 inline ClusterOperationInfo& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
109
111
116 inline const ErrorInfo& GetErrorInfo() const{ return m_errorInfo; }
117 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
118 inline void SetErrorInfo(const ErrorInfo& value) { m_errorInfoHasBeenSet = true; m_errorInfo = value; }
119 inline void SetErrorInfo(ErrorInfo&& value) { m_errorInfoHasBeenSet = true; m_errorInfo = std::move(value); }
120 inline ClusterOperationInfo& WithErrorInfo(const ErrorInfo& value) { SetErrorInfo(value); return *this;}
121 inline ClusterOperationInfo& WithErrorInfo(ErrorInfo&& value) { SetErrorInfo(std::move(value)); return *this;}
123
125
130 inline const Aws::String& GetOperationArn() const{ return m_operationArn; }
131 inline bool OperationArnHasBeenSet() const { return m_operationArnHasBeenSet; }
132 inline void SetOperationArn(const Aws::String& value) { m_operationArnHasBeenSet = true; m_operationArn = value; }
133 inline void SetOperationArn(Aws::String&& value) { m_operationArnHasBeenSet = true; m_operationArn = std::move(value); }
134 inline void SetOperationArn(const char* value) { m_operationArnHasBeenSet = true; m_operationArn.assign(value); }
135 inline ClusterOperationInfo& WithOperationArn(const Aws::String& value) { SetOperationArn(value); return *this;}
136 inline ClusterOperationInfo& WithOperationArn(Aws::String&& value) { SetOperationArn(std::move(value)); return *this;}
137 inline ClusterOperationInfo& WithOperationArn(const char* value) { SetOperationArn(value); return *this;}
139
141
146 inline const Aws::String& GetOperationState() const{ return m_operationState; }
147 inline bool OperationStateHasBeenSet() const { return m_operationStateHasBeenSet; }
148 inline void SetOperationState(const Aws::String& value) { m_operationStateHasBeenSet = true; m_operationState = value; }
149 inline void SetOperationState(Aws::String&& value) { m_operationStateHasBeenSet = true; m_operationState = std::move(value); }
150 inline void SetOperationState(const char* value) { m_operationStateHasBeenSet = true; m_operationState.assign(value); }
151 inline ClusterOperationInfo& WithOperationState(const Aws::String& value) { SetOperationState(value); return *this;}
152 inline ClusterOperationInfo& WithOperationState(Aws::String&& value) { SetOperationState(std::move(value)); return *this;}
153 inline ClusterOperationInfo& WithOperationState(const char* value) { SetOperationState(value); return *this;}
155
157
162 inline const Aws::Vector<ClusterOperationStep>& GetOperationSteps() const{ return m_operationSteps; }
163 inline bool OperationStepsHasBeenSet() const { return m_operationStepsHasBeenSet; }
164 inline void SetOperationSteps(const Aws::Vector<ClusterOperationStep>& value) { m_operationStepsHasBeenSet = true; m_operationSteps = value; }
165 inline void SetOperationSteps(Aws::Vector<ClusterOperationStep>&& value) { m_operationStepsHasBeenSet = true; m_operationSteps = std::move(value); }
168 inline ClusterOperationInfo& AddOperationSteps(const ClusterOperationStep& value) { m_operationStepsHasBeenSet = true; m_operationSteps.push_back(value); return *this; }
169 inline ClusterOperationInfo& AddOperationSteps(ClusterOperationStep&& value) { m_operationStepsHasBeenSet = true; m_operationSteps.push_back(std::move(value)); return *this; }
171
173
178 inline const Aws::String& GetOperationType() const{ return m_operationType; }
179 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
180 inline void SetOperationType(const Aws::String& value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
181 inline void SetOperationType(Aws::String&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::move(value); }
182 inline void SetOperationType(const char* value) { m_operationTypeHasBeenSet = true; m_operationType.assign(value); }
183 inline ClusterOperationInfo& WithOperationType(const Aws::String& value) { SetOperationType(value); return *this;}
184 inline ClusterOperationInfo& WithOperationType(Aws::String&& value) { SetOperationType(std::move(value)); return *this;}
185 inline ClusterOperationInfo& WithOperationType(const char* value) { SetOperationType(value); return *this;}
187
189
195 inline const MutableClusterInfo& GetSourceClusterInfo() const{ return m_sourceClusterInfo; }
196 inline bool SourceClusterInfoHasBeenSet() const { return m_sourceClusterInfoHasBeenSet; }
197 inline void SetSourceClusterInfo(const MutableClusterInfo& value) { m_sourceClusterInfoHasBeenSet = true; m_sourceClusterInfo = value; }
198 inline void SetSourceClusterInfo(MutableClusterInfo&& value) { m_sourceClusterInfoHasBeenSet = true; m_sourceClusterInfo = std::move(value); }
200 inline ClusterOperationInfo& WithSourceClusterInfo(MutableClusterInfo&& value) { SetSourceClusterInfo(std::move(value)); return *this;}
202
204
210 inline const MutableClusterInfo& GetTargetClusterInfo() const{ return m_targetClusterInfo; }
211 inline bool TargetClusterInfoHasBeenSet() const { return m_targetClusterInfoHasBeenSet; }
212 inline void SetTargetClusterInfo(const MutableClusterInfo& value) { m_targetClusterInfoHasBeenSet = true; m_targetClusterInfo = value; }
213 inline void SetTargetClusterInfo(MutableClusterInfo&& value) { m_targetClusterInfoHasBeenSet = true; m_targetClusterInfo = std::move(value); }
215 inline ClusterOperationInfo& WithTargetClusterInfo(MutableClusterInfo&& value) { SetTargetClusterInfo(std::move(value)); return *this;}
217
219
225 inline const VpcConnectionInfo& GetVpcConnectionInfo() const{ return m_vpcConnectionInfo; }
226 inline bool VpcConnectionInfoHasBeenSet() const { return m_vpcConnectionInfoHasBeenSet; }
227 inline void SetVpcConnectionInfo(const VpcConnectionInfo& value) { m_vpcConnectionInfoHasBeenSet = true; m_vpcConnectionInfo = value; }
228 inline void SetVpcConnectionInfo(VpcConnectionInfo&& value) { m_vpcConnectionInfoHasBeenSet = true; m_vpcConnectionInfo = std::move(value); }
230 inline ClusterOperationInfo& WithVpcConnectionInfo(VpcConnectionInfo&& value) { SetVpcConnectionInfo(std::move(value)); return *this;}
232 private:
233
234 Aws::String m_clientRequestId;
235 bool m_clientRequestIdHasBeenSet = false;
236
237 Aws::String m_clusterArn;
238 bool m_clusterArnHasBeenSet = false;
239
240 Aws::Utils::DateTime m_creationTime;
241 bool m_creationTimeHasBeenSet = false;
242
243 Aws::Utils::DateTime m_endTime;
244 bool m_endTimeHasBeenSet = false;
245
246 ErrorInfo m_errorInfo;
247 bool m_errorInfoHasBeenSet = false;
248
249 Aws::String m_operationArn;
250 bool m_operationArnHasBeenSet = false;
251
252 Aws::String m_operationState;
253 bool m_operationStateHasBeenSet = false;
254
255 Aws::Vector<ClusterOperationStep> m_operationSteps;
256 bool m_operationStepsHasBeenSet = false;
257
258 Aws::String m_operationType;
259 bool m_operationTypeHasBeenSet = false;
260
261 MutableClusterInfo m_sourceClusterInfo;
262 bool m_sourceClusterInfoHasBeenSet = false;
263
264 MutableClusterInfo m_targetClusterInfo;
265 bool m_targetClusterInfoHasBeenSet = false;
266
267 VpcConnectionInfo m_vpcConnectionInfo;
268 bool m_vpcConnectionInfoHasBeenSet = false;
269 };
270
271} // namespace Model
272} // namespace Kafka
273} // namespace Aws
ClusterOperationInfo & WithCreationTime(const Aws::Utils::DateTime &value)
void SetClientRequestId(const Aws::String &value)
void SetOperationState(const Aws::String &value)
const Aws::String & GetOperationState() const
ClusterOperationInfo & AddOperationSteps(ClusterOperationStep &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
ClusterOperationInfo & WithClusterArn(const char *value)
void SetVpcConnectionInfo(const VpcConnectionInfo &value)
AWS_KAFKA_API ClusterOperationInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterOperationInfo & WithSourceClusterInfo(const MutableClusterInfo &value)
ClusterOperationInfo & WithVpcConnectionInfo(VpcConnectionInfo &&value)
ClusterOperationInfo & WithClusterArn(Aws::String &&value)
AWS_KAFKA_API ClusterOperationInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClientRequestId() const
ClusterOperationInfo & WithOperationType(const Aws::String &value)
ClusterOperationInfo & WithOperationSteps(Aws::Vector< ClusterOperationStep > &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
ClusterOperationInfo & WithCreationTime(Aws::Utils::DateTime &&value)
ClusterOperationInfo & WithErrorInfo(ErrorInfo &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
ClusterOperationInfo & WithOperationArn(Aws::String &&value)
void SetTargetClusterInfo(const MutableClusterInfo &value)
const Aws::Vector< ClusterOperationStep > & GetOperationSteps() const
ClusterOperationInfo & WithEndTime(Aws::Utils::DateTime &&value)
ClusterOperationInfo & WithOperationType(Aws::String &&value)
void SetOperationSteps(Aws::Vector< ClusterOperationStep > &&value)
const Aws::Utils::DateTime & GetCreationTime() const
ClusterOperationInfo & WithSourceClusterInfo(MutableClusterInfo &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetClusterArn(const Aws::String &value)
ClusterOperationInfo & WithOperationState(const char *value)
ClusterOperationInfo & WithClientRequestId(const char *value)
const VpcConnectionInfo & GetVpcConnectionInfo() const
void SetVpcConnectionInfo(VpcConnectionInfo &&value)
ClusterOperationInfo & WithOperationArn(const char *value)
void SetOperationType(const Aws::String &value)
ClusterOperationInfo & AddOperationSteps(const ClusterOperationStep &value)
void SetSourceClusterInfo(const MutableClusterInfo &value)
void SetOperationSteps(const Aws::Vector< ClusterOperationStep > &value)
ClusterOperationInfo & WithOperationState(Aws::String &&value)
ClusterOperationInfo & WithClientRequestId(const Aws::String &value)
ClusterOperationInfo & WithOperationArn(const Aws::String &value)
const Aws::Utils::DateTime & GetEndTime() const
ClusterOperationInfo & WithTargetClusterInfo(const MutableClusterInfo &value)
const MutableClusterInfo & GetSourceClusterInfo() const
ClusterOperationInfo & WithOperationSteps(const Aws::Vector< ClusterOperationStep > &value)
const MutableClusterInfo & GetTargetClusterInfo() const
ClusterOperationInfo & WithClientRequestId(Aws::String &&value)
ClusterOperationInfo & WithOperationState(const Aws::String &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
ClusterOperationInfo & WithOperationType(const char *value)
ClusterOperationInfo & WithClusterArn(const Aws::String &value)
ClusterOperationInfo & WithTargetClusterInfo(MutableClusterInfo &&value)
ClusterOperationInfo & WithErrorInfo(const ErrorInfo &value)
void SetTargetClusterInfo(MutableClusterInfo &&value)
ClusterOperationInfo & WithEndTime(const Aws::Utils::DateTime &value)
ClusterOperationInfo & WithVpcConnectionInfo(const VpcConnectionInfo &value)
void SetOperationArn(const Aws::String &value)
void SetSourceClusterInfo(MutableClusterInfo &&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