AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Cluster.h
1
6#pragma once
7#include <aws/pcs/PCS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pcs/model/ClusterStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/pcs/model/Scheduler.h>
12#include <aws/pcs/model/Size.h>
13#include <aws/pcs/model/ClusterSlurmConfiguration.h>
14#include <aws/pcs/model/Networking.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/pcs/model/Endpoint.h>
17#include <aws/pcs/model/ErrorInfo.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace PCS
31{
32namespace Model
33{
34
40 class Cluster
41 {
42 public:
43 AWS_PCS_API Cluster();
44 AWS_PCS_API Cluster(Aws::Utils::Json::JsonView jsonValue);
47
48
50
53 inline const Aws::String& GetName() const{ return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline Cluster& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline Cluster& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline Cluster& WithName(const char* value) { SetName(value); return *this;}
62
64
67 inline const Aws::String& GetId() const{ return m_id; }
68 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
69 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
70 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
71 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
72 inline Cluster& WithId(const Aws::String& value) { SetId(value); return *this;}
73 inline Cluster& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
74 inline Cluster& WithId(const char* value) { SetId(value); return *this;}
76
78
81 inline const Aws::String& GetArn() const{ return m_arn; }
82 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
83 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
84 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
85 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
86 inline Cluster& WithArn(const Aws::String& value) { SetArn(value); return *this;}
87 inline Cluster& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
88 inline Cluster& WithArn(const char* value) { SetArn(value); return *this;}
90
92
96 inline const ClusterStatus& GetStatus() const{ return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(const ClusterStatus& value) { m_statusHasBeenSet = true; m_status = value; }
99 inline void SetStatus(ClusterStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
100 inline Cluster& WithStatus(const ClusterStatus& value) { SetStatus(value); return *this;}
101 inline Cluster& WithStatus(ClusterStatus&& value) { SetStatus(std::move(value)); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
109 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
110 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
111 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
112 inline Cluster& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
113 inline Cluster& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; }
121 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
122 inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = value; }
123 inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::move(value); }
124 inline Cluster& WithModifiedAt(const Aws::Utils::DateTime& value) { SetModifiedAt(value); return *this;}
125 inline Cluster& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(std::move(value)); return *this;}
127
129
130 inline const Scheduler& GetScheduler() const{ return m_scheduler; }
131 inline bool SchedulerHasBeenSet() const { return m_schedulerHasBeenSet; }
132 inline void SetScheduler(const Scheduler& value) { m_schedulerHasBeenSet = true; m_scheduler = value; }
133 inline void SetScheduler(Scheduler&& value) { m_schedulerHasBeenSet = true; m_scheduler = std::move(value); }
134 inline Cluster& WithScheduler(const Scheduler& value) { SetScheduler(value); return *this;}
135 inline Cluster& WithScheduler(Scheduler&& value) { SetScheduler(std::move(value)); return *this;}
137
139
145 inline const Size& GetSize() const{ return m_size; }
146 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
147 inline void SetSize(const Size& value) { m_sizeHasBeenSet = true; m_size = value; }
148 inline void SetSize(Size&& value) { m_sizeHasBeenSet = true; m_size = std::move(value); }
149 inline Cluster& WithSize(const Size& value) { SetSize(value); return *this;}
150 inline Cluster& WithSize(Size&& value) { SetSize(std::move(value)); return *this;}
152
154
157 inline const ClusterSlurmConfiguration& GetSlurmConfiguration() const{ return m_slurmConfiguration; }
158 inline bool SlurmConfigurationHasBeenSet() const { return m_slurmConfigurationHasBeenSet; }
159 inline void SetSlurmConfiguration(const ClusterSlurmConfiguration& value) { m_slurmConfigurationHasBeenSet = true; m_slurmConfiguration = value; }
160 inline void SetSlurmConfiguration(ClusterSlurmConfiguration&& value) { m_slurmConfigurationHasBeenSet = true; m_slurmConfiguration = std::move(value); }
162 inline Cluster& WithSlurmConfiguration(ClusterSlurmConfiguration&& value) { SetSlurmConfiguration(std::move(value)); return *this;}
164
166
167 inline const Networking& GetNetworking() const{ return m_networking; }
168 inline bool NetworkingHasBeenSet() const { return m_networkingHasBeenSet; }
169 inline void SetNetworking(const Networking& value) { m_networkingHasBeenSet = true; m_networking = value; }
170 inline void SetNetworking(Networking&& value) { m_networkingHasBeenSet = true; m_networking = std::move(value); }
171 inline Cluster& WithNetworking(const Networking& value) { SetNetworking(value); return *this;}
172 inline Cluster& WithNetworking(Networking&& value) { SetNetworking(std::move(value)); return *this;}
174
176
179 inline const Aws::Vector<Endpoint>& GetEndpoints() const{ return m_endpoints; }
180 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
181 inline void SetEndpoints(const Aws::Vector<Endpoint>& value) { m_endpointsHasBeenSet = true; m_endpoints = value; }
182 inline void SetEndpoints(Aws::Vector<Endpoint>&& value) { m_endpointsHasBeenSet = true; m_endpoints = std::move(value); }
183 inline Cluster& WithEndpoints(const Aws::Vector<Endpoint>& value) { SetEndpoints(value); return *this;}
184 inline Cluster& WithEndpoints(Aws::Vector<Endpoint>&& value) { SetEndpoints(std::move(value)); return *this;}
185 inline Cluster& AddEndpoints(const Endpoint& value) { m_endpointsHasBeenSet = true; m_endpoints.push_back(value); return *this; }
186 inline Cluster& AddEndpoints(Endpoint&& value) { m_endpointsHasBeenSet = true; m_endpoints.push_back(std::move(value)); return *this; }
188
190
193 inline const Aws::Vector<ErrorInfo>& GetErrorInfo() const{ return m_errorInfo; }
194 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
195 inline void SetErrorInfo(const Aws::Vector<ErrorInfo>& value) { m_errorInfoHasBeenSet = true; m_errorInfo = value; }
196 inline void SetErrorInfo(Aws::Vector<ErrorInfo>&& value) { m_errorInfoHasBeenSet = true; m_errorInfo = std::move(value); }
197 inline Cluster& WithErrorInfo(const Aws::Vector<ErrorInfo>& value) { SetErrorInfo(value); return *this;}
198 inline Cluster& WithErrorInfo(Aws::Vector<ErrorInfo>&& value) { SetErrorInfo(std::move(value)); return *this;}
199 inline Cluster& AddErrorInfo(const ErrorInfo& value) { m_errorInfoHasBeenSet = true; m_errorInfo.push_back(value); return *this; }
200 inline Cluster& AddErrorInfo(ErrorInfo&& value) { m_errorInfoHasBeenSet = true; m_errorInfo.push_back(std::move(value)); return *this; }
202 private:
203
204 Aws::String m_name;
205 bool m_nameHasBeenSet = false;
206
207 Aws::String m_id;
208 bool m_idHasBeenSet = false;
209
210 Aws::String m_arn;
211 bool m_arnHasBeenSet = false;
212
213 ClusterStatus m_status;
214 bool m_statusHasBeenSet = false;
215
216 Aws::Utils::DateTime m_createdAt;
217 bool m_createdAtHasBeenSet = false;
218
219 Aws::Utils::DateTime m_modifiedAt;
220 bool m_modifiedAtHasBeenSet = false;
221
222 Scheduler m_scheduler;
223 bool m_schedulerHasBeenSet = false;
224
225 Size m_size;
226 bool m_sizeHasBeenSet = false;
227
228 ClusterSlurmConfiguration m_slurmConfiguration;
229 bool m_slurmConfigurationHasBeenSet = false;
230
231 Networking m_networking;
232 bool m_networkingHasBeenSet = false;
233
234 Aws::Vector<Endpoint> m_endpoints;
235 bool m_endpointsHasBeenSet = false;
236
237 Aws::Vector<ErrorInfo> m_errorInfo;
238 bool m_errorInfoHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace PCS
243} // namespace Aws
Cluster & WithId(const Aws::String &value)
Definition Cluster.h:72
bool ArnHasBeenSet() const
Definition Cluster.h:82
const ClusterStatus & GetStatus() const
Definition Cluster.h:96
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Cluster.h:110
const Size & GetSize() const
Definition Cluster.h:145
void SetModifiedAt(const Aws::Utils::DateTime &value)
Definition Cluster.h:122
const Aws::String & GetName() const
Definition Cluster.h:53
Cluster & WithNetworking(const Networking &value)
Definition Cluster.h:171
bool ModifiedAtHasBeenSet() const
Definition Cluster.h:121
void SetErrorInfo(const Aws::Vector< ErrorInfo > &value)
Definition Cluster.h:195
bool NetworkingHasBeenSet() const
Definition Cluster.h:168
void SetName(Aws::String &&value)
Definition Cluster.h:56
Cluster & WithName(const char *value)
Definition Cluster.h:60
Cluster & WithStatus(const ClusterStatus &value)
Definition Cluster.h:100
void SetId(const Aws::String &value)
Definition Cluster.h:69
void SetSlurmConfiguration(ClusterSlurmConfiguration &&value)
Definition Cluster.h:160
void SetName(const Aws::String &value)
Definition Cluster.h:55
Cluster & WithModifiedAt(Aws::Utils::DateTime &&value)
Definition Cluster.h:125
Cluster & WithScheduler(const Scheduler &value)
Definition Cluster.h:134
Cluster & WithId(const char *value)
Definition Cluster.h:74
void SetSize(Size &&value)
Definition Cluster.h:148
void SetStatus(ClusterStatus &&value)
Definition Cluster.h:99
Cluster & WithScheduler(Scheduler &&value)
Definition Cluster.h:135
Cluster & WithSize(Size &&value)
Definition Cluster.h:150
Cluster & WithArn(const char *value)
Definition Cluster.h:88
Cluster & WithName(Aws::String &&value)
Definition Cluster.h:59
void SetScheduler(const Scheduler &value)
Definition Cluster.h:132
void SetName(const char *value)
Definition Cluster.h:57
void SetArn(Aws::String &&value)
Definition Cluster.h:84
const Networking & GetNetworking() const
Definition Cluster.h:167
bool SlurmConfigurationHasBeenSet() const
Definition Cluster.h:158
Cluster & WithEndpoints(const Aws::Vector< Endpoint > &value)
Definition Cluster.h:183
bool IdHasBeenSet() const
Definition Cluster.h:68
bool CreatedAtHasBeenSet() const
Definition Cluster.h:109
AWS_PCS_API Cluster(Aws::Utils::Json::JsonView jsonValue)
void SetSlurmConfiguration(const ClusterSlurmConfiguration &value)
Definition Cluster.h:159
void SetNetworking(Networking &&value)
Definition Cluster.h:170
Cluster & WithNetworking(Networking &&value)
Definition Cluster.h:172
Cluster & AddErrorInfo(ErrorInfo &&value)
Definition Cluster.h:200
void SetModifiedAt(Aws::Utils::DateTime &&value)
Definition Cluster.h:123
const Aws::String & GetId() const
Definition Cluster.h:67
bool NameHasBeenSet() const
Definition Cluster.h:54
void SetErrorInfo(Aws::Vector< ErrorInfo > &&value)
Definition Cluster.h:196
const Aws::Vector< Endpoint > & GetEndpoints() const
Definition Cluster.h:179
Cluster & WithErrorInfo(const Aws::Vector< ErrorInfo > &value)
Definition Cluster.h:197
bool SchedulerHasBeenSet() const
Definition Cluster.h:131
const Aws::String & GetArn() const
Definition Cluster.h:81
Cluster & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Cluster.h:113
void SetArn(const char *value)
Definition Cluster.h:85
Cluster & AddErrorInfo(const ErrorInfo &value)
Definition Cluster.h:199
Cluster & WithEndpoints(Aws::Vector< Endpoint > &&value)
Definition Cluster.h:184
const ClusterSlurmConfiguration & GetSlurmConfiguration() const
Definition Cluster.h:157
Cluster & WithModifiedAt(const Aws::Utils::DateTime &value)
Definition Cluster.h:124
void SetStatus(const ClusterStatus &value)
Definition Cluster.h:98
Cluster & WithStatus(ClusterStatus &&value)
Definition Cluster.h:101
Cluster & WithId(Aws::String &&value)
Definition Cluster.h:73
const Aws::Vector< ErrorInfo > & GetErrorInfo() const
Definition Cluster.h:193
Cluster & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Cluster.h:112
Cluster & WithArn(Aws::String &&value)
Definition Cluster.h:87
Cluster & WithArn(const Aws::String &value)
Definition Cluster.h:86
Cluster & WithErrorInfo(Aws::Vector< ErrorInfo > &&value)
Definition Cluster.h:198
bool ErrorInfoHasBeenSet() const
Definition Cluster.h:194
bool SizeHasBeenSet() const
Definition Cluster.h:146
AWS_PCS_API Cluster & operator=(Aws::Utils::Json::JsonView jsonValue)
const Scheduler & GetScheduler() const
Definition Cluster.h:130
Cluster & AddEndpoints(Endpoint &&value)
Definition Cluster.h:186
void SetNetworking(const Networking &value)
Definition Cluster.h:169
Cluster & WithName(const Aws::String &value)
Definition Cluster.h:58
Cluster & WithSlurmConfiguration(const ClusterSlurmConfiguration &value)
Definition Cluster.h:161
void SetId(Aws::String &&value)
Definition Cluster.h:70
Cluster & WithSlurmConfiguration(ClusterSlurmConfiguration &&value)
Definition Cluster.h:162
void SetId(const char *value)
Definition Cluster.h:71
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Cluster.h:120
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Cluster.h:108
void SetSize(const Size &value)
Definition Cluster.h:147
Cluster & AddEndpoints(const Endpoint &value)
Definition Cluster.h:185
Cluster & WithSize(const Size &value)
Definition Cluster.h:149
void SetArn(const Aws::String &value)
Definition Cluster.h:83
void SetEndpoints(Aws::Vector< Endpoint > &&value)
Definition Cluster.h:182
void SetEndpoints(const Aws::Vector< Endpoint > &value)
Definition Cluster.h:181
bool StatusHasBeenSet() const
Definition Cluster.h:97
bool EndpointsHasBeenSet() const
Definition Cluster.h:180
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScheduler(Scheduler &&value)
Definition Cluster.h:133
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Cluster.h:111
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue