AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ClientRequestIdT = Aws::String>
59 void SetClientRequestId(ClientRequestIdT&& value) { m_clientRequestIdHasBeenSet = true; m_clientRequestId = std::forward<ClientRequestIdT>(value); }
60 template<typename ClientRequestIdT = Aws::String>
61 ClusterOperationInfo& WithClientRequestId(ClientRequestIdT&& value) { SetClientRequestId(std::forward<ClientRequestIdT>(value)); return *this;}
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) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
74 template<typename ClusterArnT = Aws::String>
75 ClusterOperationInfo& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
77
79
84 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
85 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
86 template<typename CreationTimeT = Aws::Utils::DateTime>
87 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
88 template<typename CreationTimeT = Aws::Utils::DateTime>
89 ClusterOperationInfo& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
91
93
98 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
99 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
100 template<typename EndTimeT = Aws::Utils::DateTime>
101 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
102 template<typename EndTimeT = Aws::Utils::DateTime>
103 ClusterOperationInfo& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
105
107
112 inline const ErrorInfo& GetErrorInfo() const { return m_errorInfo; }
113 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
114 template<typename ErrorInfoT = ErrorInfo>
115 void SetErrorInfo(ErrorInfoT&& value) { m_errorInfoHasBeenSet = true; m_errorInfo = std::forward<ErrorInfoT>(value); }
116 template<typename ErrorInfoT = ErrorInfo>
117 ClusterOperationInfo& WithErrorInfo(ErrorInfoT&& value) { SetErrorInfo(std::forward<ErrorInfoT>(value)); return *this;}
119
121
126 inline const Aws::String& GetOperationArn() const { return m_operationArn; }
127 inline bool OperationArnHasBeenSet() const { return m_operationArnHasBeenSet; }
128 template<typename OperationArnT = Aws::String>
129 void SetOperationArn(OperationArnT&& value) { m_operationArnHasBeenSet = true; m_operationArn = std::forward<OperationArnT>(value); }
130 template<typename OperationArnT = Aws::String>
131 ClusterOperationInfo& WithOperationArn(OperationArnT&& value) { SetOperationArn(std::forward<OperationArnT>(value)); return *this;}
133
135
140 inline const Aws::String& GetOperationState() const { return m_operationState; }
141 inline bool OperationStateHasBeenSet() const { return m_operationStateHasBeenSet; }
142 template<typename OperationStateT = Aws::String>
143 void SetOperationState(OperationStateT&& value) { m_operationStateHasBeenSet = true; m_operationState = std::forward<OperationStateT>(value); }
144 template<typename OperationStateT = Aws::String>
145 ClusterOperationInfo& WithOperationState(OperationStateT&& value) { SetOperationState(std::forward<OperationStateT>(value)); return *this;}
147
149
154 inline const Aws::Vector<ClusterOperationStep>& GetOperationSteps() const { return m_operationSteps; }
155 inline bool OperationStepsHasBeenSet() const { return m_operationStepsHasBeenSet; }
156 template<typename OperationStepsT = Aws::Vector<ClusterOperationStep>>
157 void SetOperationSteps(OperationStepsT&& value) { m_operationStepsHasBeenSet = true; m_operationSteps = std::forward<OperationStepsT>(value); }
158 template<typename OperationStepsT = Aws::Vector<ClusterOperationStep>>
159 ClusterOperationInfo& WithOperationSteps(OperationStepsT&& value) { SetOperationSteps(std::forward<OperationStepsT>(value)); return *this;}
160 template<typename OperationStepsT = ClusterOperationStep>
161 ClusterOperationInfo& AddOperationSteps(OperationStepsT&& value) { m_operationStepsHasBeenSet = true; m_operationSteps.emplace_back(std::forward<OperationStepsT>(value)); return *this; }
163
165
170 inline const Aws::String& GetOperationType() const { return m_operationType; }
171 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
172 template<typename OperationTypeT = Aws::String>
173 void SetOperationType(OperationTypeT&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::forward<OperationTypeT>(value); }
174 template<typename OperationTypeT = Aws::String>
175 ClusterOperationInfo& WithOperationType(OperationTypeT&& value) { SetOperationType(std::forward<OperationTypeT>(value)); return *this;}
177
179
185 inline const MutableClusterInfo& GetSourceClusterInfo() const { return m_sourceClusterInfo; }
186 inline bool SourceClusterInfoHasBeenSet() const { return m_sourceClusterInfoHasBeenSet; }
187 template<typename SourceClusterInfoT = MutableClusterInfo>
188 void SetSourceClusterInfo(SourceClusterInfoT&& value) { m_sourceClusterInfoHasBeenSet = true; m_sourceClusterInfo = std::forward<SourceClusterInfoT>(value); }
189 template<typename SourceClusterInfoT = MutableClusterInfo>
190 ClusterOperationInfo& WithSourceClusterInfo(SourceClusterInfoT&& value) { SetSourceClusterInfo(std::forward<SourceClusterInfoT>(value)); return *this;}
192
194
200 inline const MutableClusterInfo& GetTargetClusterInfo() const { return m_targetClusterInfo; }
201 inline bool TargetClusterInfoHasBeenSet() const { return m_targetClusterInfoHasBeenSet; }
202 template<typename TargetClusterInfoT = MutableClusterInfo>
203 void SetTargetClusterInfo(TargetClusterInfoT&& value) { m_targetClusterInfoHasBeenSet = true; m_targetClusterInfo = std::forward<TargetClusterInfoT>(value); }
204 template<typename TargetClusterInfoT = MutableClusterInfo>
205 ClusterOperationInfo& WithTargetClusterInfo(TargetClusterInfoT&& value) { SetTargetClusterInfo(std::forward<TargetClusterInfoT>(value)); return *this;}
207
209
215 inline const VpcConnectionInfo& GetVpcConnectionInfo() const { return m_vpcConnectionInfo; }
216 inline bool VpcConnectionInfoHasBeenSet() const { return m_vpcConnectionInfoHasBeenSet; }
217 template<typename VpcConnectionInfoT = VpcConnectionInfo>
218 void SetVpcConnectionInfo(VpcConnectionInfoT&& value) { m_vpcConnectionInfoHasBeenSet = true; m_vpcConnectionInfo = std::forward<VpcConnectionInfoT>(value); }
219 template<typename VpcConnectionInfoT = VpcConnectionInfo>
220 ClusterOperationInfo& WithVpcConnectionInfo(VpcConnectionInfoT&& value) { SetVpcConnectionInfo(std::forward<VpcConnectionInfoT>(value)); return *this;}
222 private:
223
224 Aws::String m_clientRequestId;
225 bool m_clientRequestIdHasBeenSet = false;
226
227 Aws::String m_clusterArn;
228 bool m_clusterArnHasBeenSet = false;
229
230 Aws::Utils::DateTime m_creationTime{};
231 bool m_creationTimeHasBeenSet = false;
232
233 Aws::Utils::DateTime m_endTime{};
234 bool m_endTimeHasBeenSet = false;
235
236 ErrorInfo m_errorInfo;
237 bool m_errorInfoHasBeenSet = false;
238
239 Aws::String m_operationArn;
240 bool m_operationArnHasBeenSet = false;
241
242 Aws::String m_operationState;
243 bool m_operationStateHasBeenSet = false;
244
245 Aws::Vector<ClusterOperationStep> m_operationSteps;
246 bool m_operationStepsHasBeenSet = false;
247
248 Aws::String m_operationType;
249 bool m_operationTypeHasBeenSet = false;
250
251 MutableClusterInfo m_sourceClusterInfo;
252 bool m_sourceClusterInfoHasBeenSet = false;
253
254 MutableClusterInfo m_targetClusterInfo;
255 bool m_targetClusterInfoHasBeenSet = false;
256
257 VpcConnectionInfo m_vpcConnectionInfo;
258 bool m_vpcConnectionInfoHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace Kafka
263} // 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