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>
55 template<
typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
57 template<
typename NameT = Aws::String>
67 template<
typename IdT = Aws::String>
68 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
69 template<
typename IdT = Aws::String>
79 template<
typename ArnT = Aws::String>
80 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
81 template<
typename ArnT = Aws::String>
111 template<
typename CreatedAtT = Aws::Utils::DateTime>
112 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
113 template<
typename CreatedAtT = Aws::Utils::DateTime>
123 template<
typename ModifiedAtT = Aws::Utils::DateTime>
124 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet =
true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
125 template<
typename ModifiedAtT = Aws::Utils::DateTime>
133 template<
typename SchedulerT = Scheduler>
134 void SetScheduler(SchedulerT&& value) { m_schedulerHasBeenSet =
true; m_scheduler = std::forward<SchedulerT>(value); }
135 template<
typename SchedulerT = Scheduler>
148 inline void SetSize(
Size value) { m_sizeHasBeenSet =
true; m_size = value; }
158 template<
typename SlurmConfigurationT = ClusterSlurmConfiguration>
159 void SetSlurmConfiguration(SlurmConfigurationT&& value) { m_slurmConfigurationHasBeenSet =
true; m_slurmConfiguration = std::forward<SlurmConfigurationT>(value); }
160 template<
typename SlurmConfigurationT = ClusterSlurmConfiguration>
168 template<
typename NetworkingT = Networking>
169 void SetNetworking(NetworkingT&& value) { m_networkingHasBeenSet =
true; m_networking = std::forward<NetworkingT>(value); }
170 template<
typename NetworkingT = Networking>
180 template<
typename Endpo
intsT = Aws::Vector<Endpo
int>>
181 void SetEndpoints(EndpointsT&& value) { m_endpointsHasBeenSet =
true; m_endpoints = std::forward<EndpointsT>(value); }
182 template<
typename Endpo
intsT = Aws::Vector<Endpo
int>>
184 template<
typename Endpo
intsT = Endpo
int>
185 Cluster&
AddEndpoints(EndpointsT&& value) { m_endpointsHasBeenSet =
true; m_endpoints.emplace_back(std::forward<EndpointsT>(value));
return *
this; }
194 template<
typename ErrorInfoT = Aws::Vector<ErrorInfo>>
195 void SetErrorInfo(ErrorInfoT&& value) { m_errorInfoHasBeenSet =
true; m_errorInfo = std::forward<ErrorInfoT>(value); }
196 template<
typename ErrorInfoT = Aws::Vector<ErrorInfo>>
198 template<
typename ErrorInfoT = ErrorInfo>
199 Cluster&
AddErrorInfo(ErrorInfoT&& value) { m_errorInfoHasBeenSet =
true; m_errorInfo.emplace_back(std::forward<ErrorInfoT>(value));
return *
this; }
204 bool m_nameHasBeenSet =
false;
207 bool m_idHasBeenSet =
false;
210 bool m_arnHasBeenSet =
false;
213 bool m_statusHasBeenSet =
false;
216 bool m_createdAtHasBeenSet =
false;
219 bool m_modifiedAtHasBeenSet =
false;
221 Scheduler m_scheduler;
222 bool m_schedulerHasBeenSet =
false;
225 bool m_sizeHasBeenSet =
false;
227 ClusterSlurmConfiguration m_slurmConfiguration;
228 bool m_slurmConfigurationHasBeenSet =
false;
230 Networking m_networking;
231 bool m_networkingHasBeenSet =
false;
234 bool m_endpointsHasBeenSet =
false;
237 bool m_errorInfoHasBeenSet =
false;
void SetSlurmConfiguration(SlurmConfigurationT &&value)
bool ArnHasBeenSet() const
void SetName(NameT &&value)
const Aws::String & GetName() const
Cluster & WithScheduler(SchedulerT &&value)
ClusterStatus GetStatus() const
void SetNetworking(NetworkingT &&value)
bool ModifiedAtHasBeenSet() const
Cluster & WithStatus(ClusterStatus value)
bool NetworkingHasBeenSet() const
Cluster & WithSlurmConfiguration(SlurmConfigurationT &&value)
Cluster & WithNetworking(NetworkingT &&value)
AWS_PCS_API Cluster()=default
Cluster & WithId(IdT &&value)
void SetErrorInfo(ErrorInfoT &&value)
Cluster & AddEndpoints(EndpointsT &&value)
Cluster & WithCreatedAt(CreatedAtT &&value)
Cluster & AddErrorInfo(ErrorInfoT &&value)
Cluster & WithEndpoints(EndpointsT &&value)
const Networking & GetNetworking() const
bool SlurmConfigurationHasBeenSet() const
bool IdHasBeenSet() const
bool CreatedAtHasBeenSet() const
AWS_PCS_API Cluster(Aws::Utils::Json::JsonView jsonValue)
Cluster & WithSize(Size value)
Cluster & WithArn(ArnT &&value)
const Aws::String & GetId() const
bool NameHasBeenSet() const
const Aws::Vector< Endpoint > & GetEndpoints() const
bool SchedulerHasBeenSet() const
const Aws::String & GetArn() const
void SetEndpoints(EndpointsT &&value)
const ClusterSlurmConfiguration & GetSlurmConfiguration() const
void SetScheduler(SchedulerT &&value)
const Aws::Vector< ErrorInfo > & GetErrorInfo() const
Cluster & WithErrorInfo(ErrorInfoT &&value)
bool ErrorInfoHasBeenSet() const
bool SizeHasBeenSet() const
AWS_PCS_API Cluster & operator=(Aws::Utils::Json::JsonView jsonValue)
const Scheduler & GetScheduler() const
void SetCreatedAt(CreatedAtT &&value)
Cluster & WithModifiedAt(ModifiedAtT &&value)
void SetArn(ArnT &&value)
const Aws::Utils::DateTime & GetModifiedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetStatus(ClusterStatus value)
bool StatusHasBeenSet() const
bool EndpointsHasBeenSet() const
void SetModifiedAt(ModifiedAtT &&value)
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
Cluster & WithName(NameT &&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