7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/model/LaunchType.h>
11#include <aws/ecs/model/NetworkConfiguration.h>
12#include <aws/ecs/model/ServiceConnectConfiguration.h>
13#include <aws/ecs/model/DeploymentEphemeralStorage.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/ecs/model/ResolvedConfiguration.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/ContainerImage.h>
20#include <aws/ecs/model/ServiceVolumeConfiguration.h>
21#include <aws/ecs/model/VpcLatticeConfiguration.h>
66 template<
typename ServiceRevisionArnT = Aws::String>
67 void SetServiceRevisionArn(ServiceRevisionArnT&& value) { m_serviceRevisionArnHasBeenSet =
true; m_serviceRevisionArn = std::forward<ServiceRevisionArnT>(value); }
68 template<
typename ServiceRevisionArnT = Aws::String>
78 template<
typename ServiceArnT = Aws::String>
79 void SetServiceArn(ServiceArnT&& value) { m_serviceArnHasBeenSet =
true; m_serviceArn = std::forward<ServiceArnT>(value); }
80 template<
typename ServiceArnT = Aws::String>
90 template<
typename ClusterArnT = Aws::String>
91 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet =
true; m_clusterArn = std::forward<ClusterArnT>(value); }
92 template<
typename ClusterArnT = Aws::String>
102 template<
typename TaskDefinitionT = Aws::String>
103 void SetTaskDefinition(TaskDefinitionT&& value) { m_taskDefinitionHasBeenSet =
true; m_taskDefinition = std::forward<TaskDefinitionT>(value); }
104 template<
typename TaskDefinitionT = Aws::String>
114 template<
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
115 void SetCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet =
true; m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value); }
116 template<
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
118 template<
typename CapacityProv
iderStrategyT = CapacityProv
iderStrategyItem>
119 ServiceRevision&
AddCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet =
true; m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value));
return *
this; }
139 template<
typename PlatformVersionT = Aws::String>
140 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet =
true; m_platformVersion = std::forward<PlatformVersionT>(value); }
141 template<
typename PlatformVersionT = Aws::String>
151 template<
typename PlatformFamilyT = Aws::String>
152 void SetPlatformFamily(PlatformFamilyT&& value) { m_platformFamilyHasBeenSet =
true; m_platformFamily = std::forward<PlatformFamilyT>(value); }
153 template<
typename PlatformFamilyT = Aws::String>
163 template<
typename LoadBalancersT = Aws::Vector<LoadBalancer>>
164 void SetLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet =
true; m_loadBalancers = std::forward<LoadBalancersT>(value); }
165 template<
typename LoadBalancersT = Aws::Vector<LoadBalancer>>
167 template<
typename LoadBalancersT = LoadBalancer>
168 ServiceRevision&
AddLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet =
true; m_loadBalancers.emplace_back(std::forward<LoadBalancersT>(value));
return *
this; }
177 template<
typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
178 void SetServiceRegistries(ServiceRegistriesT&& value) { m_serviceRegistriesHasBeenSet =
true; m_serviceRegistries = std::forward<ServiceRegistriesT>(value); }
179 template<
typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
181 template<
typename ServiceRegistriesT = ServiceRegistry>
182 ServiceRevision&
AddServiceRegistries(ServiceRegistriesT&& value) { m_serviceRegistriesHasBeenSet =
true; m_serviceRegistries.emplace_back(std::forward<ServiceRegistriesT>(value));
return *
this; }
189 template<
typename NetworkConfigurationT = NetworkConfiguration>
190 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet =
true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
191 template<
typename NetworkConfigurationT = NetworkConfiguration>
201 template<
typename ContainerImagesT = Aws::Vector<ContainerImage>>
202 void SetContainerImages(ContainerImagesT&& value) { m_containerImagesHasBeenSet =
true; m_containerImages = std::forward<ContainerImagesT>(value); }
203 template<
typename ContainerImagesT = Aws::Vector<ContainerImage>>
205 template<
typename ContainerImagesT = ContainerImage>
206 ServiceRevision&
AddContainerImages(ContainerImagesT&& value) { m_containerImagesHasBeenSet =
true; m_containerImages.emplace_back(std::forward<ContainerImagesT>(value));
return *
this; }
215 inline void SetGuardDutyEnabled(
bool value) { m_guardDutyEnabledHasBeenSet =
true; m_guardDutyEnabled = value; }
223 template<
typename ServiceConnectConfigurationT = ServiceConnectConfiguration>
224 void SetServiceConnectConfiguration(ServiceConnectConfigurationT&& value) { m_serviceConnectConfigurationHasBeenSet =
true; m_serviceConnectConfiguration = std::forward<ServiceConnectConfigurationT>(value); }
225 template<
typename ServiceConnectConfigurationT = ServiceConnectConfiguration>
236 template<
typename VolumeConfigurationsT = Aws::Vector<ServiceVolumeConfiguration>>
237 void SetVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet =
true; m_volumeConfigurations = std::forward<VolumeConfigurationsT>(value); }
238 template<
typename VolumeConfigurationsT = Aws::Vector<ServiceVolumeConfiguration>>
240 template<
typename VolumeConfigurationsT = ServiceVolumeConfiguration>
241 ServiceRevision&
AddVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet =
true; m_volumeConfigurations.emplace_back(std::forward<VolumeConfigurationsT>(value));
return *
this; }
248 template<
typename FargateEphemeralStorageT = DeploymentEphemeralStorage>
249 void SetFargateEphemeralStorage(FargateEphemeralStorageT&& value) { m_fargateEphemeralStorageHasBeenSet =
true; m_fargateEphemeralStorage = std::forward<FargateEphemeralStorageT>(value); }
250 template<
typename FargateEphemeralStorageT = DeploymentEphemeralStorage>
261 template<
typename CreatedAtT = Aws::Utils::DateTime>
262 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
263 template<
typename CreatedAtT = Aws::Utils::DateTime>
273 template<
typename VpcLatticeConfigurationsT = Aws::Vector<VpcLatticeConfiguration>>
274 void SetVpcLatticeConfigurations(VpcLatticeConfigurationsT&& value) { m_vpcLatticeConfigurationsHasBeenSet =
true; m_vpcLatticeConfigurations = std::forward<VpcLatticeConfigurationsT>(value); }
275 template<
typename VpcLatticeConfigurationsT = Aws::Vector<VpcLatticeConfiguration>>
277 template<
typename VpcLatticeConfigurationsT = VpcLatticeConfiguration>
278 ServiceRevision&
AddVpcLatticeConfigurations(VpcLatticeConfigurationsT&& value) { m_vpcLatticeConfigurationsHasBeenSet =
true; m_vpcLatticeConfigurations.emplace_back(std::forward<VpcLatticeConfigurationsT>(value));
return *
this; }
289 template<
typename ResolvedConfigurationT = ResolvedConfiguration>
290 void SetResolvedConfiguration(ResolvedConfigurationT&& value) { m_resolvedConfigurationHasBeenSet =
true; m_resolvedConfiguration = std::forward<ResolvedConfigurationT>(value); }
291 template<
typename ResolvedConfigurationT = ResolvedConfiguration>
297 bool m_serviceRevisionArnHasBeenSet =
false;
300 bool m_serviceArnHasBeenSet =
false;
303 bool m_clusterArnHasBeenSet =
false;
306 bool m_taskDefinitionHasBeenSet =
false;
309 bool m_capacityProviderStrategyHasBeenSet =
false;
312 bool m_launchTypeHasBeenSet =
false;
315 bool m_platformVersionHasBeenSet =
false;
318 bool m_platformFamilyHasBeenSet =
false;
321 bool m_loadBalancersHasBeenSet =
false;
324 bool m_serviceRegistriesHasBeenSet =
false;
326 NetworkConfiguration m_networkConfiguration;
327 bool m_networkConfigurationHasBeenSet =
false;
330 bool m_containerImagesHasBeenSet =
false;
332 bool m_guardDutyEnabled{
false};
333 bool m_guardDutyEnabledHasBeenSet =
false;
335 ServiceConnectConfiguration m_serviceConnectConfiguration;
336 bool m_serviceConnectConfigurationHasBeenSet =
false;
339 bool m_volumeConfigurationsHasBeenSet =
false;
341 DeploymentEphemeralStorage m_fargateEphemeralStorage;
342 bool m_fargateEphemeralStorageHasBeenSet =
false;
345 bool m_createdAtHasBeenSet =
false;
348 bool m_vpcLatticeConfigurationsHasBeenSet =
false;
350 ResolvedConfiguration m_resolvedConfiguration;
351 bool m_resolvedConfigurationHasBeenSet =
false;
AWS_ECS_API ServiceRevision()=default
ServiceRevision & AddVolumeConfigurations(VolumeConfigurationsT &&value)
const ResolvedConfiguration & GetResolvedConfiguration() const
const Aws::String & GetTaskDefinition() const
const Aws::String & GetPlatformVersion() const
const Aws::Utils::DateTime & GetCreatedAt() const
bool ServiceRevisionArnHasBeenSet() const
bool GuardDutyEnabledHasBeenSet() const
ServiceRevision & WithServiceRegistries(ServiceRegistriesT &&value)
const DeploymentEphemeralStorage & GetFargateEphemeralStorage() const
void SetResolvedConfiguration(ResolvedConfigurationT &&value)
bool ServiceRegistriesHasBeenSet() const
const Aws::String & GetClusterArn() const
void SetPlatformVersion(PlatformVersionT &&value)
ServiceRevision & WithCapacityProviderStrategy(CapacityProviderStrategyT &&value)
bool CapacityProviderStrategyHasBeenSet() const
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
void SetServiceRegistries(ServiceRegistriesT &&value)
bool ResolvedConfigurationHasBeenSet() const
ServiceRevision & WithServiceConnectConfiguration(ServiceConnectConfigurationT &&value)
const Aws::String & GetPlatformFamily() const
ServiceRevision & WithPlatformVersion(PlatformVersionT &&value)
bool ContainerImagesHasBeenSet() const
const NetworkConfiguration & GetNetworkConfiguration() const
bool ServiceConnectConfigurationHasBeenSet() const
ServiceRevision & WithClusterArn(ClusterArnT &&value)
bool VolumeConfigurationsHasBeenSet() const
ServiceRevision & WithGuardDutyEnabled(bool value)
bool NetworkConfigurationHasBeenSet() const
bool LoadBalancersHasBeenSet() const
ServiceRevision & AddContainerImages(ContainerImagesT &&value)
const Aws::Vector< VpcLatticeConfiguration > & GetVpcLatticeConfigurations() const
ServiceRevision & WithTaskDefinition(TaskDefinitionT &&value)
ServiceRevision & AddLoadBalancers(LoadBalancersT &&value)
ServiceRevision & WithNetworkConfiguration(NetworkConfigurationT &&value)
bool ClusterArnHasBeenSet() const
LaunchType GetLaunchType() const
void SetContainerImages(ContainerImagesT &&value)
ServiceRevision & WithCreatedAt(CreatedAtT &&value)
ServiceRevision & AddCapacityProviderStrategy(CapacityProviderStrategyT &&value)
const Aws::String & GetServiceRevisionArn() const
void SetPlatformFamily(PlatformFamilyT &&value)
ServiceRevision & AddVpcLatticeConfigurations(VpcLatticeConfigurationsT &&value)
void SetFargateEphemeralStorage(FargateEphemeralStorageT &&value)
bool VpcLatticeConfigurationsHasBeenSet() const
void SetServiceRevisionArn(ServiceRevisionArnT &&value)
bool CreatedAtHasBeenSet() const
AWS_ECS_API ServiceRevision(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ServiceVolumeConfiguration > & GetVolumeConfigurations() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
bool LaunchTypeHasBeenSet() const
AWS_ECS_API ServiceRevision & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceRevision & WithContainerImages(ContainerImagesT &&value)
bool TaskDefinitionHasBeenSet() const
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
ServiceRevision & WithServiceRevisionArn(ServiceRevisionArnT &&value)
void SetVpcLatticeConfigurations(VpcLatticeConfigurationsT &&value)
void SetLoadBalancers(LoadBalancersT &&value)
void SetVolumeConfigurations(VolumeConfigurationsT &&value)
void SetNetworkConfiguration(NetworkConfigurationT &&value)
void SetServiceArn(ServiceArnT &&value)
bool ServiceArnHasBeenSet() const
ServiceRevision & WithLaunchType(LaunchType value)
ServiceRevision & WithVpcLatticeConfigurations(VpcLatticeConfigurationsT &&value)
void SetGuardDutyEnabled(bool value)
const Aws::Vector< ContainerImage > & GetContainerImages() const
ServiceRevision & WithFargateEphemeralStorage(FargateEphemeralStorageT &&value)
void SetCapacityProviderStrategy(CapacityProviderStrategyT &&value)
ServiceRevision & WithServiceArn(ServiceArnT &&value)
void SetTaskDefinition(TaskDefinitionT &&value)
ServiceRevision & WithPlatformFamily(PlatformFamilyT &&value)
void SetClusterArn(ClusterArnT &&value)
bool FargateEphemeralStorageHasBeenSet() const
const ServiceConnectConfiguration & GetServiceConnectConfiguration() const
const Aws::String & GetServiceArn() const
bool GetGuardDutyEnabled() const
void SetCreatedAt(CreatedAtT &&value)
void SetServiceConnectConfiguration(ServiceConnectConfigurationT &&value)
ServiceRevision & WithVolumeConfigurations(VolumeConfigurationsT &&value)
ServiceRevision & WithResolvedConfiguration(ResolvedConfigurationT &&value)
ServiceRevision & WithLoadBalancers(LoadBalancersT &&value)
void SetLaunchType(LaunchType value)
bool PlatformVersionHasBeenSet() const
bool PlatformFamilyHasBeenSet() const
ServiceRevision & AddServiceRegistries(ServiceRegistriesT &&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