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>
62 inline void SetClusterArn(
const char* value) { m_clusterArnHasBeenSet =
true; m_clusterArn.assign(value); }
76 inline void SetClusterName(
const char* value) { m_clusterNameHasBeenSet =
true; m_clusterName.assign(value); }
115 inline void SetStatus(
const char* value) { m_statusHasBeenSet =
true; m_status.assign(value); }
140 inline void SetRunningTasksCount(
int value) { m_runningTasksCountHasBeenSet =
true; m_runningTasksCount = value; }
151 inline void SetPendingTasksCount(
int value) { m_pendingTasksCountHasBeenSet =
true; m_pendingTasksCount = value; }
212 inline Cluster&
AddTags(
const Tag& value) { m_tagsHasBeenSet =
true; m_tags.push_back(value);
return *
this; }
213 inline Cluster&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
243 inline Cluster&
AddCapacityProviders(
const char* value) { m_capacityProvidersHasBeenSet =
true; m_capacityProviders.push_back(value);
return *
this; }
291 inline void SetAttachmentsStatus(
const char* value) { m_attachmentsStatusHasBeenSet =
true; m_attachmentsStatus.assign(value); }
325 bool m_clusterArnHasBeenSet =
false;
328 bool m_clusterNameHasBeenSet =
false;
331 bool m_configurationHasBeenSet =
false;
334 bool m_statusHasBeenSet =
false;
336 int m_registeredContainerInstancesCount;
337 bool m_registeredContainerInstancesCountHasBeenSet =
false;
339 int m_runningTasksCount;
340 bool m_runningTasksCountHasBeenSet =
false;
342 int m_pendingTasksCount;
343 bool m_pendingTasksCountHasBeenSet =
false;
345 int m_activeServicesCount;
346 bool m_activeServicesCountHasBeenSet =
false;
349 bool m_statisticsHasBeenSet =
false;
352 bool m_tagsHasBeenSet =
false;
355 bool m_settingsHasBeenSet =
false;
358 bool m_capacityProvidersHasBeenSet =
false;
361 bool m_defaultCapacityProviderStrategyHasBeenSet =
false;
364 bool m_attachmentsHasBeenSet =
false;
367 bool m_attachmentsStatusHasBeenSet =
false;
370 bool m_serviceConnectDefaultsHasBeenSet =
false;
Cluster & WithDefaultCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
Cluster & WithDefaultCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
bool RunningTasksCountHasBeenSet() const
Cluster & AddStatistics(const KeyValuePair &value)
Cluster & WithStatus(Aws::String &&value)
void SetRegisteredContainerInstancesCount(int value)
const ClusterConfiguration & GetConfiguration() const
bool ActiveServicesCountHasBeenSet() const
void SetSettings(const Aws::Vector< ClusterSetting > &value)
void SetStatus(const char *value)
const Aws::Vector< Tag > & GetTags() const
Cluster & AddSettings(const ClusterSetting &value)
void SetDefaultCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
const Aws::Vector< ClusterSetting > & GetSettings() const
Cluster & WithClusterName(const Aws::String &value)
int GetActiveServicesCount() const
const Aws::String & GetClusterName() const
Cluster & WithConfiguration(const ClusterConfiguration &value)
const Aws::Vector< Attachment > & GetAttachments() const
void SetAttachments(Aws::Vector< Attachment > &&value)
Cluster & WithAttachmentsStatus(const Aws::String &value)
void SetServiceConnectDefaults(const ClusterServiceConnectDefaults &value)
Cluster & WithCapacityProviders(const Aws::Vector< Aws::String > &value)
Cluster & AddTags(const Tag &value)
bool AttachmentsStatusHasBeenSet() const
void SetSettings(Aws::Vector< ClusterSetting > &&value)
const Aws::String & GetClusterArn() const
bool DefaultCapacityProviderStrategyHasBeenSet() const
Cluster & WithSettings(const Aws::Vector< ClusterSetting > &value)
Cluster & WithAttachmentsStatus(const char *value)
Cluster & WithTags(Aws::Vector< Tag > &&value)
Cluster & AddDefaultCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
void SetConfiguration(ClusterConfiguration &&value)
bool TagsHasBeenSet() const
void SetClusterName(const char *value)
int GetPendingTasksCount() const
Cluster & AddTags(Tag &&value)
void SetClusterArn(const char *value)
Cluster & WithSettings(Aws::Vector< ClusterSetting > &&value)
void SetClusterArn(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
Cluster & AddStatistics(KeyValuePair &&value)
void SetDefaultCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
bool StatusHasBeenSet() const
bool ServiceConnectDefaultsHasBeenSet() const
bool CapacityProvidersHasBeenSet() const
Cluster & WithStatus(const Aws::String &value)
Cluster & WithPendingTasksCount(int value)
const ClusterServiceConnectDefaults & GetServiceConnectDefaults() const
Cluster & WithServiceConnectDefaults(ClusterServiceConnectDefaults &&value)
void SetClusterName(const Aws::String &value)
Cluster & WithActiveServicesCount(int value)
bool AttachmentsHasBeenSet() const
Cluster & WithClusterArn(const char *value)
Cluster & WithTags(const Aws::Vector< Tag > &value)
bool ClusterArnHasBeenSet() const
Cluster & WithClusterName(Aws::String &&value)
int GetRunningTasksCount() const
bool PendingTasksCountHasBeenSet() const
bool ConfigurationHasBeenSet() const
Cluster & WithAttachments(const Aws::Vector< Attachment > &value)
Cluster & WithServiceConnectDefaults(const ClusterServiceConnectDefaults &value)
Cluster & AddAttachments(const Attachment &value)
void SetAttachmentsStatus(const char *value)
void SetAttachmentsStatus(Aws::String &&value)
void SetClusterName(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
Cluster & WithStatistics(Aws::Vector< KeyValuePair > &&value)
Cluster & WithRunningTasksCount(int value)
int GetRegisteredContainerInstancesCount() const
void SetRunningTasksCount(int value)
bool SettingsHasBeenSet() const
Cluster & WithClusterArn(const Aws::String &value)
Cluster & WithClusterArn(Aws::String &&value)
Cluster & WithCapacityProviders(Aws::Vector< Aws::String > &&value)
Cluster & WithStatistics(const Aws::Vector< KeyValuePair > &value)
Cluster & AddCapacityProviders(const char *value)
void SetCapacityProviders(Aws::Vector< Aws::String > &&value)
void SetConfiguration(const ClusterConfiguration &value)
bool RegisteredContainerInstancesCountHasBeenSet() const
void SetActiveServicesCount(int value)
Cluster & AddCapacityProviders(Aws::String &&value)
void SetAttachments(const Aws::Vector< Attachment > &value)
void SetStatistics(const Aws::Vector< KeyValuePair > &value)
Cluster & WithAttachments(Aws::Vector< Attachment > &&value)
AWS_ECS_API Cluster & operator=(Aws::Utils::Json::JsonView jsonValue)
Cluster & AddAttachments(Attachment &&value)
void SetCapacityProviders(const Aws::Vector< Aws::String > &value)
void SetStatus(const Aws::String &value)
bool StatisticsHasBeenSet() const
Cluster & WithStatus(const char *value)
void SetStatistics(Aws::Vector< KeyValuePair > &&value)
Cluster & WithConfiguration(ClusterConfiguration &&value)
void SetServiceConnectDefaults(ClusterServiceConnectDefaults &&value)
Cluster & AddDefaultCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
Cluster & AddCapacityProviders(const Aws::String &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetCapacityProviders() const
bool ClusterNameHasBeenSet() const
const Aws::Vector< CapacityProviderStrategyItem > & GetDefaultCapacityProviderStrategy() const
Cluster & AddSettings(ClusterSetting &&value)
const Aws::String & GetAttachmentsStatus() const
Cluster & WithRegisteredContainerInstancesCount(int value)
void SetClusterArn(Aws::String &&value)
const Aws::String & GetStatus() const
Cluster & WithClusterName(const char *value)
AWS_ECS_API Cluster(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(Aws::String &&value)
Cluster & WithAttachmentsStatus(Aws::String &&value)
void SetPendingTasksCount(int value)
const Aws::Vector< KeyValuePair > & GetStatistics() const
void SetAttachmentsStatus(const Aws::String &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