7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ecs/model/LaunchType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ecs/model/NetworkConfiguration.h>
13#include <aws/ecs/model/Scale.h>
14#include <aws/ecs/model/StabilityStatus.h>
15#include <aws/ecs/model/DeploymentEphemeralStorage.h>
16#include <aws/ecs/model/CapacityProviderStrategyItem.h>
17#include <aws/ecs/model/LoadBalancer.h>
18#include <aws/ecs/model/ServiceRegistry.h>
19#include <aws/ecs/model/Tag.h>
60 template<
typename IdT = Aws::String>
61 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
62 template<
typename IdT = Aws::String>
72 template<
typename TaskSetArnT = Aws::String>
73 void SetTaskSetArn(TaskSetArnT&& value) { m_taskSetArnHasBeenSet =
true; m_taskSetArn = std::forward<TaskSetArnT>(value); }
74 template<
typename TaskSetArnT = Aws::String>
84 template<
typename ServiceArnT = Aws::String>
85 void SetServiceArn(ServiceArnT&& value) { m_serviceArnHasBeenSet =
true; m_serviceArn = std::forward<ServiceArnT>(value); }
86 template<
typename ServiceArnT = Aws::String>
97 template<
typename ClusterArnT = Aws::String>
98 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet =
true; m_clusterArn = std::forward<ClusterArnT>(value); }
99 template<
typename ClusterArnT = Aws::String>
112 template<
typename StartedByT = Aws::String>
113 void SetStartedBy(StartedByT&& value) { m_startedByHasBeenSet =
true; m_startedBy = std::forward<StartedByT>(value); }
114 template<
typename StartedByT = Aws::String>
129 template<
typename ExternalIdT = Aws::String>
130 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet =
true; m_externalId = std::forward<ExternalIdT>(value); }
131 template<
typename ExternalIdT = Aws::String>
146 template<
typename StatusT = Aws::String>
147 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
148 template<
typename StatusT = Aws::String>
158 template<
typename TaskDefinitionT = Aws::String>
159 void SetTaskDefinition(TaskDefinitionT&& value) { m_taskDefinitionHasBeenSet =
true; m_taskDefinition = std::forward<TaskDefinitionT>(value); }
160 template<
typename TaskDefinitionT = Aws::String>
187 inline void SetPendingCount(
int value) { m_pendingCountHasBeenSet =
true; m_pendingCount = value; }
199 inline void SetRunningCount(
int value) { m_runningCountHasBeenSet =
true; m_runningCount = value; }
209 template<
typename CreatedAtT = Aws::Utils::DateTime>
210 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
211 template<
typename CreatedAtT = Aws::Utils::DateTime>
221 template<
typename UpdatedAtT = Aws::Utils::DateTime>
222 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
223 template<
typename UpdatedAtT = Aws::Utils::DateTime>
247 template<
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
248 void SetCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet =
true; m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value); }
249 template<
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
251 template<
typename CapacityProv
iderStrategyT = CapacityProv
iderStrategyItem>
252 TaskSet&
AddCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet =
true; m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value));
return *
this; }
266 template<
typename PlatformVersionT = Aws::String>
267 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet =
true; m_platformVersion = std::forward<PlatformVersionT>(value); }
268 template<
typename PlatformVersionT = Aws::String>
280 template<
typename PlatformFamilyT = Aws::String>
281 void SetPlatformFamily(PlatformFamilyT&& value) { m_platformFamilyHasBeenSet =
true; m_platformFamily = std::forward<PlatformFamilyT>(value); }
282 template<
typename PlatformFamilyT = Aws::String>
292 template<
typename NetworkConfigurationT = NetworkConfiguration>
293 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet =
true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
294 template<
typename NetworkConfigurationT = NetworkConfiguration>
304 template<
typename LoadBalancersT = Aws::Vector<LoadBalancer>>
305 void SetLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet =
true; m_loadBalancers = std::forward<LoadBalancersT>(value); }
306 template<
typename LoadBalancersT = Aws::Vector<LoadBalancer>>
308 template<
typename LoadBalancersT = LoadBalancer>
309 TaskSet&
AddLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet =
true; m_loadBalancers.emplace_back(std::forward<LoadBalancersT>(value));
return *
this; }
321 template<
typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
322 void SetServiceRegistries(ServiceRegistriesT&& value) { m_serviceRegistriesHasBeenSet =
true; m_serviceRegistries = std::forward<ServiceRegistriesT>(value); }
323 template<
typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
325 template<
typename ServiceRegistriesT = ServiceRegistry>
326 TaskSet&
AddServiceRegistries(ServiceRegistriesT&& value) { m_serviceRegistriesHasBeenSet =
true; m_serviceRegistries.emplace_back(std::forward<ServiceRegistriesT>(value));
return *
this; }
336 template<
typename ScaleT = Scale>
337 void SetScale(ScaleT&& value) { m_scaleHasBeenSet =
true; m_scale = std::forward<ScaleT>(value); }
338 template<
typename ScaleT = Scale>
368 template<
typename StabilityStatusAtT = Aws::Utils::DateTime>
369 void SetStabilityStatusAt(StabilityStatusAtT&& value) { m_stabilityStatusAtHasBeenSet =
true; m_stabilityStatusAt = std::forward<StabilityStatusAtT>(value); }
370 template<
typename StabilityStatusAtT = Aws::Utils::DateTime>
395 template<
typename TagsT = Aws::Vector<Tag>>
396 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
397 template<
typename TagsT = Aws::Vector<Tag>>
399 template<
typename TagsT = Tag>
400 TaskSet&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
409 template<
typename FargateEphemeralStorageT = DeploymentEphemeralStorage>
410 void SetFargateEphemeralStorage(FargateEphemeralStorageT&& value) { m_fargateEphemeralStorageHasBeenSet =
true; m_fargateEphemeralStorage = std::forward<FargateEphemeralStorageT>(value); }
411 template<
typename FargateEphemeralStorageT = DeploymentEphemeralStorage>
417 bool m_idHasBeenSet =
false;
420 bool m_taskSetArnHasBeenSet =
false;
423 bool m_serviceArnHasBeenSet =
false;
426 bool m_clusterArnHasBeenSet =
false;
429 bool m_startedByHasBeenSet =
false;
432 bool m_externalIdHasBeenSet =
false;
435 bool m_statusHasBeenSet =
false;
438 bool m_taskDefinitionHasBeenSet =
false;
440 int m_computedDesiredCount{0};
441 bool m_computedDesiredCountHasBeenSet =
false;
443 int m_pendingCount{0};
444 bool m_pendingCountHasBeenSet =
false;
446 int m_runningCount{0};
447 bool m_runningCountHasBeenSet =
false;
450 bool m_createdAtHasBeenSet =
false;
453 bool m_updatedAtHasBeenSet =
false;
456 bool m_launchTypeHasBeenSet =
false;
459 bool m_capacityProviderStrategyHasBeenSet =
false;
462 bool m_platformVersionHasBeenSet =
false;
465 bool m_platformFamilyHasBeenSet =
false;
467 NetworkConfiguration m_networkConfiguration;
468 bool m_networkConfigurationHasBeenSet =
false;
471 bool m_loadBalancersHasBeenSet =
false;
474 bool m_serviceRegistriesHasBeenSet =
false;
477 bool m_scaleHasBeenSet =
false;
480 bool m_stabilityStatusHasBeenSet =
false;
483 bool m_stabilityStatusAtHasBeenSet =
false;
486 bool m_tagsHasBeenSet =
false;
488 DeploymentEphemeralStorage m_fargateEphemeralStorage;
489 bool m_fargateEphemeralStorageHasBeenSet =
false;
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
bool StabilityStatusAtHasBeenSet() const
TaskSet & WithCapacityProviderStrategy(CapacityProviderStrategyT &&value)
bool TaskSetArnHasBeenSet() const
const NetworkConfiguration & GetNetworkConfiguration() const
TaskSet & WithStatus(StatusT &&value)
TaskSet & AddTags(TagsT &&value)
TaskSet & WithLoadBalancers(LoadBalancersT &&value)
TaskSet & WithStabilityStatus(StabilityStatus value)
void SetPlatformFamily(PlatformFamilyT &&value)
const Aws::String & GetStatus() const
void SetStabilityStatus(StabilityStatus value)
TaskSet & WithUpdatedAt(UpdatedAtT &&value)
void SetNetworkConfiguration(NetworkConfigurationT &&value)
const Aws::String & GetPlatformFamily() const
void SetCreatedAt(CreatedAtT &&value)
bool TaskDefinitionHasBeenSet() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScale(ScaleT &&value)
TaskSet & WithPlatformFamily(PlatformFamilyT &&value)
int GetComputedDesiredCount() const
TaskSet & WithServiceArn(ServiceArnT &&value)
bool ExternalIdHasBeenSet() const
const Aws::String & GetServiceArn() const
bool LaunchTypeHasBeenSet() const
bool CreatedAtHasBeenSet() const
TaskSet & WithStartedBy(StartedByT &&value)
bool RunningCountHasBeenSet() const
TaskSet & WithId(IdT &&value)
const Aws::String & GetClusterArn() const
LaunchType GetLaunchType() const
AWS_ECS_API TaskSet(Aws::Utils::Json::JsonView jsonValue)
void SetRunningCount(int value)
TaskSet & WithLaunchType(LaunchType value)
void SetClusterArn(ClusterArnT &&value)
bool PlatformFamilyHasBeenSet() const
bool CapacityProviderStrategyHasBeenSet() const
int GetRunningCount() const
const Scale & GetScale() const
TaskSet & WithTags(TagsT &&value)
const DeploymentEphemeralStorage & GetFargateEphemeralStorage() const
bool StabilityStatusHasBeenSet() const
TaskSet & AddServiceRegistries(ServiceRegistriesT &&value)
bool ScaleHasBeenSet() const
bool ServiceArnHasBeenSet() const
bool StatusHasBeenSet() const
TaskSet & WithClusterArn(ClusterArnT &&value)
const Aws::String & GetPlatformVersion() const
TaskSet & WithNetworkConfiguration(NetworkConfigurationT &&value)
void SetServiceRegistries(ServiceRegistriesT &&value)
void SetStabilityStatusAt(StabilityStatusAtT &&value)
TaskSet & WithTaskSetArn(TaskSetArnT &&value)
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
void SetUpdatedAt(UpdatedAtT &&value)
void SetFargateEphemeralStorage(FargateEphemeralStorageT &&value)
const Aws::Vector< Tag > & GetTags() const
int GetPendingCount() const
bool FargateEphemeralStorageHasBeenSet() const
bool StartedByHasBeenSet() const
const Aws::Utils::DateTime & GetStabilityStatusAt() const
AWS_ECS_API TaskSet & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskSet & WithStabilityStatusAt(StabilityStatusAtT &&value)
TaskSet & WithTaskDefinition(TaskDefinitionT &&value)
TaskSet & WithPendingCount(int value)
TaskSet & WithRunningCount(int value)
void SetPlatformVersion(PlatformVersionT &&value)
bool IdHasBeenSet() const
void SetComputedDesiredCount(int value)
void SetLoadBalancers(LoadBalancersT &&value)
bool ServiceRegistriesHasBeenSet() const
bool UpdatedAtHasBeenSet() const
void SetTags(TagsT &&value)
TaskSet & WithScale(ScaleT &&value)
TaskSet & WithComputedDesiredCount(int value)
const Aws::String & GetExternalId() const
void SetTaskDefinition(TaskDefinitionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetStartedBy() const
const Aws::Utils::DateTime & GetUpdatedAt() const
bool ClusterArnHasBeenSet() const
TaskSet & AddLoadBalancers(LoadBalancersT &&value)
void SetPendingCount(int value)
const Aws::String & GetTaskDefinition() const
TaskSet & WithPlatformVersion(PlatformVersionT &&value)
TaskSet & WithServiceRegistries(ServiceRegistriesT &&value)
void SetStartedBy(StartedByT &&value)
const Aws::String & GetTaskSetArn() const
void SetLaunchType(LaunchType value)
const Aws::String & GetId() const
bool TagsHasBeenSet() const
bool NetworkConfigurationHasBeenSet() const
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
bool PendingCountHasBeenSet() const
void SetCapacityProviderStrategy(CapacityProviderStrategyT &&value)
bool PlatformVersionHasBeenSet() const
void SetServiceArn(ServiceArnT &&value)
TaskSet & WithExternalId(ExternalIdT &&value)
TaskSet & WithCreatedAt(CreatedAtT &&value)
void SetStatus(StatusT &&value)
bool LoadBalancersHasBeenSet() const
void SetExternalId(ExternalIdT &&value)
TaskSet & WithFargateEphemeralStorage(FargateEphemeralStorageT &&value)
bool ComputedDesiredCountHasBeenSet() const
StabilityStatus GetStabilityStatus() const
TaskSet & AddCapacityProviderStrategy(CapacityProviderStrategyT &&value)
void SetTaskSetArn(TaskSetArnT &&value)
AWS_ECS_API TaskSet()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue