7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/CapacityProviderStrategyItem.h>
12#include <aws/ecs/model/DeploymentEphemeralStorage.h>
13#include <aws/ecs/model/DeploymentRolloutState.h>
14#include <aws/ecs/model/LaunchType.h>
15#include <aws/ecs/model/NetworkConfiguration.h>
16#include <aws/ecs/model/ServiceConnectConfiguration.h>
17#include <aws/ecs/model/ServiceConnectServiceResource.h>
18#include <aws/ecs/model/ServiceVolumeConfiguration.h>
19#include <aws/ecs/model/VpcLatticeConfiguration.h>
53 template <
typename IdT = Aws::String>
55 m_idHasBeenSet =
true;
56 m_id = std::forward<IdT>(value);
58 template <
typename IdT = Aws::String>
60 SetId(std::forward<IdT>(value));
76 template <
typename StatusT = Aws::String>
78 m_statusHasBeenSet =
true;
79 m_status = std::forward<StatusT>(value);
81 template <
typename StatusT = Aws::String>
95 template <
typename TaskDefinitionT = Aws::String>
97 m_taskDefinitionHasBeenSet =
true;
98 m_taskDefinition = std::forward<TaskDefinitionT>(value);
100 template <
typename TaskDefinitionT = Aws::String>
115 m_desiredCountHasBeenSet =
true;
116 m_desiredCount = value;
132 m_pendingCountHasBeenSet =
true;
133 m_pendingCount = value;
149 m_runningCountHasBeenSet =
true;
150 m_runningCount = value;
170 m_failedTasksHasBeenSet =
true;
171 m_failedTasks = value;
185 template <
typename CreatedAtT = Aws::Utils::DateTime>
187 m_createdAtHasBeenSet =
true;
188 m_createdAt = std::forward<CreatedAtT>(value);
190 template <
typename CreatedAtT = Aws::Utils::DateTime>
204 template <
typename UpdatedAtT = Aws::Utils::DateTime>
206 m_updatedAtHasBeenSet =
true;
207 m_updatedAt = std::forward<UpdatedAtT>(value);
209 template <
typename UpdatedAtT = Aws::Utils::DateTime>
222 template <
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
224 m_capacityProviderStrategyHasBeenSet =
true;
225 m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value);
227 template <
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
232 template <
typename CapacityProv
iderStrategyT = CapacityProv
iderStrategyItem>
234 m_capacityProviderStrategyHasBeenSet =
true;
235 m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value));
251 m_launchTypeHasBeenSet =
true;
252 m_launchType = value;
272 template <
typename PlatformVersionT = Aws::String>
274 m_platformVersionHasBeenSet =
true;
275 m_platformVersion = std::forward<PlatformVersionT>(value);
277 template <
typename PlatformVersionT = Aws::String>
294 template <
typename PlatformFamilyT = Aws::String>
296 m_platformFamilyHasBeenSet =
true;
297 m_platformFamily = std::forward<PlatformFamilyT>(value);
299 template <
typename PlatformFamilyT = Aws::String>
314 template <
typename NetworkConfigurationT = NetworkConfiguration>
316 m_networkConfigurationHasBeenSet =
true;
317 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
319 template <
typename NetworkConfigurationT = NetworkConfiguration>
342 m_rolloutStateHasBeenSet =
true;
343 m_rolloutState = value;
357 template <
typename RolloutStateReasonT = Aws::String>
359 m_rolloutStateReasonHasBeenSet =
true;
360 m_rolloutStateReason = std::forward<RolloutStateReasonT>(value);
362 template <
typename RolloutStateReasonT = Aws::String>
386 template <
typename ServiceConnectConfigurationT = ServiceConnectConfiguration>
388 m_serviceConnectConfigurationHasBeenSet =
true;
389 m_serviceConnectConfiguration = std::forward<ServiceConnectConfigurationT>(value);
391 template <
typename ServiceConnectConfigurationT = ServiceConnectConfiguration>
406 template <
typename ServiceConnectResourcesT = Aws::Vector<ServiceConnectServiceResource>>
408 m_serviceConnectResourcesHasBeenSet =
true;
409 m_serviceConnectResources = std::forward<ServiceConnectResourcesT>(value);
411 template <
typename ServiceConnectResourcesT = Aws::Vector<ServiceConnectServiceResource>>
416 template <
typename ServiceConnectResourcesT = ServiceConnectServiceResource>
418 m_serviceConnectResourcesHasBeenSet =
true;
419 m_serviceConnectResources.emplace_back(std::forward<ServiceConnectResourcesT>(value));
435 template <
typename VolumeConfigurationsT = Aws::Vector<ServiceVolumeConfiguration>>
437 m_volumeConfigurationsHasBeenSet =
true;
438 m_volumeConfigurations = std::forward<VolumeConfigurationsT>(value);
440 template <
typename VolumeConfigurationsT = Aws::Vector<ServiceVolumeConfiguration>>
445 template <
typename VolumeConfigurationsT = ServiceVolumeConfiguration>
447 m_volumeConfigurationsHasBeenSet =
true;
448 m_volumeConfigurations.emplace_back(std::forward<VolumeConfigurationsT>(value));
459 template <
typename FargateEphemeralStorageT = DeploymentEphemeralStorage>
461 m_fargateEphemeralStorageHasBeenSet =
true;
462 m_fargateEphemeralStorage = std::forward<FargateEphemeralStorageT>(value);
464 template <
typename FargateEphemeralStorageT = DeploymentEphemeralStorage>
477 template <
typename VpcLatticeConfigurationsT = Aws::Vector<VpcLatticeConfiguration>>
479 m_vpcLatticeConfigurationsHasBeenSet =
true;
480 m_vpcLatticeConfigurations = std::forward<VpcLatticeConfigurationsT>(value);
482 template <
typename VpcLatticeConfigurationsT = Aws::Vector<VpcLatticeConfiguration>>
487 template <
typename VpcLatticeConfigurationsT = VpcLatticeConfiguration>
489 m_vpcLatticeConfigurationsHasBeenSet =
true;
490 m_vpcLatticeConfigurations.emplace_back(std::forward<VpcLatticeConfigurationsT>(value));
501 int m_desiredCount{0};
503 int m_pendingCount{0};
505 int m_runningCount{0};
507 int m_failedTasks{0};
521 NetworkConfiguration m_networkConfiguration;
527 ServiceConnectConfiguration m_serviceConnectConfiguration;
533 DeploymentEphemeralStorage m_fargateEphemeralStorage;
536 bool m_idHasBeenSet =
false;
537 bool m_statusHasBeenSet =
false;
538 bool m_taskDefinitionHasBeenSet =
false;
539 bool m_desiredCountHasBeenSet =
false;
540 bool m_pendingCountHasBeenSet =
false;
541 bool m_runningCountHasBeenSet =
false;
542 bool m_failedTasksHasBeenSet =
false;
543 bool m_createdAtHasBeenSet =
false;
544 bool m_updatedAtHasBeenSet =
false;
545 bool m_capacityProviderStrategyHasBeenSet =
false;
546 bool m_launchTypeHasBeenSet =
false;
547 bool m_platformVersionHasBeenSet =
false;
548 bool m_platformFamilyHasBeenSet =
false;
549 bool m_networkConfigurationHasBeenSet =
false;
550 bool m_rolloutStateHasBeenSet =
false;
551 bool m_rolloutStateReasonHasBeenSet =
false;
552 bool m_serviceConnectConfigurationHasBeenSet =
false;
553 bool m_serviceConnectResourcesHasBeenSet =
false;
554 bool m_volumeConfigurationsHasBeenSet =
false;
555 bool m_fargateEphemeralStorageHasBeenSet =
false;
556 bool m_vpcLatticeConfigurationsHasBeenSet =
false;
void SetVolumeConfigurations(VolumeConfigurationsT &&value)
void SetFailedTasks(int value)
const Aws::Vector< VpcLatticeConfiguration > & GetVpcLatticeConfigurations() const
void SetCreatedAt(CreatedAtT &&value)
const NetworkConfiguration & GetNetworkConfiguration() const
void SetServiceConnectConfiguration(ServiceConnectConfigurationT &&value)
Deployment & WithRolloutStateReason(RolloutStateReasonT &&value)
int GetFailedTasks() const
Deployment & AddVolumeConfigurations(VolumeConfigurationsT &&value)
Deployment & WithServiceConnectResources(ServiceConnectResourcesT &&value)
bool ServiceConnectResourcesHasBeenSet() const
bool FailedTasksHasBeenSet() const
void SetFargateEphemeralStorage(FargateEphemeralStorageT &&value)
Deployment & WithDesiredCount(int value)
const Aws::Vector< ServiceVolumeConfiguration > & GetVolumeConfigurations() const
void SetTaskDefinition(TaskDefinitionT &&value)
Deployment & AddCapacityProviderStrategy(CapacityProviderStrategyT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
bool FargateEphemeralStorageHasBeenSet() const
Deployment & WithLaunchType(LaunchType value)
const DeploymentEphemeralStorage & GetFargateEphemeralStorage() const
bool VolumeConfigurationsHasBeenSet() const
AWS_ECS_API Deployment()=default
Deployment & WithPlatformVersion(PlatformVersionT &&value)
Deployment & WithRunningCount(int value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLaunchType(LaunchType value)
bool ServiceConnectConfigurationHasBeenSet() const
bool RolloutStateReasonHasBeenSet() const
Deployment & WithVpcLatticeConfigurations(VpcLatticeConfigurationsT &&value)
LaunchType GetLaunchType() const
bool VpcLatticeConfigurationsHasBeenSet() const
Deployment & WithFailedTasks(int value)
bool RolloutStateHasBeenSet() const
bool UpdatedAtHasBeenSet() const
AWS_ECS_API Deployment(Aws::Utils::Json::JsonView jsonValue)
bool CreatedAtHasBeenSet() const
const Aws::Vector< ServiceConnectServiceResource > & GetServiceConnectResources() const
Deployment & WithPlatformFamily(PlatformFamilyT &&value)
bool NetworkConfigurationHasBeenSet() const
bool DesiredCountHasBeenSet() const
void SetStatus(StatusT &&value)
void SetPlatformVersion(PlatformVersionT &&value)
void SetServiceConnectResources(ServiceConnectResourcesT &&value)
Deployment & AddVpcLatticeConfigurations(VpcLatticeConfigurationsT &&value)
bool PlatformFamilyHasBeenSet() const
void SetRunningCount(int value)
const ServiceConnectConfiguration & GetServiceConnectConfiguration() const
void SetDesiredCount(int value)
bool IdHasBeenSet() const
Deployment & WithStatus(StatusT &&value)
bool CapacityProviderStrategyHasBeenSet() const
Deployment & WithVolumeConfigurations(VolumeConfigurationsT &&value)
void SetPendingCount(int value)
void SetPlatformFamily(PlatformFamilyT &&value)
int GetPendingCount() const
void SetRolloutStateReason(RolloutStateReasonT &&value)
bool PlatformVersionHasBeenSet() const
const Aws::String & GetStatus() const
const Aws::String & GetRolloutStateReason() const
const Aws::String & GetPlatformFamily() const
const Aws::String & GetTaskDefinition() const
const Aws::Utils::DateTime & GetUpdatedAt() const
Deployment & WithPendingCount(int value)
Deployment & WithServiceConnectConfiguration(ServiceConnectConfigurationT &&value)
Deployment & WithCapacityProviderStrategy(CapacityProviderStrategyT &&value)
int GetDesiredCount() const
bool TaskDefinitionHasBeenSet() const
Deployment & WithFargateEphemeralStorage(FargateEphemeralStorageT &&value)
Deployment & WithUpdatedAt(UpdatedAtT &&value)
Deployment & WithCreatedAt(CreatedAtT &&value)
void SetNetworkConfiguration(NetworkConfigurationT &&value)
bool RunningCountHasBeenSet() const
void SetRolloutState(DeploymentRolloutState value)
void SetCapacityProviderStrategy(CapacityProviderStrategyT &&value)
const Aws::String & GetPlatformVersion() const
void SetVpcLatticeConfigurations(VpcLatticeConfigurationsT &&value)
bool PendingCountHasBeenSet() const
Deployment & WithTaskDefinition(TaskDefinitionT &&value)
Deployment & WithNetworkConfiguration(NetworkConfigurationT &&value)
bool LaunchTypeHasBeenSet() const
bool StatusHasBeenSet() const
const Aws::String & GetId() const
int GetRunningCount() const
Deployment & WithRolloutState(DeploymentRolloutState value)
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
Deployment & WithId(IdT &&value)
Deployment & AddServiceConnectResources(ServiceConnectResourcesT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API Deployment & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentRolloutState GetRolloutState() 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