7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/Attachment.h>
11#include <aws/ecs/model/CapacityProviderStrategyItem.h>
12#include <aws/ecs/model/ClusterConfiguration.h>
13#include <aws/ecs/model/ClusterServiceConnectDefaults.h>
14#include <aws/ecs/model/ClusterSetting.h>
15#include <aws/ecs/model/KeyValuePair.h>
16#include <aws/ecs/model/Tag.h>
54 template <
typename ClusterArnT = Aws::String>
56 m_clusterArnHasBeenSet =
true;
57 m_clusterArn = std::forward<ClusterArnT>(value);
59 template <
typename ClusterArnT = Aws::String>
72 template <
typename ClusterNameT = Aws::String>
74 m_clusterNameHasBeenSet =
true;
75 m_clusterName = std::forward<ClusterNameT>(value);
77 template <
typename ClusterNameT = Aws::String>
90 template <
typename ConfigurationT = ClusterConfiguration>
92 m_configurationHasBeenSet =
true;
93 m_configuration = std::forward<ConfigurationT>(value);
95 template <
typename ConfigurationT = ClusterConfiguration>
121 template <
typename StatusT = Aws::String>
123 m_statusHasBeenSet =
true;
124 m_status = std::forward<StatusT>(value);
126 template <
typename StatusT = Aws::String>
142 m_registeredContainerInstancesCountHasBeenSet =
true;
143 m_registeredContainerInstancesCount = value;
159 m_runningTasksCountHasBeenSet =
true;
160 m_runningTasksCount = value;
176 m_pendingTasksCountHasBeenSet =
true;
177 m_pendingTasksCount = value;
194 m_activeServicesCountHasBeenSet =
true;
195 m_activeServicesCount = value;
215 template <
typename StatisticsT = Aws::Vector<KeyValuePair>>
217 m_statisticsHasBeenSet =
true;
218 m_statistics = std::forward<StatisticsT>(value);
220 template <
typename StatisticsT = Aws::Vector<KeyValuePair>>
225 template <
typename StatisticsT = KeyValuePair>
227 m_statisticsHasBeenSet =
true;
228 m_statistics.emplace_back(std::forward<StatisticsT>(value));
254 template <
typename TagsT = Aws::Vector<Tag>>
256 m_tagsHasBeenSet =
true;
257 m_tags = std::forward<TagsT>(value);
259 template <
typename TagsT = Aws::Vector<Tag>>
261 SetTags(std::forward<TagsT>(value));
264 template <
typename TagsT = Tag>
266 m_tagsHasBeenSet =
true;
267 m_tags.emplace_back(std::forward<TagsT>(value));
279 template <
typename SettingsT = Aws::Vector<ClusterSetting>>
281 m_settingsHasBeenSet =
true;
282 m_settings = std::forward<SettingsT>(value);
284 template <
typename SettingsT = Aws::Vector<ClusterSetting>>
289 template <
typename SettingsT = ClusterSetting>
291 m_settingsHasBeenSet =
true;
292 m_settings.emplace_back(std::forward<SettingsT>(value));
303 template <
typename CapacityProv
idersT = Aws::Vector<Aws::String>>
305 m_capacityProvidersHasBeenSet =
true;
306 m_capacityProviders = std::forward<CapacityProvidersT>(value);
308 template <
typename CapacityProv
idersT = Aws::Vector<Aws::String>>
313 template <
typename CapacityProv
idersT = Aws::String>
315 m_capacityProvidersHasBeenSet =
true;
316 m_capacityProviders.emplace_back(std::forward<CapacityProvidersT>(value));
328 return m_defaultCapacityProviderStrategy;
331 template <
typename DefaultCapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
333 m_defaultCapacityProviderStrategyHasBeenSet =
true;
334 m_defaultCapacityProviderStrategy = std::forward<DefaultCapacityProviderStrategyT>(value);
336 template <
typename DefaultCapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
341 template <
typename DefaultCapacityProv
iderStrategyT = CapacityProv
iderStrategyItem>
343 m_defaultCapacityProviderStrategyHasBeenSet =
true;
344 m_defaultCapacityProviderStrategy.emplace_back(std::forward<DefaultCapacityProviderStrategyT>(value));
357 template <
typename AttachmentsT = Aws::Vector<Attachment>>
359 m_attachmentsHasBeenSet =
true;
360 m_attachments = std::forward<AttachmentsT>(value);
362 template <
typename AttachmentsT = Aws::Vector<Attachment>>
367 template <
typename AttachmentsT = Attachment>
369 m_attachmentsHasBeenSet =
true;
370 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
386 template <
typename AttachmentsStatusT = Aws::String>
388 m_attachmentsStatusHasBeenSet =
true;
389 m_attachmentsStatus = std::forward<AttachmentsStatusT>(value);
391 template <
typename AttachmentsStatusT = Aws::String>
418 template <
typename ServiceConnectDefaultsT = ClusterServiceConnectDefaults>
420 m_serviceConnectDefaultsHasBeenSet =
true;
421 m_serviceConnectDefaults = std::forward<ServiceConnectDefaultsT>(value);
423 template <
typename ServiceConnectDefaultsT = ClusterServiceConnectDefaults>
438 int m_registeredContainerInstancesCount{0};
440 int m_runningTasksCount{0};
442 int m_pendingTasksCount{0};
444 int m_activeServicesCount{0};
460 ClusterServiceConnectDefaults m_serviceConnectDefaults;
461 bool m_clusterArnHasBeenSet =
false;
462 bool m_clusterNameHasBeenSet =
false;
463 bool m_configurationHasBeenSet =
false;
464 bool m_statusHasBeenSet =
false;
465 bool m_registeredContainerInstancesCountHasBeenSet =
false;
466 bool m_runningTasksCountHasBeenSet =
false;
467 bool m_pendingTasksCountHasBeenSet =
false;
468 bool m_activeServicesCountHasBeenSet =
false;
469 bool m_statisticsHasBeenSet =
false;
470 bool m_tagsHasBeenSet =
false;
471 bool m_settingsHasBeenSet =
false;
472 bool m_capacityProvidersHasBeenSet =
false;
473 bool m_defaultCapacityProviderStrategyHasBeenSet =
false;
474 bool m_attachmentsHasBeenSet =
false;
475 bool m_attachmentsStatusHasBeenSet =
false;
476 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