AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
KxCluster.h
1
6#pragma once
7#include <aws/finspace/Finspace_EXPORTS.h>
8#include <aws/finspace/model/KxClusterStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/finspace/model/KxClusterType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/finspace/model/KxAzMode.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/finspace/model/Volume.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 finspace
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_FINSPACE_API KxCluster() = default;
41 AWS_FINSPACE_API KxCluster(Aws::Utils::Json::JsonView jsonValue);
42 AWS_FINSPACE_API KxCluster& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
57 inline KxClusterStatus GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
59 inline void SetStatus(KxClusterStatus value) { m_statusHasBeenSet = true; m_status = value; }
60 inline KxCluster& WithStatus(KxClusterStatus value) { SetStatus(value); return *this;}
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) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
71 template<typename StatusReasonT = Aws::String>
72 KxCluster& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
74
76
79 inline const Aws::String& GetClusterName() const { return m_clusterName; }
80 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
81 template<typename ClusterNameT = Aws::String>
82 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
83 template<typename ClusterNameT = Aws::String>
84 KxCluster& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
86
88
113 inline KxClusterType GetClusterType() const { return m_clusterType; }
114 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
115 inline void SetClusterType(KxClusterType value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
116 inline KxCluster& WithClusterType(KxClusterType value) { SetClusterType(value); return *this;}
118
120
123 inline const Aws::String& GetClusterDescription() const { return m_clusterDescription; }
124 inline bool ClusterDescriptionHasBeenSet() const { return m_clusterDescriptionHasBeenSet; }
125 template<typename ClusterDescriptionT = Aws::String>
126 void SetClusterDescription(ClusterDescriptionT&& value) { m_clusterDescriptionHasBeenSet = true; m_clusterDescription = std::forward<ClusterDescriptionT>(value); }
127 template<typename ClusterDescriptionT = Aws::String>
128 KxCluster& WithClusterDescription(ClusterDescriptionT&& value) { SetClusterDescription(std::forward<ClusterDescriptionT>(value)); return *this;}
130
132
135 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
136 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
137 template<typename ReleaseLabelT = Aws::String>
138 void SetReleaseLabel(ReleaseLabelT&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::forward<ReleaseLabelT>(value); }
139 template<typename ReleaseLabelT = Aws::String>
140 KxCluster& WithReleaseLabel(ReleaseLabelT&& value) { SetReleaseLabel(std::forward<ReleaseLabelT>(value)); return *this;}
142
144
147 inline const Aws::Vector<Volume>& GetVolumes() const { return m_volumes; }
148 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
149 template<typename VolumesT = Aws::Vector<Volume>>
150 void SetVolumes(VolumesT&& value) { m_volumesHasBeenSet = true; m_volumes = std::forward<VolumesT>(value); }
151 template<typename VolumesT = Aws::Vector<Volume>>
152 KxCluster& WithVolumes(VolumesT&& value) { SetVolumes(std::forward<VolumesT>(value)); return *this;}
153 template<typename VolumesT = Volume>
154 KxCluster& AddVolumes(VolumesT&& value) { m_volumesHasBeenSet = true; m_volumes.emplace_back(std::forward<VolumesT>(value)); return *this; }
156
158
164 inline const Aws::String& GetInitializationScript() const { return m_initializationScript; }
165 inline bool InitializationScriptHasBeenSet() const { return m_initializationScriptHasBeenSet; }
166 template<typename InitializationScriptT = Aws::String>
167 void SetInitializationScript(InitializationScriptT&& value) { m_initializationScriptHasBeenSet = true; m_initializationScript = std::forward<InitializationScriptT>(value); }
168 template<typename InitializationScriptT = Aws::String>
169 KxCluster& WithInitializationScript(InitializationScriptT&& value) { SetInitializationScript(std::forward<InitializationScriptT>(value)); return *this;}
171
173
178 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
179 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
180 template<typename ExecutionRoleT = Aws::String>
181 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
182 template<typename ExecutionRoleT = Aws::String>
183 KxCluster& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
185
187
193 inline KxAzMode GetAzMode() const { return m_azMode; }
194 inline bool AzModeHasBeenSet() const { return m_azModeHasBeenSet; }
195 inline void SetAzMode(KxAzMode value) { m_azModeHasBeenSet = true; m_azMode = value; }
196 inline KxCluster& WithAzMode(KxAzMode value) { SetAzMode(value); return *this;}
198
200
203 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
204 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
205 template<typename AvailabilityZoneIdT = Aws::String>
206 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value); }
207 template<typename AvailabilityZoneIdT = Aws::String>
208 KxCluster& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) { SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value)); return *this;}
210
212
217 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
218 inline bool LastModifiedTimestampHasBeenSet() const { return m_lastModifiedTimestampHasBeenSet; }
219 template<typename LastModifiedTimestampT = Aws::Utils::DateTime>
220 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) { m_lastModifiedTimestampHasBeenSet = true; m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value); }
221 template<typename LastModifiedTimestampT = Aws::Utils::DateTime>
222 KxCluster& WithLastModifiedTimestamp(LastModifiedTimestampT&& value) { SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value)); return *this;}
224
226
231 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
232 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
233 template<typename CreatedTimestampT = Aws::Utils::DateTime>
234 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
235 template<typename CreatedTimestampT = Aws::Utils::DateTime>
236 KxCluster& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
238 private:
239
241 bool m_statusHasBeenSet = false;
242
243 Aws::String m_statusReason;
244 bool m_statusReasonHasBeenSet = false;
245
246 Aws::String m_clusterName;
247 bool m_clusterNameHasBeenSet = false;
248
250 bool m_clusterTypeHasBeenSet = false;
251
252 Aws::String m_clusterDescription;
253 bool m_clusterDescriptionHasBeenSet = false;
254
255 Aws::String m_releaseLabel;
256 bool m_releaseLabelHasBeenSet = false;
257
258 Aws::Vector<Volume> m_volumes;
259 bool m_volumesHasBeenSet = false;
260
261 Aws::String m_initializationScript;
262 bool m_initializationScriptHasBeenSet = false;
263
264 Aws::String m_executionRole;
265 bool m_executionRoleHasBeenSet = false;
266
267 KxAzMode m_azMode{KxAzMode::NOT_SET};
268 bool m_azModeHasBeenSet = false;
269
270 Aws::String m_availabilityZoneId;
271 bool m_availabilityZoneIdHasBeenSet = false;
272
273 Aws::Utils::DateTime m_lastModifiedTimestamp{};
274 bool m_lastModifiedTimestampHasBeenSet = false;
275
276 Aws::Utils::DateTime m_createdTimestamp{};
277 bool m_createdTimestampHasBeenSet = false;
278 };
279
280} // namespace Model
281} // namespace finspace
282} // namespace Aws
void SetStatus(KxClusterStatus value)
Definition KxCluster.h:59
KxCluster & WithStatus(KxClusterStatus value)
Definition KxCluster.h:60
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition KxCluster.h:234
KxClusterType GetClusterType() const
Definition KxCluster.h:113
const Aws::String & GetClusterDescription() const
Definition KxCluster.h:123
bool ClusterDescriptionHasBeenSet() const
Definition KxCluster.h:124
KxCluster & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
Definition KxCluster.h:208
void SetStatusReason(StatusReasonT &&value)
Definition KxCluster.h:70
KxCluster & WithReleaseLabel(ReleaseLabelT &&value)
Definition KxCluster.h:140
void SetLastModifiedTimestamp(LastModifiedTimestampT &&value)
Definition KxCluster.h:220
bool InitializationScriptHasBeenSet() const
Definition KxCluster.h:165
bool LastModifiedTimestampHasBeenSet() const
Definition KxCluster.h:218
void SetInitializationScript(InitializationScriptT &&value)
Definition KxCluster.h:167
const Aws::Vector< Volume > & GetVolumes() const
Definition KxCluster.h:147
bool AvailabilityZoneIdHasBeenSet() const
Definition KxCluster.h:204
AWS_FINSPACE_API KxCluster(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInitializationScript() const
Definition KxCluster.h:164
bool CreatedTimestampHasBeenSet() const
Definition KxCluster.h:232
AWS_FINSPACE_API KxCluster & operator=(Aws::Utils::Json::JsonView jsonValue)
KxCluster & AddVolumes(VolumesT &&value)
Definition KxCluster.h:154
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
Definition KxCluster.h:206
KxCluster & WithClusterName(ClusterNameT &&value)
Definition KxCluster.h:84
KxCluster & WithClusterType(KxClusterType value)
Definition KxCluster.h:116
KxCluster & WithAzMode(KxAzMode value)
Definition KxCluster.h:196
const Aws::String & GetReleaseLabel() const
Definition KxCluster.h:135
KxClusterStatus GetStatus() const
Definition KxCluster.h:57
KxCluster & WithLastModifiedTimestamp(LastModifiedTimestampT &&value)
Definition KxCluster.h:222
KxCluster & WithExecutionRole(ExecutionRoleT &&value)
Definition KxCluster.h:183
const Aws::String & GetClusterName() const
Definition KxCluster.h:79
KxCluster & WithStatusReason(StatusReasonT &&value)
Definition KxCluster.h:72
AWS_FINSPACE_API KxCluster()=default
KxCluster & WithVolumes(VolumesT &&value)
Definition KxCluster.h:152
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition KxCluster.h:231
const Aws::Utils::DateTime & GetLastModifiedTimestamp() const
Definition KxCluster.h:217
void SetVolumes(VolumesT &&value)
Definition KxCluster.h:150
const Aws::String & GetAvailabilityZoneId() const
Definition KxCluster.h:203
void SetReleaseLabel(ReleaseLabelT &&value)
Definition KxCluster.h:138
KxCluster & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition KxCluster.h:236
const Aws::String & GetExecutionRole() const
Definition KxCluster.h:178
void SetClusterType(KxClusterType value)
Definition KxCluster.h:115
KxCluster & WithClusterDescription(ClusterDescriptionT &&value)
Definition KxCluster.h:128
void SetClusterDescription(ClusterDescriptionT &&value)
Definition KxCluster.h:126
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:195
KxCluster & WithInitializationScript(InitializationScriptT &&value)
Definition KxCluster.h:169
void SetExecutionRole(ExecutionRoleT &&value)
Definition KxCluster.h:181
void SetClusterName(ClusterNameT &&value)
Definition KxCluster.h:82
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