AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Service.h
1
6#pragma once
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>
26#include <utility>
27
28namespace Aws
29{
30namespace Utils
31{
32namespace Json
33{
34 class JsonValue;
35 class JsonView;
36} // namespace Json
37} // namespace Utils
38namespace ECS
39{
40namespace Model
41{
42
48 class Service
49 {
50 public:
51 AWS_ECS_API Service();
52 AWS_ECS_API Service(Aws::Utils::Json::JsonView jsonValue);
55
56
58
64 inline const Aws::String& GetServiceArn() const{ return m_serviceArn; }
65 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
66 inline void SetServiceArn(const Aws::String& value) { m_serviceArnHasBeenSet = true; m_serviceArn = value; }
67 inline void SetServiceArn(Aws::String&& value) { m_serviceArnHasBeenSet = true; m_serviceArn = std::move(value); }
68 inline void SetServiceArn(const char* value) { m_serviceArnHasBeenSet = true; m_serviceArn.assign(value); }
69 inline Service& WithServiceArn(const Aws::String& value) { SetServiceArn(value); return *this;}
70 inline Service& WithServiceArn(Aws::String&& value) { SetServiceArn(std::move(value)); return *this;}
71 inline Service& WithServiceArn(const char* value) { SetServiceArn(value); return *this;}
73
75
81 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
82 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
83 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
84 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
85 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
86 inline Service& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
87 inline Service& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
88 inline Service& WithServiceName(const char* value) { SetServiceName(value); return *this;}
90
92
95 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
96 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
97 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
98 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
99 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
100 inline Service& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
101 inline Service& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
102 inline Service& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
104
106
112 inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const{ return m_loadBalancers; }
113 inline bool LoadBalancersHasBeenSet() const { return m_loadBalancersHasBeenSet; }
114 inline void SetLoadBalancers(const Aws::Vector<LoadBalancer>& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = value; }
115 inline void SetLoadBalancers(Aws::Vector<LoadBalancer>&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = std::move(value); }
116 inline Service& WithLoadBalancers(const Aws::Vector<LoadBalancer>& value) { SetLoadBalancers(value); return *this;}
117 inline Service& WithLoadBalancers(Aws::Vector<LoadBalancer>&& value) { SetLoadBalancers(std::move(value)); return *this;}
118 inline Service& AddLoadBalancers(const LoadBalancer& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.push_back(value); return *this; }
119 inline Service& AddLoadBalancers(LoadBalancer&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.push_back(std::move(value)); return *this; }
121
123
129 inline const Aws::Vector<ServiceRegistry>& GetServiceRegistries() const{ return m_serviceRegistries; }
130 inline bool ServiceRegistriesHasBeenSet() const { return m_serviceRegistriesHasBeenSet; }
131 inline void SetServiceRegistries(const Aws::Vector<ServiceRegistry>& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries = value; }
132 inline void SetServiceRegistries(Aws::Vector<ServiceRegistry>&& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries = std::move(value); }
134 inline Service& WithServiceRegistries(Aws::Vector<ServiceRegistry>&& value) { SetServiceRegistries(std::move(value)); return *this;}
135 inline Service& AddServiceRegistries(const ServiceRegistry& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries.push_back(value); return *this; }
136 inline Service& AddServiceRegistries(ServiceRegistry&& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries.push_back(std::move(value)); return *this; }
138
140
144 inline const Aws::String& GetStatus() const{ return m_status; }
145 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
146 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
147 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
148 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
149 inline Service& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
150 inline Service& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
151 inline Service& WithStatus(const char* value) { SetStatus(value); return *this;}
153
155
162 inline int GetDesiredCount() const{ return m_desiredCount; }
163 inline bool DesiredCountHasBeenSet() const { return m_desiredCountHasBeenSet; }
164 inline void SetDesiredCount(int value) { m_desiredCountHasBeenSet = true; m_desiredCount = value; }
165 inline Service& WithDesiredCount(int value) { SetDesiredCount(value); return *this;}
167
169
173 inline int GetRunningCount() const{ return m_runningCount; }
174 inline bool RunningCountHasBeenSet() const { return m_runningCountHasBeenSet; }
175 inline void SetRunningCount(int value) { m_runningCountHasBeenSet = true; m_runningCount = value; }
176 inline Service& WithRunningCount(int value) { SetRunningCount(value); return *this;}
178
180
184 inline int GetPendingCount() const{ return m_pendingCount; }
185 inline bool PendingCountHasBeenSet() const { return m_pendingCountHasBeenSet; }
186 inline void SetPendingCount(int value) { m_pendingCountHasBeenSet = true; m_pendingCount = value; }
187 inline Service& WithPendingCount(int value) { SetPendingCount(value); return *this;}
189
191
196 inline const LaunchType& GetLaunchType() const{ return m_launchType; }
197 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
198 inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
199 inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
200 inline Service& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
201 inline Service& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
203
205
210 inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const{ return m_capacityProviderStrategy; }
211 inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
212 inline void SetCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = value; }
213 inline void SetCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = std::move(value); }
216 inline Service& AddCapacityProviderStrategy(const CapacityProviderStrategyItem& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(value); return *this; }
217 inline Service& AddCapacityProviderStrategy(CapacityProviderStrategyItem&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(std::move(value)); return *this; }
219
221
229 inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
230 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
231 inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
232 inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
233 inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
234 inline Service& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
235 inline Service& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
236 inline Service& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
238
240
246 inline const Aws::String& GetPlatformFamily() const{ return m_platformFamily; }
247 inline bool PlatformFamilyHasBeenSet() const { return m_platformFamilyHasBeenSet; }
248 inline void SetPlatformFamily(const Aws::String& value) { m_platformFamilyHasBeenSet = true; m_platformFamily = value; }
249 inline void SetPlatformFamily(Aws::String&& value) { m_platformFamilyHasBeenSet = true; m_platformFamily = std::move(value); }
250 inline void SetPlatformFamily(const char* value) { m_platformFamilyHasBeenSet = true; m_platformFamily.assign(value); }
251 inline Service& WithPlatformFamily(const Aws::String& value) { SetPlatformFamily(value); return *this;}
252 inline Service& WithPlatformFamily(Aws::String&& value) { SetPlatformFamily(std::move(value)); return *this;}
253 inline Service& WithPlatformFamily(const char* value) { SetPlatformFamily(value); return *this;}
255
257
264 inline const Aws::String& GetTaskDefinition() const{ return m_taskDefinition; }
265 inline bool TaskDefinitionHasBeenSet() const { return m_taskDefinitionHasBeenSet; }
266 inline void SetTaskDefinition(const Aws::String& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = value; }
267 inline void SetTaskDefinition(Aws::String&& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = std::move(value); }
268 inline void SetTaskDefinition(const char* value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition.assign(value); }
269 inline Service& WithTaskDefinition(const Aws::String& value) { SetTaskDefinition(value); return *this;}
270 inline Service& WithTaskDefinition(Aws::String&& value) { SetTaskDefinition(std::move(value)); return *this;}
271 inline Service& WithTaskDefinition(const char* value) { SetTaskDefinition(value); return *this;}
273
275
279 inline const DeploymentConfiguration& GetDeploymentConfiguration() const{ return m_deploymentConfiguration; }
280 inline bool DeploymentConfigurationHasBeenSet() const { return m_deploymentConfigurationHasBeenSet; }
281 inline void SetDeploymentConfiguration(const DeploymentConfiguration& value) { m_deploymentConfigurationHasBeenSet = true; m_deploymentConfiguration = value; }
282 inline void SetDeploymentConfiguration(DeploymentConfiguration&& value) { m_deploymentConfigurationHasBeenSet = true; m_deploymentConfiguration = std::move(value); }
286
288
294 inline const Aws::Vector<TaskSet>& GetTaskSets() const{ return m_taskSets; }
295 inline bool TaskSetsHasBeenSet() const { return m_taskSetsHasBeenSet; }
296 inline void SetTaskSets(const Aws::Vector<TaskSet>& value) { m_taskSetsHasBeenSet = true; m_taskSets = value; }
297 inline void SetTaskSets(Aws::Vector<TaskSet>&& value) { m_taskSetsHasBeenSet = true; m_taskSets = std::move(value); }
298 inline Service& WithTaskSets(const Aws::Vector<TaskSet>& value) { SetTaskSets(value); return *this;}
299 inline Service& WithTaskSets(Aws::Vector<TaskSet>&& value) { SetTaskSets(std::move(value)); return *this;}
300 inline Service& AddTaskSets(const TaskSet& value) { m_taskSetsHasBeenSet = true; m_taskSets.push_back(value); return *this; }
301 inline Service& AddTaskSets(TaskSet&& value) { m_taskSetsHasBeenSet = true; m_taskSets.push_back(std::move(value)); return *this; }
303
305
308 inline const Aws::Vector<Deployment>& GetDeployments() const{ return m_deployments; }
309 inline bool DeploymentsHasBeenSet() const { return m_deploymentsHasBeenSet; }
310 inline void SetDeployments(const Aws::Vector<Deployment>& value) { m_deploymentsHasBeenSet = true; m_deployments = value; }
311 inline void SetDeployments(Aws::Vector<Deployment>&& value) { m_deploymentsHasBeenSet = true; m_deployments = std::move(value); }
312 inline Service& WithDeployments(const Aws::Vector<Deployment>& value) { SetDeployments(value); return *this;}
313 inline Service& WithDeployments(Aws::Vector<Deployment>&& value) { SetDeployments(std::move(value)); return *this;}
314 inline Service& AddDeployments(const Deployment& value) { m_deploymentsHasBeenSet = true; m_deployments.push_back(value); return *this; }
315 inline Service& AddDeployments(Deployment&& value) { m_deploymentsHasBeenSet = true; m_deployments.push_back(std::move(value)); return *this; }
317
319
324 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
325 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
326 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
327 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
328 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
329 inline Service& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
330 inline Service& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
331 inline Service& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
333
335
339 inline const Aws::Vector<ServiceEvent>& GetEvents() const{ return m_events; }
340 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
341 inline void SetEvents(const Aws::Vector<ServiceEvent>& value) { m_eventsHasBeenSet = true; m_events = value; }
342 inline void SetEvents(Aws::Vector<ServiceEvent>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
343 inline Service& WithEvents(const Aws::Vector<ServiceEvent>& value) { SetEvents(value); return *this;}
344 inline Service& WithEvents(Aws::Vector<ServiceEvent>&& value) { SetEvents(std::move(value)); return *this;}
345 inline Service& AddEvents(const ServiceEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
346 inline Service& AddEvents(ServiceEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
348
350
353 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
354 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
355 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
356 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
357 inline Service& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
358 inline Service& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
360
362
365 inline const Aws::Vector<PlacementConstraint>& GetPlacementConstraints() const{ return m_placementConstraints; }
366 inline bool PlacementConstraintsHasBeenSet() const { return m_placementConstraintsHasBeenSet; }
367 inline void SetPlacementConstraints(const Aws::Vector<PlacementConstraint>& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = value; }
368 inline void SetPlacementConstraints(Aws::Vector<PlacementConstraint>&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = std::move(value); }
371 inline Service& AddPlacementConstraints(const PlacementConstraint& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(value); return *this; }
372 inline Service& AddPlacementConstraints(PlacementConstraint&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(std::move(value)); return *this; }
374
376
380 inline const Aws::Vector<PlacementStrategy>& GetPlacementStrategy() const{ return m_placementStrategy; }
381 inline bool PlacementStrategyHasBeenSet() const { return m_placementStrategyHasBeenSet; }
382 inline void SetPlacementStrategy(const Aws::Vector<PlacementStrategy>& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = value; }
383 inline void SetPlacementStrategy(Aws::Vector<PlacementStrategy>&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = std::move(value); }
385 inline Service& WithPlacementStrategy(Aws::Vector<PlacementStrategy>&& value) { SetPlacementStrategy(std::move(value)); return *this;}
386 inline Service& AddPlacementStrategy(const PlacementStrategy& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.push_back(value); return *this; }
387 inline Service& AddPlacementStrategy(PlacementStrategy&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.push_back(std::move(value)); return *this; }
389
391
396 inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
397 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
398 inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
399 inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
401 inline Service& WithNetworkConfiguration(NetworkConfiguration&& value) { SetNetworkConfiguration(std::move(value)); return *this;}
403
405
410 inline int GetHealthCheckGracePeriodSeconds() const{ return m_healthCheckGracePeriodSeconds; }
411 inline bool HealthCheckGracePeriodSecondsHasBeenSet() const { return m_healthCheckGracePeriodSecondsHasBeenSet; }
412 inline void SetHealthCheckGracePeriodSeconds(int value) { m_healthCheckGracePeriodSecondsHasBeenSet = true; m_healthCheckGracePeriodSeconds = value; }
415
417
432 inline const SchedulingStrategy& GetSchedulingStrategy() const{ return m_schedulingStrategy; }
433 inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; }
434 inline void SetSchedulingStrategy(const SchedulingStrategy& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = value; }
435 inline void SetSchedulingStrategy(SchedulingStrategy&& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = std::move(value); }
436 inline Service& WithSchedulingStrategy(const SchedulingStrategy& value) { SetSchedulingStrategy(value); return *this;}
437 inline Service& WithSchedulingStrategy(SchedulingStrategy&& value) { SetSchedulingStrategy(std::move(value)); return *this;}
439
441
444 inline const DeploymentController& GetDeploymentController() const{ return m_deploymentController; }
445 inline bool DeploymentControllerHasBeenSet() const { return m_deploymentControllerHasBeenSet; }
446 inline void SetDeploymentController(const DeploymentController& value) { m_deploymentControllerHasBeenSet = true; m_deploymentController = value; }
447 inline void SetDeploymentController(DeploymentController&& value) { m_deploymentControllerHasBeenSet = true; m_deploymentController = std::move(value); }
449 inline Service& WithDeploymentController(DeploymentController&& value) { SetDeploymentController(std::move(value)); return *this;}
451
453
472 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
473 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
474 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
475 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
476 inline Service& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
477 inline Service& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
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; }
481
483
486 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
487 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
488 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
489 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
490 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
491 inline Service& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
492 inline Service& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
493 inline Service& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
495
497
504 inline bool GetEnableECSManagedTags() const{ return m_enableECSManagedTags; }
505 inline bool EnableECSManagedTagsHasBeenSet() const { return m_enableECSManagedTagsHasBeenSet; }
506 inline void SetEnableECSManagedTags(bool value) { m_enableECSManagedTagsHasBeenSet = true; m_enableECSManagedTags = value; }
507 inline Service& WithEnableECSManagedTags(bool value) { SetEnableECSManagedTags(value); return *this;}
509
511
515 inline const PropagateTags& GetPropagateTags() const{ return m_propagateTags; }
516 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
517 inline void SetPropagateTags(const PropagateTags& value) { m_propagateTagsHasBeenSet = true; m_propagateTags = value; }
518 inline void SetPropagateTags(PropagateTags&& value) { m_propagateTagsHasBeenSet = true; m_propagateTags = std::move(value); }
519 inline Service& WithPropagateTags(const PropagateTags& value) { SetPropagateTags(value); return *this;}
520 inline Service& WithPropagateTags(PropagateTags&& value) { SetPropagateTags(std::move(value)); return *this;}
522
524
529 inline bool GetEnableExecuteCommand() const{ return m_enableExecuteCommand; }
530 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
531 inline void SetEnableExecuteCommand(bool value) { m_enableExecuteCommandHasBeenSet = true; m_enableExecuteCommand = value; }
532 inline Service& WithEnableExecuteCommand(bool value) { SetEnableExecuteCommand(value); return *this;}
534 private:
535
536 Aws::String m_serviceArn;
537 bool m_serviceArnHasBeenSet = false;
538
539 Aws::String m_serviceName;
540 bool m_serviceNameHasBeenSet = false;
541
542 Aws::String m_clusterArn;
543 bool m_clusterArnHasBeenSet = false;
544
545 Aws::Vector<LoadBalancer> m_loadBalancers;
546 bool m_loadBalancersHasBeenSet = false;
547
548 Aws::Vector<ServiceRegistry> m_serviceRegistries;
549 bool m_serviceRegistriesHasBeenSet = false;
550
551 Aws::String m_status;
552 bool m_statusHasBeenSet = false;
553
554 int m_desiredCount;
555 bool m_desiredCountHasBeenSet = false;
556
557 int m_runningCount;
558 bool m_runningCountHasBeenSet = false;
559
560 int m_pendingCount;
561 bool m_pendingCountHasBeenSet = false;
562
563 LaunchType m_launchType;
564 bool m_launchTypeHasBeenSet = false;
565
566 Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
567 bool m_capacityProviderStrategyHasBeenSet = false;
568
569 Aws::String m_platformVersion;
570 bool m_platformVersionHasBeenSet = false;
571
572 Aws::String m_platformFamily;
573 bool m_platformFamilyHasBeenSet = false;
574
575 Aws::String m_taskDefinition;
576 bool m_taskDefinitionHasBeenSet = false;
577
578 DeploymentConfiguration m_deploymentConfiguration;
579 bool m_deploymentConfigurationHasBeenSet = false;
580
581 Aws::Vector<TaskSet> m_taskSets;
582 bool m_taskSetsHasBeenSet = false;
583
584 Aws::Vector<Deployment> m_deployments;
585 bool m_deploymentsHasBeenSet = false;
586
587 Aws::String m_roleArn;
588 bool m_roleArnHasBeenSet = false;
589
591 bool m_eventsHasBeenSet = false;
592
593 Aws::Utils::DateTime m_createdAt;
594 bool m_createdAtHasBeenSet = false;
595
596 Aws::Vector<PlacementConstraint> m_placementConstraints;
597 bool m_placementConstraintsHasBeenSet = false;
598
599 Aws::Vector<PlacementStrategy> m_placementStrategy;
600 bool m_placementStrategyHasBeenSet = false;
601
602 NetworkConfiguration m_networkConfiguration;
603 bool m_networkConfigurationHasBeenSet = false;
604
605 int m_healthCheckGracePeriodSeconds;
606 bool m_healthCheckGracePeriodSecondsHasBeenSet = false;
607
608 SchedulingStrategy m_schedulingStrategy;
609 bool m_schedulingStrategyHasBeenSet = false;
610
611 DeploymentController m_deploymentController;
612 bool m_deploymentControllerHasBeenSet = false;
613
614 Aws::Vector<Tag> m_tags;
615 bool m_tagsHasBeenSet = false;
616
617 Aws::String m_createdBy;
618 bool m_createdByHasBeenSet = false;
619
620 bool m_enableECSManagedTags;
621 bool m_enableECSManagedTagsHasBeenSet = false;
622
623 PropagateTags m_propagateTags;
624 bool m_propagateTagsHasBeenSet = false;
625
626 bool m_enableExecuteCommand;
627 bool m_enableExecuteCommandHasBeenSet = false;
628 };
629
630} // namespace Model
631} // namespace ECS
632} // namespace Aws
Service & WithDeployments(Aws::Vector< Deployment > &&value)
Definition Service.h:313
void SetRunningCount(int value)
Definition Service.h:175
Service & AddDeployments(Deployment &&value)
Definition Service.h:315
void SetServiceRegistries(Aws::Vector< ServiceRegistry > &&value)
Definition Service.h:132
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
Definition Service.h:129
void SetTaskSets(const Aws::Vector< TaskSet > &value)
Definition Service.h:296
const Aws::String & GetTaskDefinition() const
Definition Service.h:264
void SetServiceArn(Aws::String &&value)
Definition Service.h:67
Service & WithNetworkConfiguration(const NetworkConfiguration &value)
Definition Service.h:400
bool DesiredCountHasBeenSet() const
Definition Service.h:163
bool RoleArnHasBeenSet() const
Definition Service.h:325
Service & WithLoadBalancers(const Aws::Vector< LoadBalancer > &value)
Definition Service.h:116
void SetTaskDefinition(const Aws::String &value)
Definition Service.h:266
const DeploymentConfiguration & GetDeploymentConfiguration() const
Definition Service.h:279
void SetCreatedBy(const char *value)
Definition Service.h:490
void SetServiceName(const char *value)
Definition Service.h:85
Service & WithSchedulingStrategy(const SchedulingStrategy &value)
Definition Service.h:436
bool DeploymentConfigurationHasBeenSet() const
Definition Service.h:280
Service & WithTaskDefinition(Aws::String &&value)
Definition Service.h:270
Service & WithPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
Definition Service.h:385
bool EventsHasBeenSet() const
Definition Service.h:340
bool DeploymentControllerHasBeenSet() const
Definition Service.h:445
void SetPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
Definition Service.h:367
Service & WithNetworkConfiguration(NetworkConfiguration &&value)
Definition Service.h:401
Service & WithClusterArn(const char *value)
Definition Service.h:102
Service & WithServiceRegistries(const Aws::Vector< ServiceRegistry > &value)
Definition Service.h:133
Service & WithTaskSets(const Aws::Vector< TaskSet > &value)
Definition Service.h:298
Service & WithServiceArn(const Aws::String &value)
Definition Service.h:69
Service & WithEvents(Aws::Vector< ServiceEvent > &&value)
Definition Service.h:344
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
Definition Service.h:112
void SetServiceArn(const Aws::String &value)
Definition Service.h:66
const Aws::String & GetRoleArn() const
Definition Service.h:324
void SetDeploymentController(DeploymentController &&value)
Definition Service.h:447
bool HealthCheckGracePeriodSecondsHasBeenSet() const
Definition Service.h:411
bool TaskSetsHasBeenSet() const
Definition Service.h:295
void SetPlatformFamily(const Aws::String &value)
Definition Service.h:248
Service & WithTaskSets(Aws::Vector< TaskSet > &&value)
Definition Service.h:299
void SetDeploymentController(const DeploymentController &value)
Definition Service.h:446
void SetEvents(const Aws::Vector< ServiceEvent > &value)
Definition Service.h:341
void SetPlatformFamily(Aws::String &&value)
Definition Service.h:249
bool NetworkConfigurationHasBeenSet() const
Definition Service.h:397
Service & AddCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
Definition Service.h:217
Service & WithPlatformVersion(const char *value)
Definition Service.h:236
void SetServiceRegistries(const Aws::Vector< ServiceRegistry > &value)
Definition Service.h:131
void SetCreatedBy(const Aws::String &value)
Definition Service.h:488
bool PlacementStrategyHasBeenSet() const
Definition Service.h:381
bool RunningCountHasBeenSet() const
Definition Service.h:174
const Aws::Vector< Tag > & GetTags() const
Definition Service.h:472
Service & WithDeploymentController(const DeploymentController &value)
Definition Service.h:448
Service & WithEvents(const Aws::Vector< ServiceEvent > &value)
Definition Service.h:343
Service & WithTaskDefinition(const Aws::String &value)
Definition Service.h:269
void SetPlatformVersion(const Aws::String &value)
Definition Service.h:231
Service & AddCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
Definition Service.h:216
Service & WithPendingCount(int value)
Definition Service.h:187
void SetPropagateTags(const PropagateTags &value)
Definition Service.h:517
void SetPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
Definition Service.h:382
Service & AddTags(const Tag &value)
Definition Service.h:478
Service & WithPlatformFamily(Aws::String &&value)
Definition Service.h:252
void SetTaskSets(Aws::Vector< TaskSet > &&value)
Definition Service.h:297
const Aws::String & GetStatus() const
Definition Service.h:144
void SetNetworkConfiguration(NetworkConfiguration &&value)
Definition Service.h:399
bool PlatformFamilyHasBeenSet() const
Definition Service.h:247
Service & WithPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
Definition Service.h:369
int GetDesiredCount() const
Definition Service.h:162
Service & AddTags(Tag &&value)
Definition Service.h:479
Service & WithDesiredCount(int value)
Definition Service.h:165
Service & WithTags(Aws::Vector< Tag > &&value)
Definition Service.h:477
const NetworkConfiguration & GetNetworkConfiguration() const
Definition Service.h:396
void SetClusterArn(const char *value)
Definition Service.h:99
Service & WithSchedulingStrategy(SchedulingStrategy &&value)
Definition Service.h:437
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Service.h:356
void SetDeploymentConfiguration(DeploymentConfiguration &&value)
Definition Service.h:282
Service & WithTags(const Aws::Vector< Tag > &value)
Definition Service.h:476
Service & AddTaskSets(const TaskSet &value)
Definition Service.h:300
Service & WithPropagateTags(PropagateTags &&value)
Definition Service.h:520
bool CreatedByHasBeenSet() const
Definition Service.h:487
void SetLoadBalancers(const Aws::Vector< LoadBalancer > &value)
Definition Service.h:114
Service & WithDeploymentConfiguration(DeploymentConfiguration &&value)
Definition Service.h:284
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Service.h:353
Service & WithCreatedBy(Aws::String &&value)
Definition Service.h:492
void SetDeployments(Aws::Vector< Deployment > &&value)
Definition Service.h:311
void SetStatus(const Aws::String &value)
Definition Service.h:146
void SetStatus(Aws::String &&value)
Definition Service.h:147
Service & WithEnableExecuteCommand(bool value)
Definition Service.h:532
void SetEnableExecuteCommand(bool value)
Definition Service.h:531
Service & AddPlacementConstraints(PlacementConstraint &&value)
Definition Service.h:372
AWS_ECS_API Service(Aws::Utils::Json::JsonView jsonValue)
void SetCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
Definition Service.h:212
bool LoadBalancersHasBeenSet() const
Definition Service.h:113
Service & AddLoadBalancers(const LoadBalancer &value)
Definition Service.h:118
Service & WithPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
Definition Service.h:370
Service & WithClusterArn(const Aws::String &value)
Definition Service.h:100
Service & AddPlacementConstraints(const PlacementConstraint &value)
Definition Service.h:371
int GetPendingCount() const
Definition Service.h:184
Service & AddLoadBalancers(LoadBalancer &&value)
Definition Service.h:119
bool ServiceArnHasBeenSet() const
Definition Service.h:65
void SetEvents(Aws::Vector< ServiceEvent > &&value)
Definition Service.h:342
bool ServiceNameHasBeenSet() const
Definition Service.h:82
Service & WithPropagateTags(const PropagateTags &value)
Definition Service.h:519
bool PropagateTagsHasBeenSet() const
Definition Service.h:516
Service & WithCreatedBy(const char *value)
Definition Service.h:493
int GetHealthCheckGracePeriodSeconds() const
Definition Service.h:410
Service & WithStatus(Aws::String &&value)
Definition Service.h:150
bool PlatformVersionHasBeenSet() const
Definition Service.h:230
void SetPropagateTags(PropagateTags &&value)
Definition Service.h:518
void SetPlatformVersion(const char *value)
Definition Service.h:233
bool ClusterArnHasBeenSet() const
Definition Service.h:96
const Aws::Vector< TaskSet > & GetTaskSets() const
Definition Service.h:294
Service & AddPlacementStrategy(const PlacementStrategy &value)
Definition Service.h:386
Service & WithDeploymentController(DeploymentController &&value)
Definition Service.h:449
Service & WithStatus(const char *value)
Definition Service.h:151
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Service.h:355
Service & WithDeploymentConfiguration(const DeploymentConfiguration &value)
Definition Service.h:283
Service & WithRunningCount(int value)
Definition Service.h:176
void SetRoleArn(const char *value)
Definition Service.h:328
bool PlacementConstraintsHasBeenSet() const
Definition Service.h:366
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const PropagateTags & GetPropagateTags() const
Definition Service.h:515
const SchedulingStrategy & GetSchedulingStrategy() const
Definition Service.h:432
Service & WithClusterArn(Aws::String &&value)
Definition Service.h:101
const Aws::String & GetPlatformFamily() const
Definition Service.h:246
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
Definition Service.h:365
void SetClusterArn(const Aws::String &value)
Definition Service.h:97
Service & AddEvents(ServiceEvent &&value)
Definition Service.h:346
Service & WithCreatedBy(const Aws::String &value)
Definition Service.h:491
Service & AddPlacementStrategy(PlacementStrategy &&value)
Definition Service.h:387
Service & WithServiceArn(Aws::String &&value)
Definition Service.h:70
Service & WithCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
Definition Service.h:214
Service & WithPlatformVersion(const Aws::String &value)
Definition Service.h:234
void SetServiceArn(const char *value)
Definition Service.h:68
bool GetEnableECSManagedTags() const
Definition Service.h:504
void SetRoleArn(const Aws::String &value)
Definition Service.h:326
const Aws::String & GetCreatedBy() const
Definition Service.h:486
Service & WithServiceArn(const char *value)
Definition Service.h:71
Service & AddDeployments(const Deployment &value)
Definition Service.h:314
bool TaskDefinitionHasBeenSet() const
Definition Service.h:265
void SetServiceName(const Aws::String &value)
Definition Service.h:83
Service & WithServiceName(const Aws::String &value)
Definition Service.h:86
AWS_ECS_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPlatformVersion() const
Definition Service.h:229
void SetPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
Definition Service.h:368
void SetPlatformFamily(const char *value)
Definition Service.h:250
Service & AddServiceRegistries(ServiceRegistry &&value)
Definition Service.h:136
Service & WithStatus(const Aws::String &value)
Definition Service.h:149
void SetCreatedBy(Aws::String &&value)
Definition Service.h:489
bool PendingCountHasBeenSet() const
Definition Service.h:185
bool EnableECSManagedTagsHasBeenSet() const
Definition Service.h:505
Service & WithPlatformFamily(const char *value)
Definition Service.h:253
bool GetEnableExecuteCommand() const
Definition Service.h:529
bool ServiceRegistriesHasBeenSet() const
Definition Service.h:130
void SetStatus(const char *value)
Definition Service.h:148
Service & AddEvents(const ServiceEvent &value)
Definition Service.h:345
Service & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Service.h:357
bool EnableExecuteCommandHasBeenSet() const
Definition Service.h:530
bool TagsHasBeenSet() const
Definition Service.h:473
Service & AddTaskSets(TaskSet &&value)
Definition Service.h:301
void SetTaskDefinition(Aws::String &&value)
Definition Service.h:267
void SetTags(Aws::Vector< Tag > &&value)
Definition Service.h:475
Service & WithHealthCheckGracePeriodSeconds(int value)
Definition Service.h:413
const Aws::Vector< Deployment > & GetDeployments() const
Definition Service.h:308
const LaunchType & GetLaunchType() const
Definition Service.h:196
void SetTags(const Aws::Vector< Tag > &value)
Definition Service.h:474
void SetClusterArn(Aws::String &&value)
Definition Service.h:98
void SetRoleArn(Aws::String &&value)
Definition Service.h:327
bool CapacityProviderStrategyHasBeenSet() const
Definition Service.h:211
Service & WithDeployments(const Aws::Vector< Deployment > &value)
Definition Service.h:312
Service & WithServiceName(Aws::String &&value)
Definition Service.h:87
void SetPlatformVersion(Aws::String &&value)
Definition Service.h:232
Service & WithCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
Definition Service.h:215
Service & AddServiceRegistries(const ServiceRegistry &value)
Definition Service.h:135
void SetDeploymentConfiguration(const DeploymentConfiguration &value)
Definition Service.h:281
Service & WithLoadBalancers(Aws::Vector< LoadBalancer > &&value)
Definition Service.h:117
void SetPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
Definition Service.h:383
bool CreatedAtHasBeenSet() const
Definition Service.h:354
void SetCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
Definition Service.h:213
const Aws::String & GetServiceArn() const
Definition Service.h:64
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
Definition Service.h:380
void SetServiceName(Aws::String &&value)
Definition Service.h:84
Service & WithTaskDefinition(const char *value)
Definition Service.h:271
Service & WithPlatformFamily(const Aws::String &value)
Definition Service.h:251
void SetNetworkConfiguration(const NetworkConfiguration &value)
Definition Service.h:398
void SetLaunchType(LaunchType &&value)
Definition Service.h:199
Service & WithRoleArn(const Aws::String &value)
Definition Service.h:329
const DeploymentController & GetDeploymentController() const
Definition Service.h:444
Service & WithRoleArn(Aws::String &&value)
Definition Service.h:330
Service & WithPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
Definition Service.h:384
Service & WithPlatformVersion(Aws::String &&value)
Definition Service.h:235
void SetEnableECSManagedTags(bool value)
Definition Service.h:506
Service & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Service.h:358
void SetDeployments(const Aws::Vector< Deployment > &value)
Definition Service.h:310
void SetPendingCount(int value)
Definition Service.h:186
void SetHealthCheckGracePeriodSeconds(int value)
Definition Service.h:412
bool LaunchTypeHasBeenSet() const
Definition Service.h:197
Service & WithEnableECSManagedTags(bool value)
Definition Service.h:507
const Aws::Vector< ServiceEvent > & GetEvents() const
Definition Service.h:339
void SetTaskDefinition(const char *value)
Definition Service.h:268
Service & WithLaunchType(const LaunchType &value)
Definition Service.h:200
Service & WithServiceName(const char *value)
Definition Service.h:88
void SetLaunchType(const LaunchType &value)
Definition Service.h:198
int GetRunningCount() const
Definition Service.h:173
bool SchedulingStrategyHasBeenSet() const
Definition Service.h:433
void SetSchedulingStrategy(const SchedulingStrategy &value)
Definition Service.h:434
void SetLoadBalancers(Aws::Vector< LoadBalancer > &&value)
Definition Service.h:115
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
Definition Service.h:210
bool StatusHasBeenSet() const
Definition Service.h:145
void SetDesiredCount(int value)
Definition Service.h:164
void SetSchedulingStrategy(SchedulingStrategy &&value)
Definition Service.h:435
const Aws::String & GetServiceName() const
Definition Service.h:81
const Aws::String & GetClusterArn() const
Definition Service.h:95
Service & WithLaunchType(LaunchType &&value)
Definition Service.h:201
bool DeploymentsHasBeenSet() const
Definition Service.h:309
Service & WithServiceRegistries(Aws::Vector< ServiceRegistry > &&value)
Definition Service.h:134
Service & WithRoleArn(const char *value)
Definition Service.h:331
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue