AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Service.h
Go to the documentation of this file.
1
6#pragma once
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:
55
56
63 inline const Aws::String& GetServiceArn() const{ return m_serviceArn; }
64
71 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
72
79 inline void SetServiceArn(const Aws::String& value) { m_serviceArnHasBeenSet = true; m_serviceArn = value; }
80
87 inline void SetServiceArn(Aws::String&& value) { m_serviceArnHasBeenSet = true; m_serviceArn = std::move(value); }
88
95 inline void SetServiceArn(const char* value) { m_serviceArnHasBeenSet = true; m_serviceArn.assign(value); }
96
103 inline Service& WithServiceArn(const Aws::String& value) { SetServiceArn(value); return *this;}
104
111 inline Service& WithServiceArn(Aws::String&& value) { SetServiceArn(std::move(value)); return *this;}
112
119 inline Service& WithServiceArn(const char* value) { SetServiceArn(value); return *this;}
120
121
128 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
129
136 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
137
144 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
145
152 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
153
160 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
161
168 inline Service& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
169
176 inline Service& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
177
184 inline Service& WithServiceName(const char* value) { SetServiceName(value); return *this;}
185
186
190 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
191
195 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
196
200 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
201
205 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
206
210 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
211
215 inline Service& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
216
220 inline Service& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
221
225 inline Service& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
226
227
234 inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const{ return m_loadBalancers; }
235
242 inline bool LoadBalancersHasBeenSet() const { return m_loadBalancersHasBeenSet; }
243
250 inline void SetLoadBalancers(const Aws::Vector<LoadBalancer>& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = value; }
251
258 inline void SetLoadBalancers(Aws::Vector<LoadBalancer>&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = std::move(value); }
259
266 inline Service& WithLoadBalancers(const Aws::Vector<LoadBalancer>& value) { SetLoadBalancers(value); return *this;}
267
274 inline Service& WithLoadBalancers(Aws::Vector<LoadBalancer>&& value) { SetLoadBalancers(std::move(value)); return *this;}
275
282 inline Service& AddLoadBalancers(const LoadBalancer& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.push_back(value); return *this; }
283
290 inline Service& AddLoadBalancers(LoadBalancer&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.push_back(std::move(value)); return *this; }
291
292
299 inline const Aws::Vector<ServiceRegistry>& GetServiceRegistries() const{ return m_serviceRegistries; }
300
307 inline bool ServiceRegistriesHasBeenSet() const { return m_serviceRegistriesHasBeenSet; }
308
315 inline void SetServiceRegistries(const Aws::Vector<ServiceRegistry>& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries = value; }
316
323 inline void SetServiceRegistries(Aws::Vector<ServiceRegistry>&& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries = std::move(value); }
324
332
339 inline Service& WithServiceRegistries(Aws::Vector<ServiceRegistry>&& value) { SetServiceRegistries(std::move(value)); return *this;}
340
347 inline Service& AddServiceRegistries(const ServiceRegistry& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries.push_back(value); return *this; }
348
355 inline Service& AddServiceRegistries(ServiceRegistry&& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries.push_back(std::move(value)); return *this; }
356
357
362 inline const Aws::String& GetStatus() const{ return m_status; }
363
368 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
369
374 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
375
380 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
381
386 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
387
392 inline Service& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
393
398 inline Service& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
399
404 inline Service& WithStatus(const char* value) { SetStatus(value); return *this;}
405
406
412 inline int GetDesiredCount() const{ return m_desiredCount; }
413
419 inline bool DesiredCountHasBeenSet() const { return m_desiredCountHasBeenSet; }
420
426 inline void SetDesiredCount(int value) { m_desiredCountHasBeenSet = true; m_desiredCount = value; }
427
433 inline Service& WithDesiredCount(int value) { SetDesiredCount(value); return *this;}
434
435
440 inline int GetRunningCount() const{ return m_runningCount; }
441
446 inline bool RunningCountHasBeenSet() const { return m_runningCountHasBeenSet; }
447
452 inline void SetRunningCount(int value) { m_runningCountHasBeenSet = true; m_runningCount = value; }
453
458 inline Service& WithRunningCount(int value) { SetRunningCount(value); return *this;}
459
460
465 inline int GetPendingCount() const{ return m_pendingCount; }
466
471 inline bool PendingCountHasBeenSet() const { return m_pendingCountHasBeenSet; }
472
477 inline void SetPendingCount(int value) { m_pendingCountHasBeenSet = true; m_pendingCount = value; }
478
483 inline Service& WithPendingCount(int value) { SetPendingCount(value); return *this;}
484
485
491 inline const LaunchType& GetLaunchType() const{ return m_launchType; }
492
498 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
499
505 inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
506
512 inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
513
519 inline Service& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
520
526 inline Service& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
527
528
534 inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const{ return m_capacityProviderStrategy; }
535
541 inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
542
548 inline void SetCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = value; }
549
555 inline void SetCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = std::move(value); }
556
563
570
576 inline Service& AddCapacityProviderStrategy(const CapacityProviderStrategyItem& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(value); return *this; }
577
583 inline Service& AddCapacityProviderStrategy(CapacityProviderStrategyItem&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(std::move(value)); return *this; }
584
585
594 inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
595
604 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
605
614 inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
615
624 inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
625
634 inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
635
644 inline Service& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
645
654 inline Service& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
655
664 inline Service& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
665
666
673 inline const Aws::String& GetPlatformFamily() const{ return m_platformFamily; }
674
681 inline bool PlatformFamilyHasBeenSet() const { return m_platformFamilyHasBeenSet; }
682
689 inline void SetPlatformFamily(const Aws::String& value) { m_platformFamilyHasBeenSet = true; m_platformFamily = value; }
690
697 inline void SetPlatformFamily(Aws::String&& value) { m_platformFamilyHasBeenSet = true; m_platformFamily = std::move(value); }
698
705 inline void SetPlatformFamily(const char* value) { m_platformFamilyHasBeenSet = true; m_platformFamily.assign(value); }
706
713 inline Service& WithPlatformFamily(const Aws::String& value) { SetPlatformFamily(value); return *this;}
714
721 inline Service& WithPlatformFamily(Aws::String&& value) { SetPlatformFamily(std::move(value)); return *this;}
722
729 inline Service& WithPlatformFamily(const char* value) { SetPlatformFamily(value); return *this;}
730
731
737 inline const Aws::String& GetTaskDefinition() const{ return m_taskDefinition; }
738
744 inline bool TaskDefinitionHasBeenSet() const { return m_taskDefinitionHasBeenSet; }
745
751 inline void SetTaskDefinition(const Aws::String& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = value; }
752
758 inline void SetTaskDefinition(Aws::String&& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = std::move(value); }
759
765 inline void SetTaskDefinition(const char* value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition.assign(value); }
766
772 inline Service& WithTaskDefinition(const Aws::String& value) { SetTaskDefinition(value); return *this;}
773
779 inline Service& WithTaskDefinition(Aws::String&& value) { SetTaskDefinition(std::move(value)); return *this;}
780
786 inline Service& WithTaskDefinition(const char* value) { SetTaskDefinition(value); return *this;}
787
788
793 inline const DeploymentConfiguration& GetDeploymentConfiguration() const{ return m_deploymentConfiguration; }
794
799 inline bool DeploymentConfigurationHasBeenSet() const { return m_deploymentConfigurationHasBeenSet; }
800
805 inline void SetDeploymentConfiguration(const DeploymentConfiguration& value) { m_deploymentConfigurationHasBeenSet = true; m_deploymentConfiguration = value; }
806
811 inline void SetDeploymentConfiguration(DeploymentConfiguration&& value) { m_deploymentConfigurationHasBeenSet = true; m_deploymentConfiguration = std::move(value); }
812
818
824
825
832 inline const Aws::Vector<TaskSet>& GetTaskSets() const{ return m_taskSets; }
833
840 inline bool TaskSetsHasBeenSet() const { return m_taskSetsHasBeenSet; }
841
848 inline void SetTaskSets(const Aws::Vector<TaskSet>& value) { m_taskSetsHasBeenSet = true; m_taskSets = value; }
849
856 inline void SetTaskSets(Aws::Vector<TaskSet>&& value) { m_taskSetsHasBeenSet = true; m_taskSets = std::move(value); }
857
864 inline Service& WithTaskSets(const Aws::Vector<TaskSet>& value) { SetTaskSets(value); return *this;}
865
872 inline Service& WithTaskSets(Aws::Vector<TaskSet>&& value) { SetTaskSets(std::move(value)); return *this;}
873
880 inline Service& AddTaskSets(const TaskSet& value) { m_taskSetsHasBeenSet = true; m_taskSets.push_back(value); return *this; }
881
888 inline Service& AddTaskSets(TaskSet&& value) { m_taskSetsHasBeenSet = true; m_taskSets.push_back(std::move(value)); return *this; }
889
890
894 inline const Aws::Vector<Deployment>& GetDeployments() const{ return m_deployments; }
895
899 inline bool DeploymentsHasBeenSet() const { return m_deploymentsHasBeenSet; }
900
904 inline void SetDeployments(const Aws::Vector<Deployment>& value) { m_deploymentsHasBeenSet = true; m_deployments = value; }
905
909 inline void SetDeployments(Aws::Vector<Deployment>&& value) { m_deploymentsHasBeenSet = true; m_deployments = std::move(value); }
910
914 inline Service& WithDeployments(const Aws::Vector<Deployment>& value) { SetDeployments(value); return *this;}
915
919 inline Service& WithDeployments(Aws::Vector<Deployment>&& value) { SetDeployments(std::move(value)); return *this;}
920
924 inline Service& AddDeployments(const Deployment& value) { m_deploymentsHasBeenSet = true; m_deployments.push_back(value); return *this; }
925
929 inline Service& AddDeployments(Deployment&& value) { m_deploymentsHasBeenSet = true; m_deployments.push_back(std::move(value)); return *this; }
930
931
937 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
938
944 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
945
951 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
952
958 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
959
965 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
966
972 inline Service& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
973
979 inline Service& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
980
986 inline Service& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
987
988
993 inline const Aws::Vector<ServiceEvent>& GetEvents() const{ return m_events; }
994
999 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
1000
1005 inline void SetEvents(const Aws::Vector<ServiceEvent>& value) { m_eventsHasBeenSet = true; m_events = value; }
1006
1011 inline void SetEvents(Aws::Vector<ServiceEvent>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
1012
1017 inline Service& WithEvents(const Aws::Vector<ServiceEvent>& value) { SetEvents(value); return *this;}
1018
1023 inline Service& WithEvents(Aws::Vector<ServiceEvent>&& value) { SetEvents(std::move(value)); return *this;}
1024
1029 inline Service& AddEvents(const ServiceEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
1030
1035 inline Service& AddEvents(ServiceEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
1036
1037
1041 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
1042
1046 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
1047
1051 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
1052
1056 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
1057
1061 inline Service& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
1062
1066 inline Service& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
1067
1068
1072 inline const Aws::Vector<PlacementConstraint>& GetPlacementConstraints() const{ return m_placementConstraints; }
1073
1077 inline bool PlacementConstraintsHasBeenSet() const { return m_placementConstraintsHasBeenSet; }
1078
1082 inline void SetPlacementConstraints(const Aws::Vector<PlacementConstraint>& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = value; }
1083
1087 inline void SetPlacementConstraints(Aws::Vector<PlacementConstraint>&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = std::move(value); }
1088
1093
1098
1102 inline Service& AddPlacementConstraints(const PlacementConstraint& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(value); return *this; }
1103
1107 inline Service& AddPlacementConstraints(PlacementConstraint&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(std::move(value)); return *this; }
1108
1109
1114 inline const Aws::Vector<PlacementStrategy>& GetPlacementStrategy() const{ return m_placementStrategy; }
1115
1120 inline bool PlacementStrategyHasBeenSet() const { return m_placementStrategyHasBeenSet; }
1121
1126 inline void SetPlacementStrategy(const Aws::Vector<PlacementStrategy>& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = value; }
1127
1132 inline void SetPlacementStrategy(Aws::Vector<PlacementStrategy>&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = std::move(value); }
1133
1139
1144 inline Service& WithPlacementStrategy(Aws::Vector<PlacementStrategy>&& value) { SetPlacementStrategy(std::move(value)); return *this;}
1145
1150 inline Service& AddPlacementStrategy(const PlacementStrategy& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.push_back(value); return *this; }
1151
1156 inline Service& AddPlacementStrategy(PlacementStrategy&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.push_back(std::move(value)); return *this; }
1157
1158
1164 inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
1165
1171 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
1172
1178 inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
1179
1185 inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
1186
1193
1199 inline Service& WithNetworkConfiguration(NetworkConfiguration&& value) { SetNetworkConfiguration(std::move(value)); return *this;}
1200
1201
1207 inline int GetHealthCheckGracePeriodSeconds() const{ return m_healthCheckGracePeriodSeconds; }
1208
1214 inline bool HealthCheckGracePeriodSecondsHasBeenSet() const { return m_healthCheckGracePeriodSecondsHasBeenSet; }
1215
1221 inline void SetHealthCheckGracePeriodSeconds(int value) { m_healthCheckGracePeriodSecondsHasBeenSet = true; m_healthCheckGracePeriodSeconds = value; }
1222
1229
1230
1246 inline const SchedulingStrategy& GetSchedulingStrategy() const{ return m_schedulingStrategy; }
1247
1263 inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; }
1264
1280 inline void SetSchedulingStrategy(const SchedulingStrategy& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = value; }
1281
1297 inline void SetSchedulingStrategy(SchedulingStrategy&& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = std::move(value); }
1298
1314 inline Service& WithSchedulingStrategy(const SchedulingStrategy& value) { SetSchedulingStrategy(value); return *this;}
1315
1331 inline Service& WithSchedulingStrategy(SchedulingStrategy&& value) { SetSchedulingStrategy(std::move(value)); return *this;}
1332
1333
1337 inline const DeploymentController& GetDeploymentController() const{ return m_deploymentController; }
1338
1342 inline bool DeploymentControllerHasBeenSet() const { return m_deploymentControllerHasBeenSet; }
1343
1347 inline void SetDeploymentController(const DeploymentController& value) { m_deploymentControllerHasBeenSet = true; m_deploymentController = value; }
1348
1352 inline void SetDeploymentController(DeploymentController&& value) { m_deploymentControllerHasBeenSet = true; m_deploymentController = std::move(value); }
1353
1358
1362 inline Service& WithDeploymentController(DeploymentController&& value) { SetDeploymentController(std::move(value)); return *this;}
1363
1364
1384 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
1385
1405 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
1406
1426 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
1427
1447 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
1448
1468 inline Service& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
1469
1489 inline Service& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
1490
1510 inline Service& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
1511
1531 inline Service& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
1532
1533
1537 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
1538
1542 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
1543
1547 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
1548
1552 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
1553
1557 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
1558
1562 inline Service& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
1563
1567 inline Service& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
1568
1572 inline Service& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
1573
1574
1582 inline bool GetEnableECSManagedTags() const{ return m_enableECSManagedTags; }
1583
1591 inline bool EnableECSManagedTagsHasBeenSet() const { return m_enableECSManagedTagsHasBeenSet; }
1592
1600 inline void SetEnableECSManagedTags(bool value) { m_enableECSManagedTagsHasBeenSet = true; m_enableECSManagedTags = value; }
1601
1609 inline Service& WithEnableECSManagedTags(bool value) { SetEnableECSManagedTags(value); return *this;}
1610
1611
1616 inline const PropagateTags& GetPropagateTags() const{ return m_propagateTags; }
1617
1622 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
1623
1628 inline void SetPropagateTags(const PropagateTags& value) { m_propagateTagsHasBeenSet = true; m_propagateTags = value; }
1629
1634 inline void SetPropagateTags(PropagateTags&& value) { m_propagateTagsHasBeenSet = true; m_propagateTags = std::move(value); }
1635
1640 inline Service& WithPropagateTags(const PropagateTags& value) { SetPropagateTags(value); return *this;}
1641
1646 inline Service& WithPropagateTags(PropagateTags&& value) { SetPropagateTags(std::move(value)); return *this;}
1647
1648
1654 inline bool GetEnableExecuteCommand() const{ return m_enableExecuteCommand; }
1655
1661 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
1662
1668 inline void SetEnableExecuteCommand(bool value) { m_enableExecuteCommandHasBeenSet = true; m_enableExecuteCommand = value; }
1669
1675 inline Service& WithEnableExecuteCommand(bool value) { SetEnableExecuteCommand(value); return *this;}
1676
1677 private:
1678
1679 Aws::String m_serviceArn;
1680 bool m_serviceArnHasBeenSet = false;
1681
1682 Aws::String m_serviceName;
1683 bool m_serviceNameHasBeenSet = false;
1684
1685 Aws::String m_clusterArn;
1686 bool m_clusterArnHasBeenSet = false;
1687
1688 Aws::Vector<LoadBalancer> m_loadBalancers;
1689 bool m_loadBalancersHasBeenSet = false;
1690
1691 Aws::Vector<ServiceRegistry> m_serviceRegistries;
1692 bool m_serviceRegistriesHasBeenSet = false;
1693
1694 Aws::String m_status;
1695 bool m_statusHasBeenSet = false;
1696
1697 int m_desiredCount;
1698 bool m_desiredCountHasBeenSet = false;
1699
1700 int m_runningCount;
1701 bool m_runningCountHasBeenSet = false;
1702
1703 int m_pendingCount;
1704 bool m_pendingCountHasBeenSet = false;
1705
1706 LaunchType m_launchType;
1707 bool m_launchTypeHasBeenSet = false;
1708
1709 Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
1710 bool m_capacityProviderStrategyHasBeenSet = false;
1711
1712 Aws::String m_platformVersion;
1713 bool m_platformVersionHasBeenSet = false;
1714
1715 Aws::String m_platformFamily;
1716 bool m_platformFamilyHasBeenSet = false;
1717
1718 Aws::String m_taskDefinition;
1719 bool m_taskDefinitionHasBeenSet = false;
1720
1721 DeploymentConfiguration m_deploymentConfiguration;
1722 bool m_deploymentConfigurationHasBeenSet = false;
1723
1724 Aws::Vector<TaskSet> m_taskSets;
1725 bool m_taskSetsHasBeenSet = false;
1726
1727 Aws::Vector<Deployment> m_deployments;
1728 bool m_deploymentsHasBeenSet = false;
1729
1730 Aws::String m_roleArn;
1731 bool m_roleArnHasBeenSet = false;
1732
1734 bool m_eventsHasBeenSet = false;
1735
1736 Aws::Utils::DateTime m_createdAt;
1737 bool m_createdAtHasBeenSet = false;
1738
1739 Aws::Vector<PlacementConstraint> m_placementConstraints;
1740 bool m_placementConstraintsHasBeenSet = false;
1741
1742 Aws::Vector<PlacementStrategy> m_placementStrategy;
1743 bool m_placementStrategyHasBeenSet = false;
1744
1745 NetworkConfiguration m_networkConfiguration;
1746 bool m_networkConfigurationHasBeenSet = false;
1747
1748 int m_healthCheckGracePeriodSeconds;
1749 bool m_healthCheckGracePeriodSecondsHasBeenSet = false;
1750
1751 SchedulingStrategy m_schedulingStrategy;
1752 bool m_schedulingStrategyHasBeenSet = false;
1753
1754 DeploymentController m_deploymentController;
1755 bool m_deploymentControllerHasBeenSet = false;
1756
1757 Aws::Vector<Tag> m_tags;
1758 bool m_tagsHasBeenSet = false;
1759
1760 Aws::String m_createdBy;
1761 bool m_createdByHasBeenSet = false;
1762
1763 bool m_enableECSManagedTags;
1764 bool m_enableECSManagedTagsHasBeenSet = false;
1765
1766 PropagateTags m_propagateTags;
1767 bool m_propagateTagsHasBeenSet = false;
1768
1769 bool m_enableExecuteCommand;
1770 bool m_enableExecuteCommandHasBeenSet = false;
1771 };
1772
1773} // namespace Model
1774} // namespace ECS
1775} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Service & WithDeployments(Aws::Vector< Deployment > &&value)
Definition: Service.h:919
void SetRunningCount(int value)
Definition: Service.h:452
Service & AddDeployments(Deployment &&value)
Definition: Service.h:929
void SetServiceRegistries(Aws::Vector< ServiceRegistry > &&value)
Definition: Service.h:323
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
Definition: Service.h:299
void SetTaskSets(const Aws::Vector< TaskSet > &value)
Definition: Service.h:848
const Aws::String & GetTaskDefinition() const
Definition: Service.h:737
void SetServiceArn(Aws::String &&value)
Definition: Service.h:87
Service & WithNetworkConfiguration(const NetworkConfiguration &value)
Definition: Service.h:1192
bool DesiredCountHasBeenSet() const
Definition: Service.h:419
bool RoleArnHasBeenSet() const
Definition: Service.h:944
Service & WithLoadBalancers(const Aws::Vector< LoadBalancer > &value)
Definition: Service.h:266
void SetTaskDefinition(const Aws::String &value)
Definition: Service.h:751
const DeploymentConfiguration & GetDeploymentConfiguration() const
Definition: Service.h:793
void SetCreatedBy(const char *value)
Definition: Service.h:1557
void SetServiceName(const char *value)
Definition: Service.h:160
Service & WithSchedulingStrategy(const SchedulingStrategy &value)
Definition: Service.h:1314
bool DeploymentConfigurationHasBeenSet() const
Definition: Service.h:799
Service & WithTaskDefinition(Aws::String &&value)
Definition: Service.h:779
Service & WithPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
Definition: Service.h:1144
bool EventsHasBeenSet() const
Definition: Service.h:999
bool DeploymentControllerHasBeenSet() const
Definition: Service.h:1342
void SetPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
Definition: Service.h:1082
Service & WithNetworkConfiguration(NetworkConfiguration &&value)
Definition: Service.h:1199
Service & WithClusterArn(const char *value)
Definition: Service.h:225
Service & WithServiceRegistries(const Aws::Vector< ServiceRegistry > &value)
Definition: Service.h:331
Service & WithTaskSets(const Aws::Vector< TaskSet > &value)
Definition: Service.h:864
Service & WithServiceArn(const Aws::String &value)
Definition: Service.h:103
Service & WithEvents(Aws::Vector< ServiceEvent > &&value)
Definition: Service.h:1023
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
Definition: Service.h:234
void SetServiceArn(const Aws::String &value)
Definition: Service.h:79
const Aws::String & GetRoleArn() const
Definition: Service.h:937
void SetDeploymentController(DeploymentController &&value)
Definition: Service.h:1352
bool HealthCheckGracePeriodSecondsHasBeenSet() const
Definition: Service.h:1214
bool TaskSetsHasBeenSet() const
Definition: Service.h:840
void SetPlatformFamily(const Aws::String &value)
Definition: Service.h:689
Service & WithTaskSets(Aws::Vector< TaskSet > &&value)
Definition: Service.h:872
void SetDeploymentController(const DeploymentController &value)
Definition: Service.h:1347
void SetEvents(const Aws::Vector< ServiceEvent > &value)
Definition: Service.h:1005
void SetPlatformFamily(Aws::String &&value)
Definition: Service.h:697
bool NetworkConfigurationHasBeenSet() const
Definition: Service.h:1171
Service & AddCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
Definition: Service.h:583
Service & WithPlatformVersion(const char *value)
Definition: Service.h:664
void SetServiceRegistries(const Aws::Vector< ServiceRegistry > &value)
Definition: Service.h:315
void SetCreatedBy(const Aws::String &value)
Definition: Service.h:1547
bool PlacementStrategyHasBeenSet() const
Definition: Service.h:1120
bool RunningCountHasBeenSet() const
Definition: Service.h:446
const Aws::Vector< Tag > & GetTags() const
Definition: Service.h:1384
Service & WithDeploymentController(const DeploymentController &value)
Definition: Service.h:1357
Service & WithEvents(const Aws::Vector< ServiceEvent > &value)
Definition: Service.h:1017
Service & WithTaskDefinition(const Aws::String &value)
Definition: Service.h:772
void SetPlatformVersion(const Aws::String &value)
Definition: Service.h:614
Service & AddCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
Definition: Service.h:576
Service & WithPendingCount(int value)
Definition: Service.h:483
void SetPropagateTags(const PropagateTags &value)
Definition: Service.h:1628
void SetPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
Definition: Service.h:1126
Service & AddTags(const Tag &value)
Definition: Service.h:1510
Service & WithPlatformFamily(Aws::String &&value)
Definition: Service.h:721
void SetTaskSets(Aws::Vector< TaskSet > &&value)
Definition: Service.h:856
const Aws::String & GetStatus() const
Definition: Service.h:362
void SetNetworkConfiguration(NetworkConfiguration &&value)
Definition: Service.h:1185
bool PlatformFamilyHasBeenSet() const
Definition: Service.h:681
Service & WithPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
Definition: Service.h:1092
int GetDesiredCount() const
Definition: Service.h:412
Service & AddTags(Tag &&value)
Definition: Service.h:1531
Service & WithDesiredCount(int value)
Definition: Service.h:433
Service & WithTags(Aws::Vector< Tag > &&value)
Definition: Service.h:1489
const NetworkConfiguration & GetNetworkConfiguration() const
Definition: Service.h:1164
void SetClusterArn(const char *value)
Definition: Service.h:210
Service & WithSchedulingStrategy(SchedulingStrategy &&value)
Definition: Service.h:1331
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: Service.h:1056
void SetDeploymentConfiguration(DeploymentConfiguration &&value)
Definition: Service.h:811
Service & WithTags(const Aws::Vector< Tag > &value)
Definition: Service.h:1468
Service & AddTaskSets(const TaskSet &value)
Definition: Service.h:880
Service & WithPropagateTags(PropagateTags &&value)
Definition: Service.h:1646
bool CreatedByHasBeenSet() const
Definition: Service.h:1542
void SetLoadBalancers(const Aws::Vector< LoadBalancer > &value)
Definition: Service.h:250
Service & WithDeploymentConfiguration(DeploymentConfiguration &&value)
Definition: Service.h:823
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: Service.h:1041
Service & WithCreatedBy(Aws::String &&value)
Definition: Service.h:1567
void SetDeployments(Aws::Vector< Deployment > &&value)
Definition: Service.h:909
void SetStatus(const Aws::String &value)
Definition: Service.h:374
void SetStatus(Aws::String &&value)
Definition: Service.h:380
Service & WithEnableExecuteCommand(bool value)
Definition: Service.h:1675
void SetEnableExecuteCommand(bool value)
Definition: Service.h:1668
Service & AddPlacementConstraints(PlacementConstraint &&value)
Definition: Service.h:1107
AWS_ECS_API Service(Aws::Utils::Json::JsonView jsonValue)
void SetCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
Definition: Service.h:548
bool LoadBalancersHasBeenSet() const
Definition: Service.h:242
Service & AddLoadBalancers(const LoadBalancer &value)
Definition: Service.h:282
Service & WithPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
Definition: Service.h:1097
Service & WithClusterArn(const Aws::String &value)
Definition: Service.h:215
Service & AddPlacementConstraints(const PlacementConstraint &value)
Definition: Service.h:1102
int GetPendingCount() const
Definition: Service.h:465
Service & AddLoadBalancers(LoadBalancer &&value)
Definition: Service.h:290
bool ServiceArnHasBeenSet() const
Definition: Service.h:71
void SetEvents(Aws::Vector< ServiceEvent > &&value)
Definition: Service.h:1011
bool ServiceNameHasBeenSet() const
Definition: Service.h:136
Service & WithPropagateTags(const PropagateTags &value)
Definition: Service.h:1640
bool PropagateTagsHasBeenSet() const
Definition: Service.h:1622
Service & WithCreatedBy(const char *value)
Definition: Service.h:1572
int GetHealthCheckGracePeriodSeconds() const
Definition: Service.h:1207
Service & WithStatus(Aws::String &&value)
Definition: Service.h:398
bool PlatformVersionHasBeenSet() const
Definition: Service.h:604
void SetPropagateTags(PropagateTags &&value)
Definition: Service.h:1634
void SetPlatformVersion(const char *value)
Definition: Service.h:634
bool ClusterArnHasBeenSet() const
Definition: Service.h:195
const Aws::Vector< TaskSet > & GetTaskSets() const
Definition: Service.h:832
Service & AddPlacementStrategy(const PlacementStrategy &value)
Definition: Service.h:1150
Service & WithDeploymentController(DeploymentController &&value)
Definition: Service.h:1362
Service & WithStatus(const char *value)
Definition: Service.h:404
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: Service.h:1051
Service & WithDeploymentConfiguration(const DeploymentConfiguration &value)
Definition: Service.h:817
Service & WithRunningCount(int value)
Definition: Service.h:458
void SetRoleArn(const char *value)
Definition: Service.h:965
bool PlacementConstraintsHasBeenSet() const
Definition: Service.h:1077
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const PropagateTags & GetPropagateTags() const
Definition: Service.h:1616
const SchedulingStrategy & GetSchedulingStrategy() const
Definition: Service.h:1246
Service & WithClusterArn(Aws::String &&value)
Definition: Service.h:220
const Aws::String & GetPlatformFamily() const
Definition: Service.h:673
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
Definition: Service.h:1072
void SetClusterArn(const Aws::String &value)
Definition: Service.h:200
Service & AddEvents(ServiceEvent &&value)
Definition: Service.h:1035
Service & WithCreatedBy(const Aws::String &value)
Definition: Service.h:1562
Service & AddPlacementStrategy(PlacementStrategy &&value)
Definition: Service.h:1156
Service & WithServiceArn(Aws::String &&value)
Definition: Service.h:111
Service & WithCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
Definition: Service.h:562
Service & WithPlatformVersion(const Aws::String &value)
Definition: Service.h:644
void SetServiceArn(const char *value)
Definition: Service.h:95
bool GetEnableECSManagedTags() const
Definition: Service.h:1582
void SetRoleArn(const Aws::String &value)
Definition: Service.h:951
const Aws::String & GetCreatedBy() const
Definition: Service.h:1537
Service & WithServiceArn(const char *value)
Definition: Service.h:119
Service & AddDeployments(const Deployment &value)
Definition: Service.h:924
bool TaskDefinitionHasBeenSet() const
Definition: Service.h:744
void SetServiceName(const Aws::String &value)
Definition: Service.h:144
Service & WithServiceName(const Aws::String &value)
Definition: Service.h:168
AWS_ECS_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPlatformVersion() const
Definition: Service.h:594
void SetPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
Definition: Service.h:1087
void SetPlatformFamily(const char *value)
Definition: Service.h:705
Service & AddServiceRegistries(ServiceRegistry &&value)
Definition: Service.h:355
Service & WithStatus(const Aws::String &value)
Definition: Service.h:392
void SetCreatedBy(Aws::String &&value)
Definition: Service.h:1552
bool PendingCountHasBeenSet() const
Definition: Service.h:471
bool EnableECSManagedTagsHasBeenSet() const
Definition: Service.h:1591
Service & WithPlatformFamily(const char *value)
Definition: Service.h:729
bool GetEnableExecuteCommand() const
Definition: Service.h:1654
bool ServiceRegistriesHasBeenSet() const
Definition: Service.h:307
void SetStatus(const char *value)
Definition: Service.h:386
Service & AddEvents(const ServiceEvent &value)
Definition: Service.h:1029
Service & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: Service.h:1061
bool EnableExecuteCommandHasBeenSet() const
Definition: Service.h:1661
bool TagsHasBeenSet() const
Definition: Service.h:1405
Service & AddTaskSets(TaskSet &&value)
Definition: Service.h:888
void SetTaskDefinition(Aws::String &&value)
Definition: Service.h:758
void SetTags(Aws::Vector< Tag > &&value)
Definition: Service.h:1447
Service & WithHealthCheckGracePeriodSeconds(int value)
Definition: Service.h:1228
const Aws::Vector< Deployment > & GetDeployments() const
Definition: Service.h:894
const LaunchType & GetLaunchType() const
Definition: Service.h:491
void SetTags(const Aws::Vector< Tag > &value)
Definition: Service.h:1426
void SetClusterArn(Aws::String &&value)
Definition: Service.h:205
void SetRoleArn(Aws::String &&value)
Definition: Service.h:958
bool CapacityProviderStrategyHasBeenSet() const
Definition: Service.h:541
Service & WithDeployments(const Aws::Vector< Deployment > &value)
Definition: Service.h:914
Service & WithServiceName(Aws::String &&value)
Definition: Service.h:176
void SetPlatformVersion(Aws::String &&value)
Definition: Service.h:624
Service & WithCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
Definition: Service.h:569
Service & AddServiceRegistries(const ServiceRegistry &value)
Definition: Service.h:347
void SetDeploymentConfiguration(const DeploymentConfiguration &value)
Definition: Service.h:805
Service & WithLoadBalancers(Aws::Vector< LoadBalancer > &&value)
Definition: Service.h:274
void SetPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
Definition: Service.h:1132
bool CreatedAtHasBeenSet() const
Definition: Service.h:1046
void SetCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
Definition: Service.h:555
const Aws::String & GetServiceArn() const
Definition: Service.h:63
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
Definition: Service.h:1114
void SetServiceName(Aws::String &&value)
Definition: Service.h:152
Service & WithTaskDefinition(const char *value)
Definition: Service.h:786
Service & WithPlatformFamily(const Aws::String &value)
Definition: Service.h:713
void SetNetworkConfiguration(const NetworkConfiguration &value)
Definition: Service.h:1178
void SetLaunchType(LaunchType &&value)
Definition: Service.h:512
Service & WithRoleArn(const Aws::String &value)
Definition: Service.h:972
const DeploymentController & GetDeploymentController() const
Definition: Service.h:1337
Service & WithRoleArn(Aws::String &&value)
Definition: Service.h:979
Service & WithPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
Definition: Service.h:1138
Service & WithPlatformVersion(Aws::String &&value)
Definition: Service.h:654
void SetEnableECSManagedTags(bool value)
Definition: Service.h:1600
Service & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: Service.h:1066
void SetDeployments(const Aws::Vector< Deployment > &value)
Definition: Service.h:904
void SetPendingCount(int value)
Definition: Service.h:477
void SetHealthCheckGracePeriodSeconds(int value)
Definition: Service.h:1221
bool LaunchTypeHasBeenSet() const
Definition: Service.h:498
Service & WithEnableECSManagedTags(bool value)
Definition: Service.h:1609
const Aws::Vector< ServiceEvent > & GetEvents() const
Definition: Service.h:993
void SetTaskDefinition(const char *value)
Definition: Service.h:765
Service & WithLaunchType(const LaunchType &value)
Definition: Service.h:519
Service & WithServiceName(const char *value)
Definition: Service.h:184
void SetLaunchType(const LaunchType &value)
Definition: Service.h:505
int GetRunningCount() const
Definition: Service.h:440
bool SchedulingStrategyHasBeenSet() const
Definition: Service.h:1263
void SetSchedulingStrategy(const SchedulingStrategy &value)
Definition: Service.h:1280
void SetLoadBalancers(Aws::Vector< LoadBalancer > &&value)
Definition: Service.h:258
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
Definition: Service.h:534
bool StatusHasBeenSet() const
Definition: Service.h:368
void SetDesiredCount(int value)
Definition: Service.h:426
void SetSchedulingStrategy(SchedulingStrategy &&value)
Definition: Service.h:1297
const Aws::String & GetServiceName() const
Definition: Service.h:128
const Aws::String & GetClusterArn() const
Definition: Service.h:190
Service & WithLaunchType(LaunchType &&value)
Definition: Service.h:526
bool DeploymentsHasBeenSet() const
Definition: Service.h:899
Service & WithServiceRegistries(Aws::Vector< ServiceRegistry > &&value)
Definition: Service.h:339
Service & WithRoleArn(const char *value)
Definition: Service.h:986
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector