AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
KxCluster.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/finspace/Finspace_EXPORTS.h>
11#include <aws/finspace/model/KxAzMode.h>
12#include <aws/finspace/model/KxClusterStatus.h>
13#include <aws/finspace/model/KxClusterType.h>
14#include <aws/finspace/model/Volume.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace finspace {
26namespace Model {
27
33class KxCluster {
34 public:
35 AWS_FINSPACE_API KxCluster() = default;
36 AWS_FINSPACE_API KxCluster(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FINSPACE_API KxCluster& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
51 inline KxClusterStatus GetStatus() const { return m_status; }
52 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
53 inline void SetStatus(KxClusterStatus value) {
54 m_statusHasBeenSet = true;
55 m_status = value;
56 }
58 SetStatus(value);
59 return *this;
60 }
62
64
67 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
68 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
69 template <typename StatusReasonT = Aws::String>
70 void SetStatusReason(StatusReasonT&& value) {
71 m_statusReasonHasBeenSet = true;
72 m_statusReason = std::forward<StatusReasonT>(value);
73 }
74 template <typename StatusReasonT = Aws::String>
75 KxCluster& WithStatusReason(StatusReasonT&& value) {
76 SetStatusReason(std::forward<StatusReasonT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetClusterName() const { return m_clusterName; }
86 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
87 template <typename ClusterNameT = Aws::String>
88 void SetClusterName(ClusterNameT&& value) {
89 m_clusterNameHasBeenSet = true;
90 m_clusterName = std::forward<ClusterNameT>(value);
91 }
92 template <typename ClusterNameT = Aws::String>
93 KxCluster& WithClusterName(ClusterNameT&& value) {
94 SetClusterName(std::forward<ClusterNameT>(value));
95 return *this;
96 }
98
100
125 inline KxClusterType GetClusterType() const { return m_clusterType; }
126 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
127 inline void SetClusterType(KxClusterType value) {
128 m_clusterTypeHasBeenSet = true;
129 m_clusterType = value;
130 }
132 SetClusterType(value);
133 return *this;
134 }
136
138
141 inline const Aws::String& GetClusterDescription() const { return m_clusterDescription; }
142 inline bool ClusterDescriptionHasBeenSet() const { return m_clusterDescriptionHasBeenSet; }
143 template <typename ClusterDescriptionT = Aws::String>
144 void SetClusterDescription(ClusterDescriptionT&& value) {
145 m_clusterDescriptionHasBeenSet = true;
146 m_clusterDescription = std::forward<ClusterDescriptionT>(value);
147 }
148 template <typename ClusterDescriptionT = Aws::String>
149 KxCluster& WithClusterDescription(ClusterDescriptionT&& value) {
150 SetClusterDescription(std::forward<ClusterDescriptionT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
160 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
161 template <typename ReleaseLabelT = Aws::String>
162 void SetReleaseLabel(ReleaseLabelT&& value) {
163 m_releaseLabelHasBeenSet = true;
164 m_releaseLabel = std::forward<ReleaseLabelT>(value);
165 }
166 template <typename ReleaseLabelT = Aws::String>
167 KxCluster& WithReleaseLabel(ReleaseLabelT&& value) {
168 SetReleaseLabel(std::forward<ReleaseLabelT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Vector<Volume>& GetVolumes() const { return m_volumes; }
178 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
179 template <typename VolumesT = Aws::Vector<Volume>>
180 void SetVolumes(VolumesT&& value) {
181 m_volumesHasBeenSet = true;
182 m_volumes = std::forward<VolumesT>(value);
183 }
184 template <typename VolumesT = Aws::Vector<Volume>>
185 KxCluster& WithVolumes(VolumesT&& value) {
186 SetVolumes(std::forward<VolumesT>(value));
187 return *this;
188 }
189 template <typename VolumesT = Volume>
190 KxCluster& AddVolumes(VolumesT&& value) {
191 m_volumesHasBeenSet = true;
192 m_volumes.emplace_back(std::forward<VolumesT>(value));
193 return *this;
194 }
196
198
204 inline const Aws::String& GetInitializationScript() const { return m_initializationScript; }
205 inline bool InitializationScriptHasBeenSet() const { return m_initializationScriptHasBeenSet; }
206 template <typename InitializationScriptT = Aws::String>
207 void SetInitializationScript(InitializationScriptT&& value) {
208 m_initializationScriptHasBeenSet = true;
209 m_initializationScript = std::forward<InitializationScriptT>(value);
210 }
211 template <typename InitializationScriptT = Aws::String>
212 KxCluster& WithInitializationScript(InitializationScriptT&& value) {
213 SetInitializationScript(std::forward<InitializationScriptT>(value));
214 return *this;
215 }
217
219
224 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
225 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
226 template <typename ExecutionRoleT = Aws::String>
227 void SetExecutionRole(ExecutionRoleT&& value) {
228 m_executionRoleHasBeenSet = true;
229 m_executionRole = std::forward<ExecutionRoleT>(value);
230 }
231 template <typename ExecutionRoleT = Aws::String>
232 KxCluster& WithExecutionRole(ExecutionRoleT&& value) {
233 SetExecutionRole(std::forward<ExecutionRoleT>(value));
234 return *this;
235 }
237
239
245 inline KxAzMode GetAzMode() const { return m_azMode; }
246 inline bool AzModeHasBeenSet() const { return m_azModeHasBeenSet; }
247 inline void SetAzMode(KxAzMode value) {
248 m_azModeHasBeenSet = true;
249 m_azMode = value;
250 }
252 SetAzMode(value);
253 return *this;
254 }
256
258
261 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
262 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
263 template <typename AvailabilityZoneIdT = Aws::String>
264 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
265 m_availabilityZoneIdHasBeenSet = true;
266 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
267 }
268 template <typename AvailabilityZoneIdT = Aws::String>
269 KxCluster& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
270 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
271 return *this;
272 }
274
276
281 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
282 inline bool LastModifiedTimestampHasBeenSet() const { return m_lastModifiedTimestampHasBeenSet; }
283 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
284 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) {
285 m_lastModifiedTimestampHasBeenSet = true;
286 m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value);
287 }
288 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
289 KxCluster& WithLastModifiedTimestamp(LastModifiedTimestampT&& value) {
290 SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value));
291 return *this;
292 }
294
296
301 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
302 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
303 template <typename CreatedTimestampT = Aws::Utils::DateTime>
304 void SetCreatedTimestamp(CreatedTimestampT&& value) {
305 m_createdTimestampHasBeenSet = true;
306 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
307 }
308 template <typename CreatedTimestampT = Aws::Utils::DateTime>
309 KxCluster& WithCreatedTimestamp(CreatedTimestampT&& value) {
310 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
311 return *this;
312 }
314 private:
316
317 Aws::String m_statusReason;
318
319 Aws::String m_clusterName;
320
322
323 Aws::String m_clusterDescription;
324
325 Aws::String m_releaseLabel;
326
327 Aws::Vector<Volume> m_volumes;
328
329 Aws::String m_initializationScript;
330
331 Aws::String m_executionRole;
332
333 KxAzMode m_azMode{KxAzMode::NOT_SET};
334
335 Aws::String m_availabilityZoneId;
336
337 Aws::Utils::DateTime m_lastModifiedTimestamp{};
338
339 Aws::Utils::DateTime m_createdTimestamp{};
340 bool m_statusHasBeenSet = false;
341 bool m_statusReasonHasBeenSet = false;
342 bool m_clusterNameHasBeenSet = false;
343 bool m_clusterTypeHasBeenSet = false;
344 bool m_clusterDescriptionHasBeenSet = false;
345 bool m_releaseLabelHasBeenSet = false;
346 bool m_volumesHasBeenSet = false;
347 bool m_initializationScriptHasBeenSet = false;
348 bool m_executionRoleHasBeenSet = false;
349 bool m_azModeHasBeenSet = false;
350 bool m_availabilityZoneIdHasBeenSet = false;
351 bool m_lastModifiedTimestampHasBeenSet = false;
352 bool m_createdTimestampHasBeenSet = false;
353};
354
355} // namespace Model
356} // namespace finspace
357} // namespace Aws
void SetStatus(KxClusterStatus value)
Definition KxCluster.h:53
KxCluster & WithStatus(KxClusterStatus value)
Definition KxCluster.h:57
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition KxCluster.h:304
KxClusterType GetClusterType() const
Definition KxCluster.h:125
const Aws::String & GetClusterDescription() const
Definition KxCluster.h:141
bool ClusterDescriptionHasBeenSet() const
Definition KxCluster.h:142
KxCluster & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
Definition KxCluster.h:269
void SetStatusReason(StatusReasonT &&value)
Definition KxCluster.h:70
KxCluster & WithReleaseLabel(ReleaseLabelT &&value)
Definition KxCluster.h:167
void SetLastModifiedTimestamp(LastModifiedTimestampT &&value)
Definition KxCluster.h:284
bool InitializationScriptHasBeenSet() const
Definition KxCluster.h:205
bool LastModifiedTimestampHasBeenSet() const
Definition KxCluster.h:282
void SetInitializationScript(InitializationScriptT &&value)
Definition KxCluster.h:207
const Aws::Vector< Volume > & GetVolumes() const
Definition KxCluster.h:177
bool AvailabilityZoneIdHasBeenSet() const
Definition KxCluster.h:262
AWS_FINSPACE_API KxCluster(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInitializationScript() const
Definition KxCluster.h:204
bool CreatedTimestampHasBeenSet() const
Definition KxCluster.h:302
AWS_FINSPACE_API KxCluster & operator=(Aws::Utils::Json::JsonView jsonValue)
KxCluster & AddVolumes(VolumesT &&value)
Definition KxCluster.h:190
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
Definition KxCluster.h:264
KxCluster & WithClusterName(ClusterNameT &&value)
Definition KxCluster.h:93
KxCluster & WithClusterType(KxClusterType value)
Definition KxCluster.h:131
KxCluster & WithAzMode(KxAzMode value)
Definition KxCluster.h:251
const Aws::String & GetReleaseLabel() const
Definition KxCluster.h:159
KxClusterStatus GetStatus() const
Definition KxCluster.h:51
KxCluster & WithLastModifiedTimestamp(LastModifiedTimestampT &&value)
Definition KxCluster.h:289
KxCluster & WithExecutionRole(ExecutionRoleT &&value)
Definition KxCluster.h:232
const Aws::String & GetClusterName() const
Definition KxCluster.h:85
KxCluster & WithStatusReason(StatusReasonT &&value)
Definition KxCluster.h:75
AWS_FINSPACE_API KxCluster()=default
KxCluster & WithVolumes(VolumesT &&value)
Definition KxCluster.h:185
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition KxCluster.h:301
const Aws::Utils::DateTime & GetLastModifiedTimestamp() const
Definition KxCluster.h:281
void SetVolumes(VolumesT &&value)
Definition KxCluster.h:180
const Aws::String & GetAvailabilityZoneId() const
Definition KxCluster.h:261
void SetReleaseLabel(ReleaseLabelT &&value)
Definition KxCluster.h:162
KxCluster & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition KxCluster.h:309
const Aws::String & GetExecutionRole() const
Definition KxCluster.h:224
void SetClusterType(KxClusterType value)
Definition KxCluster.h:127
KxCluster & WithClusterDescription(ClusterDescriptionT &&value)
Definition KxCluster.h:149
void SetClusterDescription(ClusterDescriptionT &&value)
Definition KxCluster.h:144
AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStatusReason() const
Definition KxCluster.h:67
void SetAzMode(KxAzMode value)
Definition KxCluster.h:247
KxCluster & WithInitializationScript(InitializationScriptT &&value)
Definition KxCluster.h:212
void SetExecutionRole(ExecutionRoleT &&value)
Definition KxCluster.h:227
void SetClusterName(ClusterNameT &&value)
Definition KxCluster.h:88
bool StatusReasonHasBeenSet() const
Definition KxCluster.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue