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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/LaunchType.h>
12#include <aws/ecs/model/NetworkConfiguration.h>
13#include <aws/ecs/model/DeploymentRolloutState.h>
14#include <aws/ecs/model/ServiceConnectConfiguration.h>
15#include <aws/ecs/model/DeploymentEphemeralStorage.h>
16#include <aws/ecs/model/CapacityProviderStrategyItem.h>
17#include <aws/ecs/model/ServiceConnectServiceResource.h>
18#include <aws/ecs/model/ServiceVolumeConfiguration.h>
19#include <aws/ecs/model/VpcLatticeConfiguration.h>
59 template<
typename IdT = Aws::String>
60 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
61 template<
typename IdT = Aws::String>
76 template<
typename StatusT = Aws::String>
77 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
78 template<
typename StatusT = Aws::String>
89 template<
typename TaskDefinitionT = Aws::String>
90 void SetTaskDefinition(TaskDefinitionT&& value) { m_taskDefinitionHasBeenSet =
true; m_taskDefinition = std::forward<TaskDefinitionT>(value); }
91 template<
typename TaskDefinitionT = Aws::String>
102 inline void SetDesiredCount(
int value) { m_desiredCountHasBeenSet =
true; m_desiredCount = value; }
113 inline void SetPendingCount(
int value) { m_pendingCountHasBeenSet =
true; m_pendingCount = value; }
124 inline void SetRunningCount(
int value) { m_runningCountHasBeenSet =
true; m_runningCount = value; }
139 inline void SetFailedTasks(
int value) { m_failedTasksHasBeenSet =
true; m_failedTasks = value; }
149 template<
typename CreatedAtT = Aws::Utils::DateTime>
150 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
151 template<
typename CreatedAtT = Aws::Utils::DateTime>
162 template<
typename UpdatedAtT = Aws::Utils::DateTime>
163 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
164 template<
typename UpdatedAtT = Aws::Utils::DateTime>
174 template<
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
175 void SetCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet =
true; m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value); }
176 template<
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
178 template<
typename CapacityProv
iderStrategyT = CapacityProv
iderStrategyItem>
179 Deployment&
AddCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet =
true; m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value));
return *
this; }
208 template<
typename PlatformVersionT = Aws::String>
209 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet =
true; m_platformVersion = std::forward<PlatformVersionT>(value); }
210 template<
typename PlatformVersionT = Aws::String>
224 template<
typename PlatformFamilyT = Aws::String>
225 void SetPlatformFamily(PlatformFamilyT&& value) { m_platformFamilyHasBeenSet =
true; m_platformFamily = std::forward<PlatformFamilyT>(value); }
226 template<
typename PlatformFamilyT = Aws::String>
238 template<
typename NetworkConfigurationT = NetworkConfiguration>
239 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet =
true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
240 template<
typename NetworkConfigurationT = NetworkConfiguration>
269 template<
typename RolloutStateReasonT = Aws::String>
270 void SetRolloutStateReason(RolloutStateReasonT&& value) { m_rolloutStateReasonHasBeenSet =
true; m_rolloutStateReason = std::forward<RolloutStateReasonT>(value); }
271 template<
typename RolloutStateReasonT = Aws::String>
292 template<
typename ServiceConnectConfigurationT = ServiceConnectConfiguration>
293 void SetServiceConnectConfiguration(ServiceConnectConfigurationT&& value) { m_serviceConnectConfigurationHasBeenSet =
true; m_serviceConnectConfiguration = std::forward<ServiceConnectConfigurationT>(value); }
294 template<
typename ServiceConnectConfigurationT = ServiceConnectConfiguration>
306 template<
typename ServiceConnectResourcesT = Aws::Vector<ServiceConnectServiceResource>>
307 void SetServiceConnectResources(ServiceConnectResourcesT&& value) { m_serviceConnectResourcesHasBeenSet =
true; m_serviceConnectResources = std::forward<ServiceConnectResourcesT>(value); }
308 template<
typename ServiceConnectResourcesT = Aws::Vector<ServiceConnectServiceResource>>
310 template<
typename ServiceConnectResourcesT = ServiceConnectServiceResource>
311 Deployment&
AddServiceConnectResources(ServiceConnectResourcesT&& value) { m_serviceConnectResourcesHasBeenSet =
true; m_serviceConnectResources.emplace_back(std::forward<ServiceConnectResourcesT>(value));
return *
this; }
325 template<
typename VolumeConfigurationsT = Aws::Vector<ServiceVolumeConfiguration>>
326 void SetVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet =
true; m_volumeConfigurations = std::forward<VolumeConfigurationsT>(value); }
327 template<
typename VolumeConfigurationsT = Aws::Vector<ServiceVolumeConfiguration>>
329 template<
typename VolumeConfigurationsT = ServiceVolumeConfiguration>
330 Deployment&
AddVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet =
true; m_volumeConfigurations.emplace_back(std::forward<VolumeConfigurationsT>(value));
return *
this; }
339 template<
typename FargateEphemeralStorageT = DeploymentEphemeralStorage>
340 void SetFargateEphemeralStorage(FargateEphemeralStorageT&& value) { m_fargateEphemeralStorageHasBeenSet =
true; m_fargateEphemeralStorage = std::forward<FargateEphemeralStorageT>(value); }
341 template<
typename FargateEphemeralStorageT = DeploymentEphemeralStorage>
351 template<
typename VpcLatticeConfigurationsT = Aws::Vector<VpcLatticeConfiguration>>
352 void SetVpcLatticeConfigurations(VpcLatticeConfigurationsT&& value) { m_vpcLatticeConfigurationsHasBeenSet =
true; m_vpcLatticeConfigurations = std::forward<VpcLatticeConfigurationsT>(value); }
353 template<
typename VpcLatticeConfigurationsT = Aws::Vector<VpcLatticeConfiguration>>
355 template<
typename VpcLatticeConfigurationsT = VpcLatticeConfiguration>
356 Deployment&
AddVpcLatticeConfigurations(VpcLatticeConfigurationsT&& value) { m_vpcLatticeConfigurationsHasBeenSet =
true; m_vpcLatticeConfigurations.emplace_back(std::forward<VpcLatticeConfigurationsT>(value));
return *
this; }
361 bool m_idHasBeenSet =
false;
364 bool m_statusHasBeenSet =
false;
367 bool m_taskDefinitionHasBeenSet =
false;
369 int m_desiredCount{0};
370 bool m_desiredCountHasBeenSet =
false;
372 int m_pendingCount{0};
373 bool m_pendingCountHasBeenSet =
false;
375 int m_runningCount{0};
376 bool m_runningCountHasBeenSet =
false;
378 int m_failedTasks{0};
379 bool m_failedTasksHasBeenSet =
false;
382 bool m_createdAtHasBeenSet =
false;
385 bool m_updatedAtHasBeenSet =
false;
388 bool m_capacityProviderStrategyHasBeenSet =
false;
391 bool m_launchTypeHasBeenSet =
false;
394 bool m_platformVersionHasBeenSet =
false;
397 bool m_platformFamilyHasBeenSet =
false;
399 NetworkConfiguration m_networkConfiguration;
400 bool m_networkConfigurationHasBeenSet =
false;
403 bool m_rolloutStateHasBeenSet =
false;
406 bool m_rolloutStateReasonHasBeenSet =
false;
408 ServiceConnectConfiguration m_serviceConnectConfiguration;
409 bool m_serviceConnectConfigurationHasBeenSet =
false;
412 bool m_serviceConnectResourcesHasBeenSet =
false;
415 bool m_volumeConfigurationsHasBeenSet =
false;
417 DeploymentEphemeralStorage m_fargateEphemeralStorage;
418 bool m_fargateEphemeralStorageHasBeenSet =
false;
421 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