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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/LaunchType.h>
12#include <aws/ecs/model/DeploymentConfiguration.h>
13#include <aws/ecs/model/NetworkConfiguration.h>
14#include <aws/ecs/model/SchedulingStrategy.h>
15#include <aws/ecs/model/DeploymentController.h>
16#include <aws/ecs/model/PropagateTags.h>
17#include <aws/ecs/model/ServiceConnectConfiguration.h>
18#include <aws/ecs/model/LoadBalancer.h>
19#include <aws/ecs/model/ServiceRegistry.h>
20#include <aws/ecs/model/CapacityProviderStrategyItem.h>
21#include <aws/ecs/model/PlacementConstraint.h>
22#include <aws/ecs/model/PlacementStrategy.h>
23#include <aws/ecs/model/Tag.h>
24#include <aws/ecs/model/ServiceVolumeConfiguration.h>
62 inline void SetCluster(
const char* value) { m_clusterHasBeenSet =
true; m_cluster.assign(value); }
79 inline void SetServiceName(
const char* value) { m_serviceNameHasBeenSet =
true; m_serviceName.assign(value); }
101 inline void SetTaskDefinition(
const char* value) { m_taskDefinitionHasBeenSet =
true; m_taskDefinition.assign(value); }
191 inline void SetDesiredCount(
int value) { m_desiredCountHasBeenSet =
true; m_desiredCount = value; }
205 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
270 inline void SetPlatformVersion(
const char* value) { m_platformVersionHasBeenSet =
true; m_platformVersion.assign(value); }
305 inline void SetRole(
const char* value) { m_roleHasBeenSet =
true; m_role.assign(value); }
556 bool m_clusterHasBeenSet =
false;
559 bool m_serviceNameHasBeenSet =
false;
562 bool m_taskDefinitionHasBeenSet =
false;
565 bool m_loadBalancersHasBeenSet =
false;
568 bool m_serviceRegistriesHasBeenSet =
false;
571 bool m_desiredCountHasBeenSet =
false;
574 bool m_clientTokenHasBeenSet =
false;
577 bool m_launchTypeHasBeenSet =
false;
580 bool m_capacityProviderStrategyHasBeenSet =
false;
583 bool m_platformVersionHasBeenSet =
false;
586 bool m_roleHasBeenSet =
false;
589 bool m_deploymentConfigurationHasBeenSet =
false;
592 bool m_placementConstraintsHasBeenSet =
false;
595 bool m_placementStrategyHasBeenSet =
false;
598 bool m_networkConfigurationHasBeenSet =
false;
600 int m_healthCheckGracePeriodSeconds;
601 bool m_healthCheckGracePeriodSecondsHasBeenSet =
false;
604 bool m_schedulingStrategyHasBeenSet =
false;
607 bool m_deploymentControllerHasBeenSet =
false;
610 bool m_tagsHasBeenSet =
false;
612 bool m_enableECSManagedTags;
613 bool m_enableECSManagedTagsHasBeenSet =
false;
616 bool m_propagateTagsHasBeenSet =
false;
618 bool m_enableExecuteCommand;
619 bool m_enableExecuteCommandHasBeenSet =
false;
622 bool m_serviceConnectConfigurationHasBeenSet =
false;
625 bool m_volumeConfigurationsHasBeenSet =
false;
void SetLoadBalancers(const Aws::Vector< LoadBalancer > &value)
bool PlacementStrategyHasBeenSet() const
CreateServiceRequest & WithSchedulingStrategy(SchedulingStrategy &&value)
CreateServiceRequest & WithPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
CreateServiceRequest & WithServiceConnectConfiguration(ServiceConnectConfiguration &&value)
CreateServiceRequest & AddCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
CreateServiceRequest & WithDeploymentConfiguration(const DeploymentConfiguration &value)
void SetHealthCheckGracePeriodSeconds(int value)
void SetVolumeConfigurations(Aws::Vector< ServiceVolumeConfiguration > &&value)
CreateServiceRequest & WithDeploymentController(const DeploymentController &value)
const LaunchType & GetLaunchType() const
void SetLoadBalancers(Aws::Vector< LoadBalancer > &&value)
void SetServiceName(const Aws::String &value)
void SetEnableExecuteCommand(bool value)
CreateServiceRequest & WithLaunchType(const LaunchType &value)
bool RoleHasBeenSet() const
void SetCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
CreateServiceRequest & WithVolumeConfigurations(Aws::Vector< ServiceVolumeConfiguration > &&value)
void SetServiceRegistries(Aws::Vector< ServiceRegistry > &&value)
void SetServiceConnectConfiguration(ServiceConnectConfiguration &&value)
CreateServiceRequest & WithServiceRegistries(const Aws::Vector< ServiceRegistry > &value)
void SetServiceConnectConfiguration(const ServiceConnectConfiguration &value)
void SetClientToken(const Aws::String &value)
void SetDeploymentConfiguration(const DeploymentConfiguration &value)
CreateServiceRequest & AddLoadBalancers(const LoadBalancer &value)
bool HealthCheckGracePeriodSecondsHasBeenSet() const
const SchedulingStrategy & GetSchedulingStrategy() const
bool TagsHasBeenSet() const
CreateServiceRequest & WithRole(Aws::String &&value)
CreateServiceRequest & WithNetworkConfiguration(const NetworkConfiguration &value)
void SetPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
void SetPlatformVersion(Aws::String &&value)
CreateServiceRequest & WithPropagateTags(PropagateTags &&value)
void SetPropagateTags(const PropagateTags &value)
void SetNetworkConfiguration(const NetworkConfiguration &value)
bool CapacityProviderStrategyHasBeenSet() const
CreateServiceRequest & WithCluster(Aws::String &&value)
void SetVolumeConfigurations(const Aws::Vector< ServiceVolumeConfiguration > &value)
CreateServiceRequest & WithClientToken(const Aws::String &value)
CreateServiceRequest & WithPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
bool PropagateTagsHasBeenSet() const
CreateServiceRequest & WithServiceName(const Aws::String &value)
bool PlacementConstraintsHasBeenSet() const
void SetClientToken(Aws::String &&value)
const DeploymentConfiguration & GetDeploymentConfiguration() const
bool GetEnableExecuteCommand() const
CreateServiceRequest & WithCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
bool DeploymentControllerHasBeenSet() const
CreateServiceRequest & WithServiceConnectConfiguration(const ServiceConnectConfiguration &value)
CreateServiceRequest & WithVolumeConfigurations(const Aws::Vector< ServiceVolumeConfiguration > &value)
CreateServiceRequest & WithPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
const NetworkConfiguration & GetNetworkConfiguration() const
int GetHealthCheckGracePeriodSeconds() const
CreateServiceRequest & WithPlatformVersion(const Aws::String &value)
CreateServiceRequest & AddPlacementConstraints(const PlacementConstraint &value)
CreateServiceRequest & WithEnableExecuteCommand(bool value)
void SetPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
AWS_ECS_API Aws::String SerializePayload() const override
bool LaunchTypeHasBeenSet() const
void SetLaunchType(const LaunchType &value)
AWS_ECS_API CreateServiceRequest()
void SetServiceRegistries(const Aws::Vector< ServiceRegistry > &value)
CreateServiceRequest & WithCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
bool PlatformVersionHasBeenSet() const
CreateServiceRequest & WithEnableECSManagedTags(bool value)
CreateServiceRequest & WithTaskDefinition(Aws::String &&value)
CreateServiceRequest & WithServiceName(Aws::String &&value)
bool ServiceConnectConfigurationHasBeenSet() const
CreateServiceRequest & WithCluster(const Aws::String &value)
CreateServiceRequest & AddTags(Tag &&value)
const Aws::String & GetTaskDefinition() const
CreateServiceRequest & WithHealthCheckGracePeriodSeconds(int value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
CreateServiceRequest & WithTaskDefinition(const char *value)
bool ClientTokenHasBeenSet() const
void SetSchedulingStrategy(const SchedulingStrategy &value)
void SetRole(const char *value)
CreateServiceRequest & WithDesiredCount(int value)
bool EnableExecuteCommandHasBeenSet() const
CreateServiceRequest & WithClientToken(const char *value)
CreateServiceRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTaskDefinition(const char *value)
void SetDeploymentController(DeploymentController &&value)
CreateServiceRequest & WithRole(const Aws::String &value)
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
const DeploymentController & GetDeploymentController() const
const Aws::Vector< Tag > & GetTags() const
bool DeploymentConfigurationHasBeenSet() const
CreateServiceRequest & WithLoadBalancers(Aws::Vector< LoadBalancer > &&value)
void SetPropagateTags(PropagateTags &&value)
CreateServiceRequest & AddServiceRegistries(ServiceRegistry &&value)
void SetRole(Aws::String &&value)
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
const Aws::String & GetServiceName() const
bool GetEnableECSManagedTags() const
CreateServiceRequest & WithPlatformVersion(Aws::String &&value)
void SetDeploymentController(const DeploymentController &value)
void SetPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
bool DesiredCountHasBeenSet() const
CreateServiceRequest & AddCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
void SetEnableECSManagedTags(bool value)
CreateServiceRequest & AddLoadBalancers(LoadBalancer &&value)
CreateServiceRequest & AddPlacementConstraints(PlacementConstraint &&value)
void SetServiceName(const char *value)
void SetCluster(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
bool ClusterHasBeenSet() const
CreateServiceRequest & WithLoadBalancers(const Aws::Vector< LoadBalancer > &value)
void SetDesiredCount(int value)
const Aws::String & GetPlatformVersion() const
void SetServiceName(Aws::String &&value)
CreateServiceRequest & AddVolumeConfigurations(ServiceVolumeConfiguration &&value)
CreateServiceRequest & WithDeploymentController(DeploymentController &&value)
CreateServiceRequest & WithCluster(const char *value)
bool NetworkConfigurationHasBeenSet() const
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
const Aws::String & GetRole() const
bool TaskDefinitionHasBeenSet() const
CreateServiceRequest & WithPlatformVersion(const char *value)
CreateServiceRequest & WithDeploymentConfiguration(DeploymentConfiguration &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetTaskDefinition(const Aws::String &value)
void SetTaskDefinition(Aws::String &&value)
bool ServiceNameHasBeenSet() const
void SetLaunchType(LaunchType &&value)
bool VolumeConfigurationsHasBeenSet() const
void SetCluster(const Aws::String &value)
CreateServiceRequest & WithRole(const char *value)
const PropagateTags & GetPropagateTags() const
CreateServiceRequest & AddPlacementStrategy(PlacementStrategy &&value)
CreateServiceRequest & WithSchedulingStrategy(const SchedulingStrategy &value)
void SetCluster(Aws::String &&value)
CreateServiceRequest & WithTags(Aws::Vector< Tag > &&value)
int GetDesiredCount() const
void SetClientToken(const char *value)
CreateServiceRequest & AddVolumeConfigurations(const ServiceVolumeConfiguration &value)
bool EnableECSManagedTagsHasBeenSet() const
void SetNetworkConfiguration(NetworkConfiguration &&value)
const Aws::String & GetClientToken() const
CreateServiceRequest & WithTaskDefinition(const Aws::String &value)
CreateServiceRequest & AddServiceRegistries(const ServiceRegistry &value)
CreateServiceRequest & WithServiceName(const char *value)
const ServiceConnectConfiguration & GetServiceConnectConfiguration() const
CreateServiceRequest & AddPlacementStrategy(const PlacementStrategy &value)
const Aws::Vector< ServiceVolumeConfiguration > & GetVolumeConfigurations() const
CreateServiceRequest & AddTags(const Tag &value)
CreateServiceRequest & WithNetworkConfiguration(NetworkConfiguration &&value)
CreateServiceRequest & WithPropagateTags(const PropagateTags &value)
bool ServiceRegistriesHasBeenSet() const
void SetCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
void SetSchedulingStrategy(SchedulingStrategy &&value)
bool LoadBalancersHasBeenSet() const
void SetDeploymentConfiguration(DeploymentConfiguration &&value)
CreateServiceRequest & WithLaunchType(LaunchType &&value)
void SetRole(const Aws::String &value)
CreateServiceRequest & WithPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
void SetPlatformVersion(const char *value)
void SetPlatformVersion(const Aws::String &value)
const Aws::String & GetCluster() const
bool SchedulingStrategyHasBeenSet() const
CreateServiceRequest & WithClientToken(Aws::String &&value)
CreateServiceRequest & WithServiceRegistries(Aws::Vector< ServiceRegistry > &&value)
void SetPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
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