7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/model/ClusterConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/ClusterServiceConnectDefaults.h>
12#include <aws/ecs/model/KeyValuePair.h>
13#include <aws/ecs/model/Tag.h>
14#include <aws/ecs/model/ClusterSetting.h>
15#include <aws/ecs/model/CapacityProviderStrategyItem.h>
16#include <aws/ecs/model/Attachment.h>
60 template<
typename ClusterArnT = Aws::String>
61 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet =
true; m_clusterArn = std::forward<ClusterArnT>(value); }
62 template<
typename ClusterArnT = Aws::String>
72 template<
typename ClusterNameT = Aws::String>
73 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet =
true; m_clusterName = std::forward<ClusterNameT>(value); }
74 template<
typename ClusterNameT = Aws::String>
84 template<
typename ConfigurationT = ClusterConfiguration>
85 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet =
true; m_configuration = std::forward<ConfigurationT>(value); }
86 template<
typename ConfigurationT = ClusterConfiguration>
109 template<
typename StatusT = Aws::String>
110 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
111 template<
typename StatusT = Aws::String>
134 inline void SetRunningTasksCount(
int value) { m_runningTasksCountHasBeenSet =
true; m_runningTasksCount = value; }
145 inline void SetPendingTasksCount(
int value) { m_pendingTasksCountHasBeenSet =
true; m_pendingTasksCount = value; }
173 template<
typename StatisticsT = Aws::Vector<KeyValuePair>>
174 void SetStatistics(StatisticsT&& value) { m_statisticsHasBeenSet =
true; m_statistics = std::forward<StatisticsT>(value); }
175 template<
typename StatisticsT = Aws::Vector<KeyValuePair>>
177 template<
typename StatisticsT = KeyValuePair>
178 Cluster&
AddStatistics(StatisticsT&& value) { m_statisticsHasBeenSet =
true; m_statistics.emplace_back(std::forward<StatisticsT>(value));
return *
this; }
202 template<
typename TagsT = Aws::Vector<Tag>>
203 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
204 template<
typename TagsT = Aws::Vector<Tag>>
206 template<
typename TagsT = Tag>
207 Cluster&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
217 template<
typename SettingsT = Aws::Vector<ClusterSetting>>
218 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet =
true; m_settings = std::forward<SettingsT>(value); }
219 template<
typename SettingsT = Aws::Vector<ClusterSetting>>
221 template<
typename SettingsT = ClusterSetting>
222 Cluster&
AddSettings(SettingsT&& value) { m_settingsHasBeenSet =
true; m_settings.emplace_back(std::forward<SettingsT>(value));
return *
this; }
231 template<
typename CapacityProv
idersT = Aws::Vector<Aws::String>>
232 void SetCapacityProviders(CapacityProvidersT&& value) { m_capacityProvidersHasBeenSet =
true; m_capacityProviders = std::forward<CapacityProvidersT>(value); }
233 template<
typename CapacityProv
idersT = Aws::Vector<Aws::String>>
235 template<
typename CapacityProv
idersT = Aws::String>
236 Cluster&
AddCapacityProviders(CapacityProvidersT&& value) { m_capacityProvidersHasBeenSet =
true; m_capacityProviders.emplace_back(std::forward<CapacityProvidersT>(value));
return *
this; }
247 template<
typename DefaultCapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
248 void SetDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT&& value) { m_defaultCapacityProviderStrategyHasBeenSet =
true; m_defaultCapacityProviderStrategy = std::forward<DefaultCapacityProviderStrategyT>(value); }
249 template<
typename DefaultCapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
251 template<
typename DefaultCapacityProv
iderStrategyT = CapacityProv
iderStrategyItem>
252 Cluster&
AddDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT&& value) { m_defaultCapacityProviderStrategyHasBeenSet =
true; m_defaultCapacityProviderStrategy.emplace_back(std::forward<DefaultCapacityProviderStrategyT>(value));
return *
this; }
263 template<
typename AttachmentsT = Aws::Vector<Attachment>>
264 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet =
true; m_attachments = std::forward<AttachmentsT>(value); }
265 template<
typename AttachmentsT = Aws::Vector<Attachment>>
267 template<
typename AttachmentsT = Attachment>
268 Cluster&
AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet =
true; m_attachments.emplace_back(std::forward<AttachmentsT>(value));
return *
this; }
282 template<
typename AttachmentsStatusT = Aws::String>
283 void SetAttachmentsStatus(AttachmentsStatusT&& value) { m_attachmentsStatusHasBeenSet =
true; m_attachmentsStatus = std::forward<AttachmentsStatusT>(value); }
284 template<
typename AttachmentsStatusT = Aws::String>
308 template<
typename ServiceConnectDefaultsT = ClusterServiceConnectDefaults>
309 void SetServiceConnectDefaults(ServiceConnectDefaultsT&& value) { m_serviceConnectDefaultsHasBeenSet =
true; m_serviceConnectDefaults = std::forward<ServiceConnectDefaultsT>(value); }
310 template<
typename ServiceConnectDefaultsT = ClusterServiceConnectDefaults>
316 bool m_clusterArnHasBeenSet =
false;
319 bool m_clusterNameHasBeenSet =
false;
322 bool m_configurationHasBeenSet =
false;
325 bool m_statusHasBeenSet =
false;
327 int m_registeredContainerInstancesCount{0};
328 bool m_registeredContainerInstancesCountHasBeenSet =
false;
330 int m_runningTasksCount{0};
331 bool m_runningTasksCountHasBeenSet =
false;
333 int m_pendingTasksCount{0};
334 bool m_pendingTasksCountHasBeenSet =
false;
336 int m_activeServicesCount{0};
337 bool m_activeServicesCountHasBeenSet =
false;
340 bool m_statisticsHasBeenSet =
false;
343 bool m_tagsHasBeenSet =
false;
346 bool m_settingsHasBeenSet =
false;
349 bool m_capacityProvidersHasBeenSet =
false;
352 bool m_defaultCapacityProviderStrategyHasBeenSet =
false;
355 bool m_attachmentsHasBeenSet =
false;
358 bool m_attachmentsStatusHasBeenSet =
false;
360 ClusterServiceConnectDefaults m_serviceConnectDefaults;
361 bool m_serviceConnectDefaultsHasBeenSet =
false;
void SetAttachments(AttachmentsT &&value)
bool RunningTasksCountHasBeenSet() const
void SetRegisteredContainerInstancesCount(int value)
const ClusterConfiguration & GetConfiguration() const
bool ActiveServicesCountHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< ClusterSetting > & GetSettings() const
int GetActiveServicesCount() const
const Aws::String & GetClusterName() const
const Aws::Vector< Attachment > & GetAttachments() const
Cluster & WithStatistics(StatisticsT &&value)
bool AttachmentsStatusHasBeenSet() const
Cluster & AddDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT &&value)
const Aws::String & GetClusterArn() const
bool DefaultCapacityProviderStrategyHasBeenSet() const
Cluster & AddStatistics(StatisticsT &&value)
Cluster & WithSettings(SettingsT &&value)
void SetClusterArn(ClusterArnT &&value)
void SetCapacityProviders(CapacityProvidersT &&value)
bool TagsHasBeenSet() const
AWS_ECS_API Cluster()=default
int GetPendingTasksCount() const
Cluster & WithCapacityProviders(CapacityProvidersT &&value)
void SetTags(TagsT &&value)
void SetStatus(StatusT &&value)
Cluster & WithStatus(StatusT &&value)
bool StatusHasBeenSet() const
bool ServiceConnectDefaultsHasBeenSet() const
bool CapacityProvidersHasBeenSet() const
Cluster & WithPendingTasksCount(int value)
Cluster & WithConfiguration(ConfigurationT &&value)
const ClusterServiceConnectDefaults & GetServiceConnectDefaults() const
Cluster & WithDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT &&value)
Cluster & WithActiveServicesCount(int value)
Cluster & AddSettings(SettingsT &&value)
bool AttachmentsHasBeenSet() const
void SetStatistics(StatisticsT &&value)
bool ClusterArnHasBeenSet() const
int GetRunningTasksCount() const
bool PendingTasksCountHasBeenSet() const
bool ConfigurationHasBeenSet() const
Cluster & WithAttachmentsStatus(AttachmentsStatusT &&value)
Cluster & WithServiceConnectDefaults(ServiceConnectDefaultsT &&value)
Cluster & WithRunningTasksCount(int value)
int GetRegisteredContainerInstancesCount() const
void SetRunningTasksCount(int value)
bool SettingsHasBeenSet() const
void SetClusterName(ClusterNameT &&value)
void SetSettings(SettingsT &&value)
bool RegisteredContainerInstancesCountHasBeenSet() const
void SetDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT &&value)
void SetActiveServicesCount(int value)
Cluster & AddCapacityProviders(CapacityProvidersT &&value)
AWS_ECS_API Cluster & operator=(Aws::Utils::Json::JsonView jsonValue)
Cluster & AddAttachments(AttachmentsT &&value)
Cluster & AddTags(TagsT &&value)
bool StatisticsHasBeenSet() const
void SetAttachmentsStatus(AttachmentsStatusT &&value)
Cluster & WithClusterName(ClusterNameT &&value)
Cluster & WithTags(TagsT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetCapacityProviders() const
Cluster & WithAttachments(AttachmentsT &&value)
bool ClusterNameHasBeenSet() const
const Aws::Vector< CapacityProviderStrategyItem > & GetDefaultCapacityProviderStrategy() const
void SetServiceConnectDefaults(ServiceConnectDefaultsT &&value)
const Aws::String & GetAttachmentsStatus() const
Cluster & WithRegisteredContainerInstancesCount(int value)
const Aws::String & GetStatus() const
void SetConfiguration(ConfigurationT &&value)
Cluster & WithClusterArn(ClusterArnT &&value)
AWS_ECS_API Cluster(Aws::Utils::Json::JsonView jsonValue)
void SetPendingTasksCount(int value)
const Aws::Vector< KeyValuePair > & GetStatistics() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue