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/AvailabilityZoneRebalancing.h>
12#include <aws/ecs/model/CapacityProviderStrategyItem.h>
13#include <aws/ecs/model/Deployment.h>
14#include <aws/ecs/model/DeploymentConfiguration.h>
15#include <aws/ecs/model/DeploymentController.h>
16#include <aws/ecs/model/LaunchType.h>
17#include <aws/ecs/model/LoadBalancer.h>
18#include <aws/ecs/model/NetworkConfiguration.h>
19#include <aws/ecs/model/PlacementConstraint.h>
20#include <aws/ecs/model/PlacementStrategy.h>
21#include <aws/ecs/model/PropagateTags.h>
22#include <aws/ecs/model/ResourceManagementType.h>
23#include <aws/ecs/model/SchedulingStrategy.h>
24#include <aws/ecs/model/ServiceCurrentRevisionSummary.h>
25#include <aws/ecs/model/ServiceEvent.h>
26#include <aws/ecs/model/ServiceRegistry.h>
27#include <aws/ecs/model/Tag.h>
28#include <aws/ecs/model/TaskSet.h>
63 template <
typename ServiceArnT = Aws::String>
65 m_serviceArnHasBeenSet =
true;
66 m_serviceArn = std::forward<ServiceArnT>(value);
68 template <
typename ServiceArnT = Aws::String>
84 template <
typename ServiceNameT = Aws::String>
86 m_serviceNameHasBeenSet =
true;
87 m_serviceName = std::forward<ServiceNameT>(value);
89 template <
typename ServiceNameT = Aws::String>
102 template <
typename ClusterArnT = Aws::String>
104 m_clusterArnHasBeenSet =
true;
105 m_clusterArn = std::forward<ClusterArnT>(value);
107 template <
typename ClusterArnT = Aws::String>
123 template <
typename LoadBalancersT = Aws::Vector<LoadBalancer>>
125 m_loadBalancersHasBeenSet =
true;
126 m_loadBalancers = std::forward<LoadBalancersT>(value);
128 template <
typename LoadBalancersT = Aws::Vector<LoadBalancer>>
133 template <
typename LoadBalancersT = LoadBalancer>
135 m_loadBalancersHasBeenSet =
true;
136 m_loadBalancers.emplace_back(std::forward<LoadBalancersT>(value));
150 template <
typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
152 m_serviceRegistriesHasBeenSet =
true;
153 m_serviceRegistries = std::forward<ServiceRegistriesT>(value);
155 template <
typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
160 template <
typename ServiceRegistriesT = ServiceRegistry>
162 m_serviceRegistriesHasBeenSet =
true;
163 m_serviceRegistries.emplace_back(std::forward<ServiceRegistriesT>(value));
175 template <
typename StatusT = Aws::String>
177 m_statusHasBeenSet =
true;
178 m_status = std::forward<StatusT>(value);
180 template <
typename StatusT = Aws::String>
198 m_desiredCountHasBeenSet =
true;
199 m_desiredCount = value;
215 m_runningCountHasBeenSet =
true;
216 m_runningCount = value;
232 m_pendingCountHasBeenSet =
true;
233 m_pendingCount = value;
250 m_launchTypeHasBeenSet =
true;
251 m_launchType = value;
267 template <
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
269 m_capacityProviderStrategyHasBeenSet =
true;
270 m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value);
272 template <
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
277 template <
typename CapacityProv
iderStrategyT = CapacityProv
iderStrategyItem>
279 m_capacityProviderStrategyHasBeenSet =
true;
280 m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value));
296 template <
typename PlatformVersionT = Aws::String>
298 m_platformVersionHasBeenSet =
true;
299 m_platformVersion = std::forward<PlatformVersionT>(value);
301 template <
typename PlatformVersionT = Aws::String>
317 template <
typename PlatformFamilyT = Aws::String>
319 m_platformFamilyHasBeenSet =
true;
320 m_platformFamily = std::forward<PlatformFamilyT>(value);
322 template <
typename PlatformFamilyT = Aws::String>
339 template <
typename TaskDefinitionT = Aws::String>
341 m_taskDefinitionHasBeenSet =
true;
342 m_taskDefinition = std::forward<TaskDefinitionT>(value);
344 template <
typename TaskDefinitionT = Aws::String>
358 template <
typename DeploymentConfigurationT = DeploymentConfiguration>
360 m_deploymentConfigurationHasBeenSet =
true;
361 m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value);
363 template <
typename DeploymentConfigurationT = DeploymentConfiguration>
379 template <
typename TaskSetsT = Aws::Vector<TaskSet>>
381 m_taskSetsHasBeenSet =
true;
382 m_taskSets = std::forward<TaskSetsT>(value);
384 template <
typename TaskSetsT = Aws::Vector<TaskSet>>
389 template <
typename TaskSetsT = TaskSet>
391 m_taskSetsHasBeenSet =
true;
392 m_taskSets.emplace_back(std::forward<TaskSetsT>(value));
403 template <
typename DeploymentsT = Aws::Vector<Deployment>>
405 m_deploymentsHasBeenSet =
true;
406 m_deployments = std::forward<DeploymentsT>(value);
408 template <
typename DeploymentsT = Aws::Vector<Deployment>>
413 template <
typename DeploymentsT = Deployment>
415 m_deploymentsHasBeenSet =
true;
416 m_deployments.emplace_back(std::forward<DeploymentsT>(value));
429 template <
typename RoleArnT = Aws::String>
431 m_roleArnHasBeenSet =
true;
432 m_roleArn = std::forward<RoleArnT>(value);
434 template <
typename RoleArnT = Aws::String>
448 template <
typename EventsT = Aws::Vector<ServiceEvent>>
450 m_eventsHasBeenSet =
true;
451 m_events = std::forward<EventsT>(value);
453 template <
typename EventsT = Aws::Vector<ServiceEvent>>
458 template <
typename EventsT = ServiceEvent>
460 m_eventsHasBeenSet =
true;
461 m_events.emplace_back(std::forward<EventsT>(value));
472 template <
typename CreatedAtT = Aws::Utils::DateTime>
474 m_createdAtHasBeenSet =
true;
475 m_createdAt = std::forward<CreatedAtT>(value);
477 template <
typename CreatedAtT = Aws::Utils::DateTime>
490 template <
typename CurrentServiceDeploymentT = Aws::String>
492 m_currentServiceDeploymentHasBeenSet =
true;
493 m_currentServiceDeployment = std::forward<CurrentServiceDeploymentT>(value);
495 template <
typename CurrentServiceDeploymentT = Aws::String>
508 template <
typename CurrentServiceRevisionsT = Aws::Vector<ServiceCurrentRevisionSummary>>
510 m_currentServiceRevisionsHasBeenSet =
true;
511 m_currentServiceRevisions = std::forward<CurrentServiceRevisionsT>(value);
513 template <
typename CurrentServiceRevisionsT = Aws::Vector<ServiceCurrentRevisionSummary>>
518 template <
typename CurrentServiceRevisionsT = ServiceCurrentRevisionSummary>
520 m_currentServiceRevisionsHasBeenSet =
true;
521 m_currentServiceRevisions.emplace_back(std::forward<CurrentServiceRevisionsT>(value));
532 template <
typename PlacementConstra
intsT = Aws::Vector<PlacementConstra
int>>
534 m_placementConstraintsHasBeenSet =
true;
535 m_placementConstraints = std::forward<PlacementConstraintsT>(value);
537 template <
typename PlacementConstra
intsT = Aws::Vector<PlacementConstra
int>>
542 template <
typename PlacementConstra
intsT = PlacementConstra
int>
544 m_placementConstraintsHasBeenSet =
true;
545 m_placementConstraints.emplace_back(std::forward<PlacementConstraintsT>(value));
557 template <
typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
559 m_placementStrategyHasBeenSet =
true;
560 m_placementStrategy = std::forward<PlacementStrategyT>(value);
562 template <
typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
567 template <
typename PlacementStrategyT = PlacementStrategy>
569 m_placementStrategyHasBeenSet =
true;
570 m_placementStrategy.emplace_back(std::forward<PlacementStrategyT>(value));
583 template <
typename NetworkConfigurationT = NetworkConfiguration>
585 m_networkConfigurationHasBeenSet =
true;
586 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
588 template <
typename NetworkConfigurationT = NetworkConfiguration>
606 m_healthCheckGracePeriodSecondsHasBeenSet =
true;
607 m_healthCheckGracePeriodSeconds = value;
634 m_schedulingStrategyHasBeenSet =
true;
635 m_schedulingStrategy = value;
649 template <
typename DeploymentControllerT = DeploymentController>
651 m_deploymentControllerHasBeenSet =
true;
652 m_deploymentController = std::forward<DeploymentControllerT>(value);
654 template <
typename DeploymentControllerT = DeploymentController>
683 template <
typename TagsT = Aws::Vector<Tag>>
685 m_tagsHasBeenSet =
true;
686 m_tags = std::forward<TagsT>(value);
688 template <
typename TagsT = Aws::Vector<Tag>>
690 SetTags(std::forward<TagsT>(value));
693 template <
typename TagsT = Tag>
695 m_tagsHasBeenSet =
true;
696 m_tags.emplace_back(std::forward<TagsT>(value));
707 template <
typename CreatedByT = Aws::String>
709 m_createdByHasBeenSet =
true;
710 m_createdBy = std::forward<CreatedByT>(value);
712 template <
typename CreatedByT = Aws::String>
730 m_enableECSManagedTagsHasBeenSet =
true;
731 m_enableECSManagedTags = value;
747 m_propagateTagsHasBeenSet =
true;
748 m_propagateTags = value;
765 m_enableExecuteCommandHasBeenSet =
true;
766 m_enableExecuteCommand = value;
793 m_availabilityZoneRebalancingHasBeenSet =
true;
794 m_availabilityZoneRebalancing = value;
811 m_resourceManagementTypeHasBeenSet =
true;
812 m_resourceManagementType = value;
832 int m_desiredCount{0};
834 int m_runningCount{0};
836 int m_pendingCount{0};
848 DeploymentConfiguration m_deploymentConfiguration;
868 NetworkConfiguration m_networkConfiguration;
870 int m_healthCheckGracePeriodSeconds{0};
874 DeploymentController m_deploymentController;
880 bool m_enableECSManagedTags{
false};
884 bool m_enableExecuteCommand{
false};
889 bool m_serviceArnHasBeenSet =
false;
890 bool m_serviceNameHasBeenSet =
false;
891 bool m_clusterArnHasBeenSet =
false;
892 bool m_loadBalancersHasBeenSet =
false;
893 bool m_serviceRegistriesHasBeenSet =
false;
894 bool m_statusHasBeenSet =
false;
895 bool m_desiredCountHasBeenSet =
false;
896 bool m_runningCountHasBeenSet =
false;
897 bool m_pendingCountHasBeenSet =
false;
898 bool m_launchTypeHasBeenSet =
false;
899 bool m_capacityProviderStrategyHasBeenSet =
false;
900 bool m_platformVersionHasBeenSet =
false;
901 bool m_platformFamilyHasBeenSet =
false;
902 bool m_taskDefinitionHasBeenSet =
false;
903 bool m_deploymentConfigurationHasBeenSet =
false;
904 bool m_taskSetsHasBeenSet =
false;
905 bool m_deploymentsHasBeenSet =
false;
906 bool m_roleArnHasBeenSet =
false;
907 bool m_eventsHasBeenSet =
false;
908 bool m_createdAtHasBeenSet =
false;
909 bool m_currentServiceDeploymentHasBeenSet =
false;
910 bool m_currentServiceRevisionsHasBeenSet =
false;
911 bool m_placementConstraintsHasBeenSet =
false;
912 bool m_placementStrategyHasBeenSet =
false;
913 bool m_networkConfigurationHasBeenSet =
false;
914 bool m_healthCheckGracePeriodSecondsHasBeenSet =
false;
915 bool m_schedulingStrategyHasBeenSet =
false;
916 bool m_deploymentControllerHasBeenSet =
false;
917 bool m_tagsHasBeenSet =
false;
918 bool m_createdByHasBeenSet =
false;
919 bool m_enableECSManagedTagsHasBeenSet =
false;
920 bool m_propagateTagsHasBeenSet =
false;
921 bool m_enableExecuteCommandHasBeenSet =
false;
922 bool m_availabilityZoneRebalancingHasBeenSet =
false;
923 bool m_resourceManagementTypeHasBeenSet =
false;
void SetRunningCount(int value)
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
const Aws::String & GetTaskDefinition() const
AWS_ECS_API Service()=default
bool DesiredCountHasBeenSet() const
void SetDeployments(DeploymentsT &&value)
bool RoleArnHasBeenSet() const
const DeploymentConfiguration & GetDeploymentConfiguration() const
bool DeploymentConfigurationHasBeenSet() const
void SetPropagateTags(PropagateTags value)
const Aws::Vector< ServiceCurrentRevisionSummary > & GetCurrentServiceRevisions() const
bool EventsHasBeenSet() const
bool DeploymentControllerHasBeenSet() const
Service & AddPlacementStrategy(PlacementStrategyT &&value)
Service & AddEvents(EventsT &&value)
void SetPlatformVersion(PlatformVersionT &&value)
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
Service & WithNetworkConfiguration(NetworkConfigurationT &&value)
void SetLoadBalancers(LoadBalancersT &&value)
const Aws::String & GetRoleArn() const
bool CurrentServiceDeploymentHasBeenSet() const
bool HealthCheckGracePeriodSecondsHasBeenSet() const
bool CurrentServiceRevisionsHasBeenSet() const
bool TaskSetsHasBeenSet() const
Service & WithStatus(StatusT &&value)
bool NetworkConfigurationHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
Service & WithAvailabilityZoneRebalancing(AvailabilityZoneRebalancing value)
Service & AddServiceRegistries(ServiceRegistriesT &&value)
bool PlacementStrategyHasBeenSet() const
void SetStatus(StatusT &&value)
bool RunningCountHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
Service & WithClusterArn(ClusterArnT &&value)
Service & WithPendingCount(int value)
Service & WithCreatedAt(CreatedAtT &&value)
Service & AddTags(TagsT &&value)
Service & WithServiceRegistries(ServiceRegistriesT &&value)
const Aws::String & GetStatus() const
bool PlatformFamilyHasBeenSet() const
Service & AddDeployments(DeploymentsT &&value)
Service & WithPlatformVersion(PlatformVersionT &&value)
int GetDesiredCount() const
void SetTaskSets(TaskSetsT &&value)
Service & WithDesiredCount(int value)
const NetworkConfiguration & GetNetworkConfiguration() const
void SetServiceRegistries(ServiceRegistriesT &&value)
Service & WithLoadBalancers(LoadBalancersT &&value)
void SetRoleArn(RoleArnT &&value)
bool CreatedByHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
Service & WithEnableExecuteCommand(bool value)
void SetEnableExecuteCommand(bool value)
Service & WithServiceName(ServiceNameT &&value)
AWS_ECS_API Service(Aws::Utils::Json::JsonView jsonValue)
bool LoadBalancersHasBeenSet() const
Service & WithDeployments(DeploymentsT &&value)
const Aws::String & GetCurrentServiceDeployment() const
Service & WithCurrentServiceRevisions(CurrentServiceRevisionsT &&value)
int GetPendingCount() const
void SetTags(TagsT &&value)
bool ServiceArnHasBeenSet() const
bool ServiceNameHasBeenSet() const
Service & WithEvents(EventsT &&value)
bool PropagateTagsHasBeenSet() const
int GetHealthCheckGracePeriodSeconds() const
bool PlatformVersionHasBeenSet() const
Service & WithResourceManagementType(ResourceManagementType value)
void SetServiceName(ServiceNameT &&value)
void SetResourceManagementType(ResourceManagementType value)
bool ClusterArnHasBeenSet() const
const Aws::Vector< TaskSet > & GetTaskSets() const
Service & WithRunningCount(int value)
void SetCapacityProviderStrategy(CapacityProviderStrategyT &&value)
void SetLaunchType(LaunchType value)
Service & WithLaunchType(LaunchType value)
Service & AddTaskSets(TaskSetsT &&value)
bool PlacementConstraintsHasBeenSet() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
Service & WithRoleArn(RoleArnT &&value)
Service & WithPlatformFamily(PlatformFamilyT &&value)
const Aws::String & GetPlatformFamily() const
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
Service & AddCurrentServiceRevisions(CurrentServiceRevisionsT &&value)
void SetEvents(EventsT &&value)
bool GetEnableECSManagedTags() const
const Aws::String & GetCreatedBy() const
bool TaskDefinitionHasBeenSet() const
Service & AddLoadBalancers(LoadBalancersT &&value)
void SetCurrentServiceRevisions(CurrentServiceRevisionsT &&value)
Service & WithTaskDefinition(TaskDefinitionT &&value)
void SetTaskDefinition(TaskDefinitionT &&value)
AWS_ECS_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPlatformVersion() const
ResourceManagementType GetResourceManagementType() const
bool PendingCountHasBeenSet() const
bool EnableECSManagedTagsHasBeenSet() const
bool GetEnableExecuteCommand() const
Service & WithDeploymentConfiguration(DeploymentConfigurationT &&value)
bool ServiceRegistriesHasBeenSet() const
Service & WithCapacityProviderStrategy(CapacityProviderStrategyT &&value)
Service & WithServiceArn(ServiceArnT &&value)
bool EnableExecuteCommandHasBeenSet() const
bool TagsHasBeenSet() const
Service & WithTaskSets(TaskSetsT &&value)
bool AvailabilityZoneRebalancingHasBeenSet() const
Service & WithCurrentServiceDeployment(CurrentServiceDeploymentT &&value)
bool ResourceManagementTypeHasBeenSet() const
void SetSchedulingStrategy(SchedulingStrategy value)
Service & WithHealthCheckGracePeriodSeconds(int value)
void SetPlacementConstraints(PlacementConstraintsT &&value)
const Aws::Vector< Deployment > & GetDeployments() const
Service & WithPropagateTags(PropagateTags value)
void SetPlatformFamily(PlatformFamilyT &&value)
Service & WithPlacementConstraints(PlacementConstraintsT &&value)
Service & WithSchedulingStrategy(SchedulingStrategy value)
bool CapacityProviderStrategyHasBeenSet() const
Service & AddPlacementConstraints(PlacementConstraintsT &&value)
Service & WithCreatedBy(CreatedByT &&value)
Service & WithPlacementStrategy(PlacementStrategyT &&value)
SchedulingStrategy GetSchedulingStrategy() const
bool CreatedAtHasBeenSet() const
const Aws::String & GetServiceArn() const
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
void SetServiceArn(ServiceArnT &&value)
PropagateTags GetPropagateTags() const
const DeploymentController & GetDeploymentController() const
LaunchType GetLaunchType() const
void SetClusterArn(ClusterArnT &&value)
void SetNetworkConfiguration(NetworkConfigurationT &&value)
void SetEnableECSManagedTags(bool value)
void SetDeploymentConfiguration(DeploymentConfigurationT &&value)
Service & WithTags(TagsT &&value)
void SetPendingCount(int value)
void SetHealthCheckGracePeriodSeconds(int value)
bool LaunchTypeHasBeenSet() const
Service & WithEnableECSManagedTags(bool value)
Service & WithDeploymentController(DeploymentControllerT &&value)
const Aws::Vector< ServiceEvent > & GetEvents() const
void SetAvailabilityZoneRebalancing(AvailabilityZoneRebalancing value)
AvailabilityZoneRebalancing GetAvailabilityZoneRebalancing() const
Service & AddCapacityProviderStrategy(CapacityProviderStrategyT &&value)
void SetCreatedBy(CreatedByT &&value)
int GetRunningCount() const
bool SchedulingStrategyHasBeenSet() const
void SetDeploymentController(DeploymentControllerT &&value)
void SetPlacementStrategy(PlacementStrategyT &&value)
void SetCurrentServiceDeployment(CurrentServiceDeploymentT &&value)
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
bool StatusHasBeenSet() const
void SetDesiredCount(int value)
const Aws::String & GetServiceName() const
const Aws::String & GetClusterArn() const
bool DeploymentsHasBeenSet() const
AvailabilityZoneRebalancing
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue