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/DeploymentConfiguration.h>
12#include <aws/core/utils/DateTime.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/LoadBalancer.h>
18#include <aws/ecs/model/ServiceRegistry.h>
19#include <aws/ecs/model/CapacityProviderStrategyItem.h>
20#include <aws/ecs/model/TaskSet.h>
21#include <aws/ecs/model/Deployment.h>
22#include <aws/ecs/model/ServiceEvent.h>
23#include <aws/ecs/model/PlacementConstraint.h>
24#include <aws/ecs/model/PlacementStrategy.h>
25#include <aws/ecs/model/Tag.h>
68 inline void SetServiceArn(
const char* value) { m_serviceArnHasBeenSet =
true; m_serviceArn.assign(value); }
85 inline void SetServiceName(
const char* value) { m_serviceNameHasBeenSet =
true; m_serviceName.assign(value); }
99 inline void SetClusterArn(
const char* value) { m_clusterArnHasBeenSet =
true; m_clusterArn.assign(value); }
148 inline void SetStatus(
const char* value) { m_statusHasBeenSet =
true; m_status.assign(value); }
164 inline void SetDesiredCount(
int value) { m_desiredCountHasBeenSet =
true; m_desiredCount = value; }
175 inline void SetRunningCount(
int value) { m_runningCountHasBeenSet =
true; m_runningCount = value; }
186 inline void SetPendingCount(
int value) { m_pendingCountHasBeenSet =
true; m_pendingCount = value; }
233 inline void SetPlatformVersion(
const char* value) { m_platformVersionHasBeenSet =
true; m_platformVersion.assign(value); }
250 inline void SetPlatformFamily(
const char* value) { m_platformFamilyHasBeenSet =
true; m_platformFamily.assign(value); }
268 inline void SetTaskDefinition(
const char* value) { m_taskDefinitionHasBeenSet =
true; m_taskDefinition.assign(value); }
328 inline void SetRoleArn(
const char* value) { m_roleArnHasBeenSet =
true; m_roleArn.assign(value); }
478 inline Service&
AddTags(
const Tag& value) { m_tagsHasBeenSet =
true; m_tags.push_back(value);
return *
this; }
479 inline Service&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
490 inline void SetCreatedBy(
const char* value) { m_createdByHasBeenSet =
true; m_createdBy.assign(value); }
537 bool m_serviceArnHasBeenSet =
false;
540 bool m_serviceNameHasBeenSet =
false;
543 bool m_clusterArnHasBeenSet =
false;
546 bool m_loadBalancersHasBeenSet =
false;
549 bool m_serviceRegistriesHasBeenSet =
false;
552 bool m_statusHasBeenSet =
false;
555 bool m_desiredCountHasBeenSet =
false;
558 bool m_runningCountHasBeenSet =
false;
561 bool m_pendingCountHasBeenSet =
false;
564 bool m_launchTypeHasBeenSet =
false;
567 bool m_capacityProviderStrategyHasBeenSet =
false;
570 bool m_platformVersionHasBeenSet =
false;
573 bool m_platformFamilyHasBeenSet =
false;
576 bool m_taskDefinitionHasBeenSet =
false;
579 bool m_deploymentConfigurationHasBeenSet =
false;
582 bool m_taskSetsHasBeenSet =
false;
585 bool m_deploymentsHasBeenSet =
false;
588 bool m_roleArnHasBeenSet =
false;
591 bool m_eventsHasBeenSet =
false;
594 bool m_createdAtHasBeenSet =
false;
597 bool m_placementConstraintsHasBeenSet =
false;
600 bool m_placementStrategyHasBeenSet =
false;
603 bool m_networkConfigurationHasBeenSet =
false;
605 int m_healthCheckGracePeriodSeconds;
606 bool m_healthCheckGracePeriodSecondsHasBeenSet =
false;
609 bool m_schedulingStrategyHasBeenSet =
false;
612 bool m_deploymentControllerHasBeenSet =
false;
615 bool m_tagsHasBeenSet =
false;
618 bool m_createdByHasBeenSet =
false;
620 bool m_enableECSManagedTags;
621 bool m_enableECSManagedTagsHasBeenSet =
false;
624 bool m_propagateTagsHasBeenSet =
false;
626 bool m_enableExecuteCommand;
627 bool m_enableExecuteCommandHasBeenSet =
false;
Service & WithDeployments(Aws::Vector< Deployment > &&value)
void SetRunningCount(int value)
Service & AddDeployments(Deployment &&value)
void SetServiceRegistries(Aws::Vector< ServiceRegistry > &&value)
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
void SetTaskSets(const Aws::Vector< TaskSet > &value)
const Aws::String & GetTaskDefinition() const
void SetServiceArn(Aws::String &&value)
Service & WithNetworkConfiguration(const NetworkConfiguration &value)
bool DesiredCountHasBeenSet() const
bool RoleArnHasBeenSet() const
Service & WithLoadBalancers(const Aws::Vector< LoadBalancer > &value)
void SetTaskDefinition(const Aws::String &value)
const DeploymentConfiguration & GetDeploymentConfiguration() const
void SetCreatedBy(const char *value)
void SetServiceName(const char *value)
Service & WithSchedulingStrategy(const SchedulingStrategy &value)
bool DeploymentConfigurationHasBeenSet() const
Service & WithTaskDefinition(Aws::String &&value)
Service & WithPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
bool EventsHasBeenSet() const
bool DeploymentControllerHasBeenSet() const
void SetPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
Service & WithNetworkConfiguration(NetworkConfiguration &&value)
Service & WithClusterArn(const char *value)
Service & WithServiceRegistries(const Aws::Vector< ServiceRegistry > &value)
Service & WithTaskSets(const Aws::Vector< TaskSet > &value)
Service & WithServiceArn(const Aws::String &value)
Service & WithEvents(Aws::Vector< ServiceEvent > &&value)
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
void SetServiceArn(const Aws::String &value)
const Aws::String & GetRoleArn() const
void SetDeploymentController(DeploymentController &&value)
bool HealthCheckGracePeriodSecondsHasBeenSet() const
bool TaskSetsHasBeenSet() const
void SetPlatformFamily(const Aws::String &value)
Service & WithTaskSets(Aws::Vector< TaskSet > &&value)
void SetDeploymentController(const DeploymentController &value)
void SetEvents(const Aws::Vector< ServiceEvent > &value)
void SetPlatformFamily(Aws::String &&value)
bool NetworkConfigurationHasBeenSet() const
Service & AddCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
Service & WithPlatformVersion(const char *value)
void SetServiceRegistries(const Aws::Vector< ServiceRegistry > &value)
void SetCreatedBy(const Aws::String &value)
bool PlacementStrategyHasBeenSet() const
bool RunningCountHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
Service & WithDeploymentController(const DeploymentController &value)
Service & WithEvents(const Aws::Vector< ServiceEvent > &value)
Service & WithTaskDefinition(const Aws::String &value)
void SetPlatformVersion(const Aws::String &value)
Service & AddCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
Service & WithPendingCount(int value)
void SetPropagateTags(const PropagateTags &value)
void SetPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
Service & AddTags(const Tag &value)
Service & WithPlatformFamily(Aws::String &&value)
void SetTaskSets(Aws::Vector< TaskSet > &&value)
const Aws::String & GetStatus() const
void SetNetworkConfiguration(NetworkConfiguration &&value)
bool PlatformFamilyHasBeenSet() const
Service & WithPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
int GetDesiredCount() const
Service & AddTags(Tag &&value)
Service & WithDesiredCount(int value)
Service & WithTags(Aws::Vector< Tag > &&value)
const NetworkConfiguration & GetNetworkConfiguration() const
void SetClusterArn(const char *value)
Service & WithSchedulingStrategy(SchedulingStrategy &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetDeploymentConfiguration(DeploymentConfiguration &&value)
Service & WithTags(const Aws::Vector< Tag > &value)
Service & AddTaskSets(const TaskSet &value)
Service & WithPropagateTags(PropagateTags &&value)
bool CreatedByHasBeenSet() const
void SetLoadBalancers(const Aws::Vector< LoadBalancer > &value)
Service & WithDeploymentConfiguration(DeploymentConfiguration &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
Service & WithCreatedBy(Aws::String &&value)
void SetDeployments(Aws::Vector< Deployment > &&value)
void SetStatus(const Aws::String &value)
void SetStatus(Aws::String &&value)
Service & WithEnableExecuteCommand(bool value)
void SetEnableExecuteCommand(bool value)
Service & AddPlacementConstraints(PlacementConstraint &&value)
AWS_ECS_API Service(Aws::Utils::Json::JsonView jsonValue)
void SetCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
bool LoadBalancersHasBeenSet() const
Service & AddLoadBalancers(const LoadBalancer &value)
Service & WithPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
Service & WithClusterArn(const Aws::String &value)
Service & AddPlacementConstraints(const PlacementConstraint &value)
int GetPendingCount() const
Service & AddLoadBalancers(LoadBalancer &&value)
bool ServiceArnHasBeenSet() const
void SetEvents(Aws::Vector< ServiceEvent > &&value)
bool ServiceNameHasBeenSet() const
Service & WithPropagateTags(const PropagateTags &value)
bool PropagateTagsHasBeenSet() const
Service & WithCreatedBy(const char *value)
int GetHealthCheckGracePeriodSeconds() const
Service & WithStatus(Aws::String &&value)
bool PlatformVersionHasBeenSet() const
void SetPropagateTags(PropagateTags &&value)
void SetPlatformVersion(const char *value)
bool ClusterArnHasBeenSet() const
const Aws::Vector< TaskSet > & GetTaskSets() const
Service & AddPlacementStrategy(const PlacementStrategy &value)
Service & WithDeploymentController(DeploymentController &&value)
Service & WithStatus(const char *value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
Service & WithDeploymentConfiguration(const DeploymentConfiguration &value)
Service & WithRunningCount(int value)
void SetRoleArn(const char *value)
bool PlacementConstraintsHasBeenSet() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const PropagateTags & GetPropagateTags() const
const SchedulingStrategy & GetSchedulingStrategy() const
Service & WithClusterArn(Aws::String &&value)
const Aws::String & GetPlatformFamily() const
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
void SetClusterArn(const Aws::String &value)
Service & AddEvents(ServiceEvent &&value)
Service & WithCreatedBy(const Aws::String &value)
Service & AddPlacementStrategy(PlacementStrategy &&value)
Service & WithServiceArn(Aws::String &&value)
Service & WithCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
Service & WithPlatformVersion(const Aws::String &value)
void SetServiceArn(const char *value)
bool GetEnableECSManagedTags() const
void SetRoleArn(const Aws::String &value)
const Aws::String & GetCreatedBy() const
Service & WithServiceArn(const char *value)
Service & AddDeployments(const Deployment &value)
bool TaskDefinitionHasBeenSet() const
void SetServiceName(const Aws::String &value)
Service & WithServiceName(const Aws::String &value)
AWS_ECS_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPlatformVersion() const
void SetPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
void SetPlatformFamily(const char *value)
Service & AddServiceRegistries(ServiceRegistry &&value)
Service & WithStatus(const Aws::String &value)
void SetCreatedBy(Aws::String &&value)
bool PendingCountHasBeenSet() const
bool EnableECSManagedTagsHasBeenSet() const
Service & WithPlatformFamily(const char *value)
bool GetEnableExecuteCommand() const
bool ServiceRegistriesHasBeenSet() const
void SetStatus(const char *value)
Service & AddEvents(const ServiceEvent &value)
Service & WithCreatedAt(const Aws::Utils::DateTime &value)
bool EnableExecuteCommandHasBeenSet() const
bool TagsHasBeenSet() const
Service & AddTaskSets(TaskSet &&value)
void SetTaskDefinition(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
Service & WithHealthCheckGracePeriodSeconds(int value)
const Aws::Vector< Deployment > & GetDeployments() const
const LaunchType & GetLaunchType() const
void SetTags(const Aws::Vector< Tag > &value)
void SetClusterArn(Aws::String &&value)
void SetRoleArn(Aws::String &&value)
bool CapacityProviderStrategyHasBeenSet() const
Service & WithDeployments(const Aws::Vector< Deployment > &value)
Service & WithServiceName(Aws::String &&value)
void SetPlatformVersion(Aws::String &&value)
Service & WithCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
Service & AddServiceRegistries(const ServiceRegistry &value)
void SetDeploymentConfiguration(const DeploymentConfiguration &value)
Service & WithLoadBalancers(Aws::Vector< LoadBalancer > &&value)
void SetPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
bool CreatedAtHasBeenSet() const
void SetCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
const Aws::String & GetServiceArn() const
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
void SetServiceName(Aws::String &&value)
Service & WithTaskDefinition(const char *value)
Service & WithPlatformFamily(const Aws::String &value)
void SetNetworkConfiguration(const NetworkConfiguration &value)
void SetLaunchType(LaunchType &&value)
Service & WithRoleArn(const Aws::String &value)
const DeploymentController & GetDeploymentController() const
Service & WithRoleArn(Aws::String &&value)
Service & WithPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
Service & WithPlatformVersion(Aws::String &&value)
void SetEnableECSManagedTags(bool value)
Service & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetDeployments(const Aws::Vector< Deployment > &value)
void SetPendingCount(int value)
void SetHealthCheckGracePeriodSeconds(int value)
bool LaunchTypeHasBeenSet() const
Service & WithEnableECSManagedTags(bool value)
const Aws::Vector< ServiceEvent > & GetEvents() const
void SetTaskDefinition(const char *value)
Service & WithLaunchType(const LaunchType &value)
Service & WithServiceName(const char *value)
void SetLaunchType(const LaunchType &value)
int GetRunningCount() const
bool SchedulingStrategyHasBeenSet() const
void SetSchedulingStrategy(const SchedulingStrategy &value)
void SetLoadBalancers(Aws::Vector< LoadBalancer > &&value)
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
bool StatusHasBeenSet() const
void SetDesiredCount(int value)
void SetSchedulingStrategy(SchedulingStrategy &&value)
const Aws::String & GetServiceName() const
const Aws::String & GetClusterArn() const
Service & WithLaunchType(LaunchType &&value)
bool DeploymentsHasBeenSet() const
Service & WithServiceRegistries(Aws::Vector< ServiceRegistry > &&value)
Service & WithRoleArn(const char *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