7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecs/model/AvailabilityZoneRebalancing.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ecs/model/LaunchType.h>
13#include <aws/ecs/model/DeploymentConfiguration.h>
14#include <aws/ecs/model/NetworkConfiguration.h>
15#include <aws/ecs/model/SchedulingStrategy.h>
16#include <aws/ecs/model/DeploymentController.h>
17#include <aws/ecs/model/PropagateTags.h>
18#include <aws/ecs/model/ServiceConnectConfiguration.h>
19#include <aws/ecs/model/LoadBalancer.h>
20#include <aws/ecs/model/ServiceRegistry.h>
21#include <aws/ecs/model/CapacityProviderStrategyItem.h>
22#include <aws/ecs/model/PlacementConstraint.h>
23#include <aws/ecs/model/PlacementStrategy.h>
24#include <aws/ecs/model/Tag.h>
25#include <aws/ecs/model/ServiceVolumeConfiguration.h>
26#include <aws/ecs/model/VpcLatticeConfiguration.h>
62 template<
typename ClusterT = Aws::String>
63 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet =
true; m_cluster = std::forward<ClusterT>(value); }
64 template<
typename ClusterT = Aws::String>
77 template<
typename ServiceNameT = Aws::String>
78 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet =
true; m_serviceName = std::forward<ServiceNameT>(value); }
79 template<
typename ServiceNameT = Aws::String>
97 template<
typename TaskDefinitionT = Aws::String>
98 void SetTaskDefinition(TaskDefinitionT&& value) { m_taskDefinitionHasBeenSet =
true; m_taskDefinition = std::forward<TaskDefinitionT>(value); }
99 template<
typename TaskDefinitionT = Aws::String>
164 template<
typename LoadBalancersT = Aws::Vector<LoadBalancer>>
165 void SetLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet =
true; m_loadBalancers = std::forward<LoadBalancersT>(value); }
166 template<
typename LoadBalancersT = Aws::Vector<LoadBalancer>>
168 template<
typename LoadBalancersT = LoadBalancer>
183 template<
typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
184 void SetServiceRegistries(ServiceRegistriesT&& value) { m_serviceRegistriesHasBeenSet =
true; m_serviceRegistries = std::forward<ServiceRegistriesT>(value); }
185 template<
typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
187 template<
typename ServiceRegistriesT = ServiceRegistry>
201 inline void SetDesiredCount(
int value) { m_desiredCountHasBeenSet =
true; m_desiredCount = value; }
213 template<
typename ClientTokenT = Aws::String>
214 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
215 template<
typename ClientTokenT = Aws::String>
254 template<
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
255 void SetCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet =
true; m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value); }
256 template<
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
258 template<
typename CapacityProv
iderStrategyT = CapacityProv
iderStrategyItem>
274 template<
typename PlatformVersionT = Aws::String>
275 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet =
true; m_platformVersion = std::forward<PlatformVersionT>(value); }
276 template<
typename PlatformVersionT = Aws::String>
307 template<
typename RoleT = Aws::String>
308 void SetRole(RoleT&& value) { m_roleHasBeenSet =
true; m_role = std::forward<RoleT>(value); }
309 template<
typename RoleT = Aws::String>
320 template<
typename DeploymentConfigurationT = DeploymentConfiguration>
321 void SetDeploymentConfiguration(DeploymentConfigurationT&& value) { m_deploymentConfigurationHasBeenSet =
true; m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value); }
322 template<
typename DeploymentConfigurationT = DeploymentConfiguration>
334 template<
typename PlacementConstra
intsT = Aws::Vector<PlacementConstra
int>>
335 void SetPlacementConstraints(PlacementConstraintsT&& value) { m_placementConstraintsHasBeenSet =
true; m_placementConstraints = std::forward<PlacementConstraintsT>(value); }
336 template<
typename PlacementConstra
intsT = Aws::Vector<PlacementConstra
int>>
338 template<
typename PlacementConstra
intsT = PlacementConstra
int>
349 template<
typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
350 void SetPlacementStrategy(PlacementStrategyT&& value) { m_placementStrategyHasBeenSet =
true; m_placementStrategy = std::forward<PlacementStrategyT>(value); }
351 template<
typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
353 template<
typename PlacementStrategyT = PlacementStrategy>
369 template<
typename NetworkConfigurationT = NetworkConfiguration>
370 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet =
true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
371 template<
typename NetworkConfigurationT = NetworkConfiguration>
430 template<
typename DeploymentControllerT = DeploymentController>
431 void SetDeploymentController(DeploymentControllerT&& value) { m_deploymentControllerHasBeenSet =
true; m_deploymentController = std::forward<DeploymentControllerT>(value); }
432 template<
typename DeploymentControllerT = DeploymentController>
458 template<
typename TagsT = Aws::Vector<Tag>>
459 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
460 template<
typename TagsT = Aws::Vector<Tag>>
462 template<
typename TagsT = Tag>
526 template<
typename ServiceConnectConfigurationT = ServiceConnectConfiguration>
527 void SetServiceConnectConfiguration(ServiceConnectConfigurationT&& value) { m_serviceConnectConfigurationHasBeenSet =
true; m_serviceConnectConfiguration = std::forward<ServiceConnectConfigurationT>(value); }
528 template<
typename ServiceConnectConfigurationT = ServiceConnectConfiguration>
540 template<
typename VolumeConfigurationsT = Aws::Vector<ServiceVolumeConfiguration>>
541 void SetVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet =
true; m_volumeConfigurations = std::forward<VolumeConfigurationsT>(value); }
542 template<
typename VolumeConfigurationsT = Aws::Vector<ServiceVolumeConfiguration>>
544 template<
typename VolumeConfigurationsT = ServiceVolumeConfiguration>
554 template<
typename VpcLatticeConfigurationsT = Aws::Vector<VpcLatticeConfiguration>>
555 void SetVpcLatticeConfigurations(VpcLatticeConfigurationsT&& value) { m_vpcLatticeConfigurationsHasBeenSet =
true; m_vpcLatticeConfigurations = std::forward<VpcLatticeConfigurationsT>(value); }
556 template<
typename VpcLatticeConfigurationsT = Aws::Vector<VpcLatticeConfiguration>>
558 template<
typename VpcLatticeConfigurationsT = VpcLatticeConfiguration>
564 bool m_clusterHasBeenSet =
false;
567 bool m_serviceNameHasBeenSet =
false;
570 bool m_taskDefinitionHasBeenSet =
false;
573 bool m_availabilityZoneRebalancingHasBeenSet =
false;
576 bool m_loadBalancersHasBeenSet =
false;
579 bool m_serviceRegistriesHasBeenSet =
false;
581 int m_desiredCount{0};
582 bool m_desiredCountHasBeenSet =
false;
585 bool m_clientTokenHasBeenSet =
false;
588 bool m_launchTypeHasBeenSet =
false;
591 bool m_capacityProviderStrategyHasBeenSet =
false;
594 bool m_platformVersionHasBeenSet =
false;
597 bool m_roleHasBeenSet =
false;
599 DeploymentConfiguration m_deploymentConfiguration;
600 bool m_deploymentConfigurationHasBeenSet =
false;
603 bool m_placementConstraintsHasBeenSet =
false;
606 bool m_placementStrategyHasBeenSet =
false;
608 NetworkConfiguration m_networkConfiguration;
609 bool m_networkConfigurationHasBeenSet =
false;
611 int m_healthCheckGracePeriodSeconds{0};
612 bool m_healthCheckGracePeriodSecondsHasBeenSet =
false;
615 bool m_schedulingStrategyHasBeenSet =
false;
617 DeploymentController m_deploymentController;
618 bool m_deploymentControllerHasBeenSet =
false;
621 bool m_tagsHasBeenSet =
false;
623 bool m_enableECSManagedTags{
false};
624 bool m_enableECSManagedTagsHasBeenSet =
false;
627 bool m_propagateTagsHasBeenSet =
false;
629 bool m_enableExecuteCommand{
false};
630 bool m_enableExecuteCommandHasBeenSet =
false;
632 ServiceConnectConfiguration m_serviceConnectConfiguration;
633 bool m_serviceConnectConfigurationHasBeenSet =
false;
636 bool m_volumeConfigurationsHasBeenSet =
false;
639 bool m_vpcLatticeConfigurationsHasBeenSet =
false;
LaunchType GetLaunchType() const
bool PlacementStrategyHasBeenSet() const
void SetTaskDefinition(TaskDefinitionT &&value)
AWS_ECS_API CreateServiceRequest()=default
void SetCluster(ClusterT &&value)
void SetHealthCheckGracePeriodSeconds(int value)
void SetDeploymentController(DeploymentControllerT &&value)
CreateServiceRequest & AddPlacementStrategy(PlacementStrategyT &&value)
void SetCapacityProviderStrategy(CapacityProviderStrategyT &&value)
CreateServiceRequest & WithLoadBalancers(LoadBalancersT &&value)
void SetRole(RoleT &&value)
void SetPlacementConstraints(PlacementConstraintsT &&value)
void SetEnableExecuteCommand(bool value)
bool RoleHasBeenSet() const
void SetVpcLatticeConfigurations(VpcLatticeConfigurationsT &&value)
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
void SetNetworkConfiguration(NetworkConfigurationT &&value)
CreateServiceRequest & WithPropagateTags(PropagateTags value)
bool HealthCheckGracePeriodSecondsHasBeenSet() const
bool TagsHasBeenSet() const
bool AvailabilityZoneRebalancingHasBeenSet() const
CreateServiceRequest & AddVpcLatticeConfigurations(VpcLatticeConfigurationsT &&value)
void SetTags(TagsT &&value)
void SetServiceConnectConfiguration(ServiceConnectConfigurationT &&value)
CreateServiceRequest & WithVolumeConfigurations(VolumeConfigurationsT &&value)
bool CapacityProviderStrategyHasBeenSet() const
bool PropagateTagsHasBeenSet() const
CreateServiceRequest & AddCapacityProviderStrategy(CapacityProviderStrategyT &&value)
CreateServiceRequest & WithRole(RoleT &&value)
bool PlacementConstraintsHasBeenSet() const
CreateServiceRequest & AddServiceRegistries(ServiceRegistriesT &&value)
const DeploymentConfiguration & GetDeploymentConfiguration() const
bool GetEnableExecuteCommand() const
bool DeploymentControllerHasBeenSet() const
CreateServiceRequest & WithDeploymentController(DeploymentControllerT &&value)
CreateServiceRequest & WithPlacementConstraints(PlacementConstraintsT &&value)
CreateServiceRequest & AddVolumeConfigurations(VolumeConfigurationsT &&value)
const NetworkConfiguration & GetNetworkConfiguration() const
int GetHealthCheckGracePeriodSeconds() const
void SetPropagateTags(PropagateTags value)
CreateServiceRequest & AddLoadBalancers(LoadBalancersT &&value)
void SetLaunchType(LaunchType value)
CreateServiceRequest & WithEnableExecuteCommand(bool value)
AWS_ECS_API Aws::String SerializePayload() const override
bool LaunchTypeHasBeenSet() const
CreateServiceRequest & WithDeploymentConfiguration(DeploymentConfigurationT &&value)
CreateServiceRequest & WithClientToken(ClientTokenT &&value)
CreateServiceRequest & WithSchedulingStrategy(SchedulingStrategy value)
void SetDeploymentConfiguration(DeploymentConfigurationT &&value)
CreateServiceRequest & WithLaunchType(LaunchType value)
CreateServiceRequest & WithServiceConnectConfiguration(ServiceConnectConfigurationT &&value)
bool PlatformVersionHasBeenSet() const
CreateServiceRequest & WithEnableECSManagedTags(bool value)
bool ServiceConnectConfigurationHasBeenSet() const
const Aws::String & GetTaskDefinition() const
void SetClientToken(ClientTokenT &&value)
CreateServiceRequest & AddPlacementConstraints(PlacementConstraintsT &&value)
CreateServiceRequest & WithCapacityProviderStrategy(CapacityProviderStrategyT &&value)
void SetServiceRegistries(ServiceRegistriesT &&value)
CreateServiceRequest & WithHealthCheckGracePeriodSeconds(int value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
SchedulingStrategy GetSchedulingStrategy() const
bool ClientTokenHasBeenSet() const
CreateServiceRequest & WithDesiredCount(int value)
const Aws::Vector< VpcLatticeConfiguration > & GetVpcLatticeConfigurations() const
bool EnableExecuteCommandHasBeenSet() const
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
const DeploymentController & GetDeploymentController() const
const Aws::Vector< Tag > & GetTags() const
bool DeploymentConfigurationHasBeenSet() const
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
void SetLoadBalancers(LoadBalancersT &&value)
const Aws::String & GetServiceName() const
bool VpcLatticeConfigurationsHasBeenSet() const
bool GetEnableECSManagedTags() const
CreateServiceRequest & WithServiceName(ServiceNameT &&value)
void SetAvailabilityZoneRebalancing(AvailabilityZoneRebalancing value)
bool DesiredCountHasBeenSet() const
void SetEnableECSManagedTags(bool value)
CreateServiceRequest & AddTags(TagsT &&value)
PropagateTags GetPropagateTags() const
bool ClusterHasBeenSet() const
void SetDesiredCount(int value)
CreateServiceRequest & WithCluster(ClusterT &&value)
void SetVolumeConfigurations(VolumeConfigurationsT &&value)
CreateServiceRequest & WithVpcLatticeConfigurations(VpcLatticeConfigurationsT &&value)
CreateServiceRequest & WithTaskDefinition(TaskDefinitionT &&value)
const Aws::String & GetPlatformVersion() const
CreateServiceRequest & WithPlatformVersion(PlatformVersionT &&value)
CreateServiceRequest & WithTags(TagsT &&value)
void SetPlacementStrategy(PlacementStrategyT &&value)
bool NetworkConfigurationHasBeenSet() const
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
const Aws::String & GetRole() const
bool TaskDefinitionHasBeenSet() const
CreateServiceRequest & WithPlacementStrategy(PlacementStrategyT &&value)
AvailabilityZoneRebalancing GetAvailabilityZoneRebalancing() const
void SetServiceName(ServiceNameT &&value)
void SetPlatformVersion(PlatformVersionT &&value)
bool ServiceNameHasBeenSet() const
bool VolumeConfigurationsHasBeenSet() const
int GetDesiredCount() const
bool EnableECSManagedTagsHasBeenSet() const
const Aws::String & GetClientToken() const
const ServiceConnectConfiguration & GetServiceConnectConfiguration() const
const Aws::Vector< ServiceVolumeConfiguration > & GetVolumeConfigurations() const
CreateServiceRequest & WithServiceRegistries(ServiceRegistriesT &&value)
bool ServiceRegistriesHasBeenSet() const
bool LoadBalancersHasBeenSet() const
void SetSchedulingStrategy(SchedulingStrategy value)
CreateServiceRequest & WithAvailabilityZoneRebalancing(AvailabilityZoneRebalancing value)
const Aws::String & GetCluster() const
bool SchedulingStrategyHasBeenSet() const
CreateServiceRequest & WithNetworkConfiguration(NetworkConfigurationT &&value)
AvailabilityZoneRebalancing
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector