AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ClusterOperationV2.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/ClusterOperationV2Provisioned.h>
11#include <aws/kafka/model/ClusterOperationV2Serverless.h>
12#include <aws/kafka/model/ClusterType.h>
13#include <aws/kafka/model/ErrorInfo.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Kafka {
25namespace Model {
26
35 public:
36 AWS_KAFKA_API ClusterOperationV2() = default;
39 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
47 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
48 template <typename ClusterArnT = Aws::String>
49 void SetClusterArn(ClusterArnT&& value) {
50 m_clusterArnHasBeenSet = true;
51 m_clusterArn = std::forward<ClusterArnT>(value);
52 }
53 template <typename ClusterArnT = Aws::String>
54 ClusterOperationV2& WithClusterArn(ClusterArnT&& value) {
55 SetClusterArn(std::forward<ClusterArnT>(value));
56 return *this;
57 }
59
61
65 inline ClusterType GetClusterType() const { return m_clusterType; }
66 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
67 inline void SetClusterType(ClusterType value) {
68 m_clusterTypeHasBeenSet = true;
69 m_clusterType = value;
70 }
72 SetClusterType(value);
73 return *this;
74 }
76
78
82 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
83 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
84 template <typename StartTimeT = Aws::Utils::DateTime>
85 void SetStartTime(StartTimeT&& value) {
86 m_startTimeHasBeenSet = true;
87 m_startTime = std::forward<StartTimeT>(value);
88 }
89 template <typename StartTimeT = Aws::Utils::DateTime>
90 ClusterOperationV2& WithStartTime(StartTimeT&& value) {
91 SetStartTime(std::forward<StartTimeT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
102 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
103 template <typename EndTimeT = Aws::Utils::DateTime>
104 void SetEndTime(EndTimeT&& value) {
105 m_endTimeHasBeenSet = true;
106 m_endTime = std::forward<EndTimeT>(value);
107 }
108 template <typename EndTimeT = Aws::Utils::DateTime>
109 ClusterOperationV2& WithEndTime(EndTimeT&& value) {
110 SetEndTime(std::forward<EndTimeT>(value));
111 return *this;
112 }
114
116
121 inline const ErrorInfo& GetErrorInfo() const { return m_errorInfo; }
122 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
123 template <typename ErrorInfoT = ErrorInfo>
124 void SetErrorInfo(ErrorInfoT&& value) {
125 m_errorInfoHasBeenSet = true;
126 m_errorInfo = std::forward<ErrorInfoT>(value);
127 }
128 template <typename ErrorInfoT = ErrorInfo>
129 ClusterOperationV2& WithErrorInfo(ErrorInfoT&& value) {
130 SetErrorInfo(std::forward<ErrorInfoT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetOperationArn() const { return m_operationArn; }
141 inline bool OperationArnHasBeenSet() const { return m_operationArnHasBeenSet; }
142 template <typename OperationArnT = Aws::String>
143 void SetOperationArn(OperationArnT&& value) {
144 m_operationArnHasBeenSet = true;
145 m_operationArn = std::forward<OperationArnT>(value);
146 }
147 template <typename OperationArnT = Aws::String>
148 ClusterOperationV2& WithOperationArn(OperationArnT&& value) {
149 SetOperationArn(std::forward<OperationArnT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::String& GetOperationState() const { return m_operationState; }
160 inline bool OperationStateHasBeenSet() const { return m_operationStateHasBeenSet; }
161 template <typename OperationStateT = Aws::String>
162 void SetOperationState(OperationStateT&& value) {
163 m_operationStateHasBeenSet = true;
164 m_operationState = std::forward<OperationStateT>(value);
165 }
166 template <typename OperationStateT = Aws::String>
167 ClusterOperationV2& WithOperationState(OperationStateT&& value) {
168 SetOperationState(std::forward<OperationStateT>(value));
169 return *this;
170 }
172
174
178 inline const Aws::String& GetOperationType() const { return m_operationType; }
179 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
180 template <typename OperationTypeT = Aws::String>
181 void SetOperationType(OperationTypeT&& value) {
182 m_operationTypeHasBeenSet = true;
183 m_operationType = std::forward<OperationTypeT>(value);
184 }
185 template <typename OperationTypeT = Aws::String>
186 ClusterOperationV2& WithOperationType(OperationTypeT&& value) {
187 SetOperationType(std::forward<OperationTypeT>(value));
188 return *this;
189 }
191
193
197 inline const ClusterOperationV2Provisioned& GetProvisioned() const { return m_provisioned; }
198 inline bool ProvisionedHasBeenSet() const { return m_provisionedHasBeenSet; }
199 template <typename ProvisionedT = ClusterOperationV2Provisioned>
200 void SetProvisioned(ProvisionedT&& value) {
201 m_provisionedHasBeenSet = true;
202 m_provisioned = std::forward<ProvisionedT>(value);
203 }
204 template <typename ProvisionedT = ClusterOperationV2Provisioned>
205 ClusterOperationV2& WithProvisioned(ProvisionedT&& value) {
206 SetProvisioned(std::forward<ProvisionedT>(value));
207 return *this;
208 }
210
212
216 inline const ClusterOperationV2Serverless& GetServerless() const { return m_serverless; }
217 inline bool ServerlessHasBeenSet() const { return m_serverlessHasBeenSet; }
218 template <typename ServerlessT = ClusterOperationV2Serverless>
219 void SetServerless(ServerlessT&& value) {
220 m_serverlessHasBeenSet = true;
221 m_serverless = std::forward<ServerlessT>(value);
222 }
223 template <typename ServerlessT = ClusterOperationV2Serverless>
224 ClusterOperationV2& WithServerless(ServerlessT&& value) {
225 SetServerless(std::forward<ServerlessT>(value));
226 return *this;
227 }
229 private:
230 Aws::String m_clusterArn;
231
232 ClusterType m_clusterType{ClusterType::NOT_SET};
233
234 Aws::Utils::DateTime m_startTime{};
235
236 Aws::Utils::DateTime m_endTime{};
237
238 ErrorInfo m_errorInfo;
239
240 Aws::String m_operationArn;
241
242 Aws::String m_operationState;
243
244 Aws::String m_operationType;
245
246 ClusterOperationV2Provisioned m_provisioned;
247
248 ClusterOperationV2Serverless m_serverless;
249 bool m_clusterArnHasBeenSet = false;
250 bool m_clusterTypeHasBeenSet = false;
251 bool m_startTimeHasBeenSet = false;
252 bool m_endTimeHasBeenSet = false;
253 bool m_errorInfoHasBeenSet = false;
254 bool m_operationArnHasBeenSet = false;
255 bool m_operationStateHasBeenSet = false;
256 bool m_operationTypeHasBeenSet = false;
257 bool m_provisionedHasBeenSet = false;
258 bool m_serverlessHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace Kafka
263} // namespace Aws
ClusterOperationV2 & WithClusterType(ClusterType value)
ClusterOperationV2 & WithOperationState(OperationStateT &&value)
ClusterOperationV2 & WithClusterArn(ClusterArnT &&value)
void SetClusterArn(ClusterArnT &&value)
AWS_KAFKA_API ClusterOperationV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOperationArn(OperationArnT &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetOperationType(OperationTypeT &&value)
const ClusterOperationV2Provisioned & GetProvisioned() const
ClusterOperationV2 & WithEndTime(EndTimeT &&value)
const ClusterOperationV2Serverless & GetServerless() const
void SetProvisioned(ProvisionedT &&value)
const Aws::String & GetClusterArn() const
AWS_KAFKA_API ClusterOperationV2()=default
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterOperationV2 & WithOperationType(OperationTypeT &&value)
ClusterOperationV2 & WithOperationArn(OperationArnT &&value)
ClusterOperationV2 & WithProvisioned(ProvisionedT &&value)
ClusterOperationV2 & WithServerless(ServerlessT &&value)
const Aws::String & GetOperationType() const
ClusterOperationV2 & WithStartTime(StartTimeT &&value)
void SetOperationState(OperationStateT &&value)
AWS_KAFKA_API ClusterOperationV2(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOperationArn() const
const Aws::Utils::DateTime & GetEndTime() const
ClusterOperationV2 & WithErrorInfo(ErrorInfoT &&value)
const Aws::String & GetOperationState() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue