AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Service.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/AvailabilityZoneRebalancing.h>
12#include <aws/ecs/model/CapacityProviderStrategyItem.h>
13#include <aws/ecs/model/Deployment.h>
14#include <aws/ecs/model/DeploymentConfiguration.h>
15#include <aws/ecs/model/DeploymentController.h>
16#include <aws/ecs/model/LaunchType.h>
17#include <aws/ecs/model/LoadBalancer.h>
18#include <aws/ecs/model/NetworkConfiguration.h>
19#include <aws/ecs/model/PlacementConstraint.h>
20#include <aws/ecs/model/PlacementStrategy.h>
21#include <aws/ecs/model/PropagateTags.h>
22#include <aws/ecs/model/ResourceManagementType.h>
23#include <aws/ecs/model/SchedulingStrategy.h>
24#include <aws/ecs/model/ServiceCurrentRevisionSummary.h>
25#include <aws/ecs/model/ServiceEvent.h>
26#include <aws/ecs/model/ServiceRegistry.h>
27#include <aws/ecs/model/Tag.h>
28#include <aws/ecs/model/TaskSet.h>
29
30#include <utility>
31
32namespace Aws {
33namespace Utils {
34namespace Json {
35class JsonValue;
36class JsonView;
37} // namespace Json
38} // namespace Utils
39namespace ECS {
40namespace Model {
41
47class Service {
48 public:
49 AWS_ECS_API Service() = default;
50 AWS_ECS_API Service(Aws::Utils::Json::JsonView jsonValue);
53
55
61 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
62 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
63 template <typename ServiceArnT = Aws::String>
64 void SetServiceArn(ServiceArnT&& value) {
65 m_serviceArnHasBeenSet = true;
66 m_serviceArn = std::forward<ServiceArnT>(value);
67 }
68 template <typename ServiceArnT = Aws::String>
69 Service& WithServiceArn(ServiceArnT&& value) {
70 SetServiceArn(std::forward<ServiceArnT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::String& GetServiceName() const { return m_serviceName; }
83 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
84 template <typename ServiceNameT = Aws::String>
85 void SetServiceName(ServiceNameT&& value) {
86 m_serviceNameHasBeenSet = true;
87 m_serviceName = std::forward<ServiceNameT>(value);
88 }
89 template <typename ServiceNameT = Aws::String>
90 Service& WithServiceName(ServiceNameT&& value) {
91 SetServiceName(std::forward<ServiceNameT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
101 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
102 template <typename ClusterArnT = Aws::String>
103 void SetClusterArn(ClusterArnT&& value) {
104 m_clusterArnHasBeenSet = true;
105 m_clusterArn = std::forward<ClusterArnT>(value);
106 }
107 template <typename ClusterArnT = Aws::String>
108 Service& WithClusterArn(ClusterArnT&& value) {
109 SetClusterArn(std::forward<ClusterArnT>(value));
110 return *this;
111 }
113
115
121 inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const { return m_loadBalancers; }
122 inline bool LoadBalancersHasBeenSet() const { return m_loadBalancersHasBeenSet; }
123 template <typename LoadBalancersT = Aws::Vector<LoadBalancer>>
124 void SetLoadBalancers(LoadBalancersT&& value) {
125 m_loadBalancersHasBeenSet = true;
126 m_loadBalancers = std::forward<LoadBalancersT>(value);
127 }
128 template <typename LoadBalancersT = Aws::Vector<LoadBalancer>>
129 Service& WithLoadBalancers(LoadBalancersT&& value) {
130 SetLoadBalancers(std::forward<LoadBalancersT>(value));
131 return *this;
132 }
133 template <typename LoadBalancersT = LoadBalancer>
134 Service& AddLoadBalancers(LoadBalancersT&& value) {
135 m_loadBalancersHasBeenSet = true;
136 m_loadBalancers.emplace_back(std::forward<LoadBalancersT>(value));
137 return *this;
138 }
140
142
148 inline const Aws::Vector<ServiceRegistry>& GetServiceRegistries() const { return m_serviceRegistries; }
149 inline bool ServiceRegistriesHasBeenSet() const { return m_serviceRegistriesHasBeenSet; }
150 template <typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
151 void SetServiceRegistries(ServiceRegistriesT&& value) {
152 m_serviceRegistriesHasBeenSet = true;
153 m_serviceRegistries = std::forward<ServiceRegistriesT>(value);
154 }
155 template <typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
156 Service& WithServiceRegistries(ServiceRegistriesT&& value) {
157 SetServiceRegistries(std::forward<ServiceRegistriesT>(value));
158 return *this;
159 }
160 template <typename ServiceRegistriesT = ServiceRegistry>
161 Service& AddServiceRegistries(ServiceRegistriesT&& value) {
162 m_serviceRegistriesHasBeenSet = true;
163 m_serviceRegistries.emplace_back(std::forward<ServiceRegistriesT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::String& GetStatus() const { return m_status; }
174 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
175 template <typename StatusT = Aws::String>
176 void SetStatus(StatusT&& value) {
177 m_statusHasBeenSet = true;
178 m_status = std::forward<StatusT>(value);
179 }
180 template <typename StatusT = Aws::String>
181 Service& WithStatus(StatusT&& value) {
182 SetStatus(std::forward<StatusT>(value));
183 return *this;
184 }
186
188
195 inline int GetDesiredCount() const { return m_desiredCount; }
196 inline bool DesiredCountHasBeenSet() const { return m_desiredCountHasBeenSet; }
197 inline void SetDesiredCount(int value) {
198 m_desiredCountHasBeenSet = true;
199 m_desiredCount = value;
200 }
201 inline Service& WithDesiredCount(int value) {
202 SetDesiredCount(value);
203 return *this;
204 }
206
208
212 inline int GetRunningCount() const { return m_runningCount; }
213 inline bool RunningCountHasBeenSet() const { return m_runningCountHasBeenSet; }
214 inline void SetRunningCount(int value) {
215 m_runningCountHasBeenSet = true;
216 m_runningCount = value;
217 }
218 inline Service& WithRunningCount(int value) {
219 SetRunningCount(value);
220 return *this;
221 }
223
225
229 inline int GetPendingCount() const { return m_pendingCount; }
230 inline bool PendingCountHasBeenSet() const { return m_pendingCountHasBeenSet; }
231 inline void SetPendingCount(int value) {
232 m_pendingCountHasBeenSet = true;
233 m_pendingCount = value;
234 }
235 inline Service& WithPendingCount(int value) {
236 SetPendingCount(value);
237 return *this;
238 }
240
242
247 inline LaunchType GetLaunchType() const { return m_launchType; }
248 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
249 inline void SetLaunchType(LaunchType value) {
250 m_launchTypeHasBeenSet = true;
251 m_launchType = value;
252 }
254 SetLaunchType(value);
255 return *this;
256 }
258
260
265 inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const { return m_capacityProviderStrategy; }
266 inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
267 template <typename CapacityProviderStrategyT = Aws::Vector<CapacityProviderStrategyItem>>
268 void SetCapacityProviderStrategy(CapacityProviderStrategyT&& value) {
269 m_capacityProviderStrategyHasBeenSet = true;
270 m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value);
271 }
272 template <typename CapacityProviderStrategyT = Aws::Vector<CapacityProviderStrategyItem>>
273 Service& WithCapacityProviderStrategy(CapacityProviderStrategyT&& value) {
274 SetCapacityProviderStrategy(std::forward<CapacityProviderStrategyT>(value));
275 return *this;
276 }
277 template <typename CapacityProviderStrategyT = CapacityProviderStrategyItem>
278 Service& AddCapacityProviderStrategy(CapacityProviderStrategyT&& value) {
279 m_capacityProviderStrategyHasBeenSet = true;
280 m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value));
281 return *this;
282 }
284
286
294 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
295 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
296 template <typename PlatformVersionT = Aws::String>
297 void SetPlatformVersion(PlatformVersionT&& value) {
298 m_platformVersionHasBeenSet = true;
299 m_platformVersion = std::forward<PlatformVersionT>(value);
300 }
301 template <typename PlatformVersionT = Aws::String>
302 Service& WithPlatformVersion(PlatformVersionT&& value) {
303 SetPlatformVersion(std::forward<PlatformVersionT>(value));
304 return *this;
305 }
307
309
315 inline const Aws::String& GetPlatformFamily() const { return m_platformFamily; }
316 inline bool PlatformFamilyHasBeenSet() const { return m_platformFamilyHasBeenSet; }
317 template <typename PlatformFamilyT = Aws::String>
318 void SetPlatformFamily(PlatformFamilyT&& value) {
319 m_platformFamilyHasBeenSet = true;
320 m_platformFamily = std::forward<PlatformFamilyT>(value);
321 }
322 template <typename PlatformFamilyT = Aws::String>
323 Service& WithPlatformFamily(PlatformFamilyT&& value) {
324 SetPlatformFamily(std::forward<PlatformFamilyT>(value));
325 return *this;
326 }
328
330
337 inline const Aws::String& GetTaskDefinition() const { return m_taskDefinition; }
338 inline bool TaskDefinitionHasBeenSet() const { return m_taskDefinitionHasBeenSet; }
339 template <typename TaskDefinitionT = Aws::String>
340 void SetTaskDefinition(TaskDefinitionT&& value) {
341 m_taskDefinitionHasBeenSet = true;
342 m_taskDefinition = std::forward<TaskDefinitionT>(value);
343 }
344 template <typename TaskDefinitionT = Aws::String>
345 Service& WithTaskDefinition(TaskDefinitionT&& value) {
346 SetTaskDefinition(std::forward<TaskDefinitionT>(value));
347 return *this;
348 }
350
352
356 inline const DeploymentConfiguration& GetDeploymentConfiguration() const { return m_deploymentConfiguration; }
357 inline bool DeploymentConfigurationHasBeenSet() const { return m_deploymentConfigurationHasBeenSet; }
358 template <typename DeploymentConfigurationT = DeploymentConfiguration>
359 void SetDeploymentConfiguration(DeploymentConfigurationT&& value) {
360 m_deploymentConfigurationHasBeenSet = true;
361 m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value);
362 }
363 template <typename DeploymentConfigurationT = DeploymentConfiguration>
364 Service& WithDeploymentConfiguration(DeploymentConfigurationT&& value) {
365 SetDeploymentConfiguration(std::forward<DeploymentConfigurationT>(value));
366 return *this;
367 }
369
371
377 inline const Aws::Vector<TaskSet>& GetTaskSets() const { return m_taskSets; }
378 inline bool TaskSetsHasBeenSet() const { return m_taskSetsHasBeenSet; }
379 template <typename TaskSetsT = Aws::Vector<TaskSet>>
380 void SetTaskSets(TaskSetsT&& value) {
381 m_taskSetsHasBeenSet = true;
382 m_taskSets = std::forward<TaskSetsT>(value);
383 }
384 template <typename TaskSetsT = Aws::Vector<TaskSet>>
385 Service& WithTaskSets(TaskSetsT&& value) {
386 SetTaskSets(std::forward<TaskSetsT>(value));
387 return *this;
388 }
389 template <typename TaskSetsT = TaskSet>
390 Service& AddTaskSets(TaskSetsT&& value) {
391 m_taskSetsHasBeenSet = true;
392 m_taskSets.emplace_back(std::forward<TaskSetsT>(value));
393 return *this;
394 }
396
398
401 inline const Aws::Vector<Deployment>& GetDeployments() const { return m_deployments; }
402 inline bool DeploymentsHasBeenSet() const { return m_deploymentsHasBeenSet; }
403 template <typename DeploymentsT = Aws::Vector<Deployment>>
404 void SetDeployments(DeploymentsT&& value) {
405 m_deploymentsHasBeenSet = true;
406 m_deployments = std::forward<DeploymentsT>(value);
407 }
408 template <typename DeploymentsT = Aws::Vector<Deployment>>
409 Service& WithDeployments(DeploymentsT&& value) {
410 SetDeployments(std::forward<DeploymentsT>(value));
411 return *this;
412 }
413 template <typename DeploymentsT = Deployment>
414 Service& AddDeployments(DeploymentsT&& value) {
415 m_deploymentsHasBeenSet = true;
416 m_deployments.emplace_back(std::forward<DeploymentsT>(value));
417 return *this;
418 }
420
422
427 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
428 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
429 template <typename RoleArnT = Aws::String>
430 void SetRoleArn(RoleArnT&& value) {
431 m_roleArnHasBeenSet = true;
432 m_roleArn = std::forward<RoleArnT>(value);
433 }
434 template <typename RoleArnT = Aws::String>
435 Service& WithRoleArn(RoleArnT&& value) {
436 SetRoleArn(std::forward<RoleArnT>(value));
437 return *this;
438 }
440
442
446 inline const Aws::Vector<ServiceEvent>& GetEvents() const { return m_events; }
447 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
448 template <typename EventsT = Aws::Vector<ServiceEvent>>
449 void SetEvents(EventsT&& value) {
450 m_eventsHasBeenSet = true;
451 m_events = std::forward<EventsT>(value);
452 }
453 template <typename EventsT = Aws::Vector<ServiceEvent>>
454 Service& WithEvents(EventsT&& value) {
455 SetEvents(std::forward<EventsT>(value));
456 return *this;
457 }
458 template <typename EventsT = ServiceEvent>
459 Service& AddEvents(EventsT&& value) {
460 m_eventsHasBeenSet = true;
461 m_events.emplace_back(std::forward<EventsT>(value));
462 return *this;
463 }
465
467
470 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
471 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
472 template <typename CreatedAtT = Aws::Utils::DateTime>
473 void SetCreatedAt(CreatedAtT&& value) {
474 m_createdAtHasBeenSet = true;
475 m_createdAt = std::forward<CreatedAtT>(value);
476 }
477 template <typename CreatedAtT = Aws::Utils::DateTime>
478 Service& WithCreatedAt(CreatedAtT&& value) {
479 SetCreatedAt(std::forward<CreatedAtT>(value));
480 return *this;
481 }
483
485
488 inline const Aws::String& GetCurrentServiceDeployment() const { return m_currentServiceDeployment; }
489 inline bool CurrentServiceDeploymentHasBeenSet() const { return m_currentServiceDeploymentHasBeenSet; }
490 template <typename CurrentServiceDeploymentT = Aws::String>
491 void SetCurrentServiceDeployment(CurrentServiceDeploymentT&& value) {
492 m_currentServiceDeploymentHasBeenSet = true;
493 m_currentServiceDeployment = std::forward<CurrentServiceDeploymentT>(value);
494 }
495 template <typename CurrentServiceDeploymentT = Aws::String>
496 Service& WithCurrentServiceDeployment(CurrentServiceDeploymentT&& value) {
497 SetCurrentServiceDeployment(std::forward<CurrentServiceDeploymentT>(value));
498 return *this;
499 }
501
503
506 inline const Aws::Vector<ServiceCurrentRevisionSummary>& GetCurrentServiceRevisions() const { return m_currentServiceRevisions; }
507 inline bool CurrentServiceRevisionsHasBeenSet() const { return m_currentServiceRevisionsHasBeenSet; }
508 template <typename CurrentServiceRevisionsT = Aws::Vector<ServiceCurrentRevisionSummary>>
509 void SetCurrentServiceRevisions(CurrentServiceRevisionsT&& value) {
510 m_currentServiceRevisionsHasBeenSet = true;
511 m_currentServiceRevisions = std::forward<CurrentServiceRevisionsT>(value);
512 }
513 template <typename CurrentServiceRevisionsT = Aws::Vector<ServiceCurrentRevisionSummary>>
514 Service& WithCurrentServiceRevisions(CurrentServiceRevisionsT&& value) {
515 SetCurrentServiceRevisions(std::forward<CurrentServiceRevisionsT>(value));
516 return *this;
517 }
518 template <typename CurrentServiceRevisionsT = ServiceCurrentRevisionSummary>
519 Service& AddCurrentServiceRevisions(CurrentServiceRevisionsT&& value) {
520 m_currentServiceRevisionsHasBeenSet = true;
521 m_currentServiceRevisions.emplace_back(std::forward<CurrentServiceRevisionsT>(value));
522 return *this;
523 }
525
527
530 inline const Aws::Vector<PlacementConstraint>& GetPlacementConstraints() const { return m_placementConstraints; }
531 inline bool PlacementConstraintsHasBeenSet() const { return m_placementConstraintsHasBeenSet; }
532 template <typename PlacementConstraintsT = Aws::Vector<PlacementConstraint>>
533 void SetPlacementConstraints(PlacementConstraintsT&& value) {
534 m_placementConstraintsHasBeenSet = true;
535 m_placementConstraints = std::forward<PlacementConstraintsT>(value);
536 }
537 template <typename PlacementConstraintsT = Aws::Vector<PlacementConstraint>>
538 Service& WithPlacementConstraints(PlacementConstraintsT&& value) {
539 SetPlacementConstraints(std::forward<PlacementConstraintsT>(value));
540 return *this;
541 }
542 template <typename PlacementConstraintsT = PlacementConstraint>
543 Service& AddPlacementConstraints(PlacementConstraintsT&& value) {
544 m_placementConstraintsHasBeenSet = true;
545 m_placementConstraints.emplace_back(std::forward<PlacementConstraintsT>(value));
546 return *this;
547 }
549
551
555 inline const Aws::Vector<PlacementStrategy>& GetPlacementStrategy() const { return m_placementStrategy; }
556 inline bool PlacementStrategyHasBeenSet() const { return m_placementStrategyHasBeenSet; }
557 template <typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
558 void SetPlacementStrategy(PlacementStrategyT&& value) {
559 m_placementStrategyHasBeenSet = true;
560 m_placementStrategy = std::forward<PlacementStrategyT>(value);
561 }
562 template <typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
563 Service& WithPlacementStrategy(PlacementStrategyT&& value) {
564 SetPlacementStrategy(std::forward<PlacementStrategyT>(value));
565 return *this;
566 }
567 template <typename PlacementStrategyT = PlacementStrategy>
568 Service& AddPlacementStrategy(PlacementStrategyT&& value) {
569 m_placementStrategyHasBeenSet = true;
570 m_placementStrategy.emplace_back(std::forward<PlacementStrategyT>(value));
571 return *this;
572 }
574
576
581 inline const NetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
582 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
583 template <typename NetworkConfigurationT = NetworkConfiguration>
584 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
585 m_networkConfigurationHasBeenSet = true;
586 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
587 }
588 template <typename NetworkConfigurationT = NetworkConfiguration>
589 Service& WithNetworkConfiguration(NetworkConfigurationT&& value) {
590 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
591 return *this;
592 }
594
596
603 inline int GetHealthCheckGracePeriodSeconds() const { return m_healthCheckGracePeriodSeconds; }
604 inline bool HealthCheckGracePeriodSecondsHasBeenSet() const { return m_healthCheckGracePeriodSecondsHasBeenSet; }
605 inline void SetHealthCheckGracePeriodSeconds(int value) {
606 m_healthCheckGracePeriodSecondsHasBeenSet = true;
607 m_healthCheckGracePeriodSeconds = value;
608 }
611 return *this;
612 }
614
616
631 inline SchedulingStrategy GetSchedulingStrategy() const { return m_schedulingStrategy; }
632 inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; }
634 m_schedulingStrategyHasBeenSet = true;
635 m_schedulingStrategy = value;
636 }
639 return *this;
640 }
642
644
647 inline const DeploymentController& GetDeploymentController() const { return m_deploymentController; }
648 inline bool DeploymentControllerHasBeenSet() const { return m_deploymentControllerHasBeenSet; }
649 template <typename DeploymentControllerT = DeploymentController>
650 void SetDeploymentController(DeploymentControllerT&& value) {
651 m_deploymentControllerHasBeenSet = true;
652 m_deploymentController = std::forward<DeploymentControllerT>(value);
653 }
654 template <typename DeploymentControllerT = DeploymentController>
655 Service& WithDeploymentController(DeploymentControllerT&& value) {
656 SetDeploymentController(std::forward<DeploymentControllerT>(value));
657 return *this;
658 }
660
662
681 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
682 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
683 template <typename TagsT = Aws::Vector<Tag>>
684 void SetTags(TagsT&& value) {
685 m_tagsHasBeenSet = true;
686 m_tags = std::forward<TagsT>(value);
687 }
688 template <typename TagsT = Aws::Vector<Tag>>
689 Service& WithTags(TagsT&& value) {
690 SetTags(std::forward<TagsT>(value));
691 return *this;
692 }
693 template <typename TagsT = Tag>
694 Service& AddTags(TagsT&& value) {
695 m_tagsHasBeenSet = true;
696 m_tags.emplace_back(std::forward<TagsT>(value));
697 return *this;
698 }
700
702
705 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
706 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
707 template <typename CreatedByT = Aws::String>
708 void SetCreatedBy(CreatedByT&& value) {
709 m_createdByHasBeenSet = true;
710 m_createdBy = std::forward<CreatedByT>(value);
711 }
712 template <typename CreatedByT = Aws::String>
713 Service& WithCreatedBy(CreatedByT&& value) {
714 SetCreatedBy(std::forward<CreatedByT>(value));
715 return *this;
716 }
718
720
727 inline bool GetEnableECSManagedTags() const { return m_enableECSManagedTags; }
728 inline bool EnableECSManagedTagsHasBeenSet() const { return m_enableECSManagedTagsHasBeenSet; }
729 inline void SetEnableECSManagedTags(bool value) {
730 m_enableECSManagedTagsHasBeenSet = true;
731 m_enableECSManagedTags = value;
732 }
733 inline Service& WithEnableECSManagedTags(bool value) {
735 return *this;
736 }
738
740
744 inline PropagateTags GetPropagateTags() const { return m_propagateTags; }
745 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
746 inline void SetPropagateTags(PropagateTags value) {
747 m_propagateTagsHasBeenSet = true;
748 m_propagateTags = value;
749 }
751 SetPropagateTags(value);
752 return *this;
753 }
755
757
762 inline bool GetEnableExecuteCommand() const { return m_enableExecuteCommand; }
763 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
764 inline void SetEnableExecuteCommand(bool value) {
765 m_enableExecuteCommandHasBeenSet = true;
766 m_enableExecuteCommand = value;
767 }
768 inline Service& WithEnableExecuteCommand(bool value) {
770 return *this;
771 }
773
775
790 inline AvailabilityZoneRebalancing GetAvailabilityZoneRebalancing() const { return m_availabilityZoneRebalancing; }
791 inline bool AvailabilityZoneRebalancingHasBeenSet() const { return m_availabilityZoneRebalancingHasBeenSet; }
793 m_availabilityZoneRebalancingHasBeenSet = true;
794 m_availabilityZoneRebalancing = value;
795 }
798 return *this;
799 }
801
803
808 inline ResourceManagementType GetResourceManagementType() const { return m_resourceManagementType; }
809 inline bool ResourceManagementTypeHasBeenSet() const { return m_resourceManagementTypeHasBeenSet; }
811 m_resourceManagementTypeHasBeenSet = true;
812 m_resourceManagementType = value;
813 }
816 return *this;
817 }
819 private:
820 Aws::String m_serviceArn;
821
822 Aws::String m_serviceName;
823
824 Aws::String m_clusterArn;
825
826 Aws::Vector<LoadBalancer> m_loadBalancers;
827
828 Aws::Vector<ServiceRegistry> m_serviceRegistries;
829
830 Aws::String m_status;
831
832 int m_desiredCount{0};
833
834 int m_runningCount{0};
835
836 int m_pendingCount{0};
837
838 LaunchType m_launchType{LaunchType::NOT_SET};
839
840 Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
841
842 Aws::String m_platformVersion;
843
844 Aws::String m_platformFamily;
845
846 Aws::String m_taskDefinition;
847
848 DeploymentConfiguration m_deploymentConfiguration;
849
850 Aws::Vector<TaskSet> m_taskSets;
851
852 Aws::Vector<Deployment> m_deployments;
853
854 Aws::String m_roleArn;
855
857
858 Aws::Utils::DateTime m_createdAt{};
859
860 Aws::String m_currentServiceDeployment;
861
862 Aws::Vector<ServiceCurrentRevisionSummary> m_currentServiceRevisions;
863
864 Aws::Vector<PlacementConstraint> m_placementConstraints;
865
866 Aws::Vector<PlacementStrategy> m_placementStrategy;
867
868 NetworkConfiguration m_networkConfiguration;
869
870 int m_healthCheckGracePeriodSeconds{0};
871
873
874 DeploymentController m_deploymentController;
875
876 Aws::Vector<Tag> m_tags;
877
878 Aws::String m_createdBy;
879
880 bool m_enableECSManagedTags{false};
881
882 PropagateTags m_propagateTags{PropagateTags::NOT_SET};
883
884 bool m_enableExecuteCommand{false};
885
887
889 bool m_serviceArnHasBeenSet = false;
890 bool m_serviceNameHasBeenSet = false;
891 bool m_clusterArnHasBeenSet = false;
892 bool m_loadBalancersHasBeenSet = false;
893 bool m_serviceRegistriesHasBeenSet = false;
894 bool m_statusHasBeenSet = false;
895 bool m_desiredCountHasBeenSet = false;
896 bool m_runningCountHasBeenSet = false;
897 bool m_pendingCountHasBeenSet = false;
898 bool m_launchTypeHasBeenSet = false;
899 bool m_capacityProviderStrategyHasBeenSet = false;
900 bool m_platformVersionHasBeenSet = false;
901 bool m_platformFamilyHasBeenSet = false;
902 bool m_taskDefinitionHasBeenSet = false;
903 bool m_deploymentConfigurationHasBeenSet = false;
904 bool m_taskSetsHasBeenSet = false;
905 bool m_deploymentsHasBeenSet = false;
906 bool m_roleArnHasBeenSet = false;
907 bool m_eventsHasBeenSet = false;
908 bool m_createdAtHasBeenSet = false;
909 bool m_currentServiceDeploymentHasBeenSet = false;
910 bool m_currentServiceRevisionsHasBeenSet = false;
911 bool m_placementConstraintsHasBeenSet = false;
912 bool m_placementStrategyHasBeenSet = false;
913 bool m_networkConfigurationHasBeenSet = false;
914 bool m_healthCheckGracePeriodSecondsHasBeenSet = false;
915 bool m_schedulingStrategyHasBeenSet = false;
916 bool m_deploymentControllerHasBeenSet = false;
917 bool m_tagsHasBeenSet = false;
918 bool m_createdByHasBeenSet = false;
919 bool m_enableECSManagedTagsHasBeenSet = false;
920 bool m_propagateTagsHasBeenSet = false;
921 bool m_enableExecuteCommandHasBeenSet = false;
922 bool m_availabilityZoneRebalancingHasBeenSet = false;
923 bool m_resourceManagementTypeHasBeenSet = false;
924};
925
926} // namespace Model
927} // namespace ECS
928} // namespace Aws
void SetRunningCount(int value)
Definition Service.h:214
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
Definition Service.h:148
const Aws::String & GetTaskDefinition() const
Definition Service.h:337
AWS_ECS_API Service()=default
bool DesiredCountHasBeenSet() const
Definition Service.h:196
void SetDeployments(DeploymentsT &&value)
Definition Service.h:404
bool RoleArnHasBeenSet() const
Definition Service.h:428
const DeploymentConfiguration & GetDeploymentConfiguration() const
Definition Service.h:356
bool DeploymentConfigurationHasBeenSet() const
Definition Service.h:357
void SetPropagateTags(PropagateTags value)
Definition Service.h:746
const Aws::Vector< ServiceCurrentRevisionSummary > & GetCurrentServiceRevisions() const
Definition Service.h:506
bool EventsHasBeenSet() const
Definition Service.h:447
bool DeploymentControllerHasBeenSet() const
Definition Service.h:648
Service & AddPlacementStrategy(PlacementStrategyT &&value)
Definition Service.h:568
Service & AddEvents(EventsT &&value)
Definition Service.h:459
void SetPlatformVersion(PlatformVersionT &&value)
Definition Service.h:297
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
Definition Service.h:121
Service & WithNetworkConfiguration(NetworkConfigurationT &&value)
Definition Service.h:589
void SetLoadBalancers(LoadBalancersT &&value)
Definition Service.h:124
const Aws::String & GetRoleArn() const
Definition Service.h:427
bool CurrentServiceDeploymentHasBeenSet() const
Definition Service.h:489
bool HealthCheckGracePeriodSecondsHasBeenSet() const
Definition Service.h:604
bool CurrentServiceRevisionsHasBeenSet() const
Definition Service.h:507
bool TaskSetsHasBeenSet() const
Definition Service.h:378
Service & WithStatus(StatusT &&value)
Definition Service.h:181
bool NetworkConfigurationHasBeenSet() const
Definition Service.h:582
void SetCreatedAt(CreatedAtT &&value)
Definition Service.h:473
Service & WithAvailabilityZoneRebalancing(AvailabilityZoneRebalancing value)
Definition Service.h:796
Service & AddServiceRegistries(ServiceRegistriesT &&value)
Definition Service.h:161
bool PlacementStrategyHasBeenSet() const
Definition Service.h:556
void SetStatus(StatusT &&value)
Definition Service.h:176
bool RunningCountHasBeenSet() const
Definition Service.h:213
const Aws::Vector< Tag > & GetTags() const
Definition Service.h:681
Service & WithClusterArn(ClusterArnT &&value)
Definition Service.h:108
Service & WithPendingCount(int value)
Definition Service.h:235
Service & WithCreatedAt(CreatedAtT &&value)
Definition Service.h:478
Service & AddTags(TagsT &&value)
Definition Service.h:694
Service & WithServiceRegistries(ServiceRegistriesT &&value)
Definition Service.h:156
const Aws::String & GetStatus() const
Definition Service.h:173
bool PlatformFamilyHasBeenSet() const
Definition Service.h:316
Service & AddDeployments(DeploymentsT &&value)
Definition Service.h:414
Service & WithPlatformVersion(PlatformVersionT &&value)
Definition Service.h:302
int GetDesiredCount() const
Definition Service.h:195
void SetTaskSets(TaskSetsT &&value)
Definition Service.h:380
Service & WithDesiredCount(int value)
Definition Service.h:201
const NetworkConfiguration & GetNetworkConfiguration() const
Definition Service.h:581
void SetServiceRegistries(ServiceRegistriesT &&value)
Definition Service.h:151
Service & WithLoadBalancers(LoadBalancersT &&value)
Definition Service.h:129
void SetRoleArn(RoleArnT &&value)
Definition Service.h:430
bool CreatedByHasBeenSet() const
Definition Service.h:706
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Service.h:470
Service & WithEnableExecuteCommand(bool value)
Definition Service.h:768
void SetEnableExecuteCommand(bool value)
Definition Service.h:764
Service & WithServiceName(ServiceNameT &&value)
Definition Service.h:90
AWS_ECS_API Service(Aws::Utils::Json::JsonView jsonValue)
bool LoadBalancersHasBeenSet() const
Definition Service.h:122
Service & WithDeployments(DeploymentsT &&value)
Definition Service.h:409
const Aws::String & GetCurrentServiceDeployment() const
Definition Service.h:488
Service & WithCurrentServiceRevisions(CurrentServiceRevisionsT &&value)
Definition Service.h:514
int GetPendingCount() const
Definition Service.h:229
void SetTags(TagsT &&value)
Definition Service.h:684
bool ServiceArnHasBeenSet() const
Definition Service.h:62
bool ServiceNameHasBeenSet() const
Definition Service.h:83
Service & WithEvents(EventsT &&value)
Definition Service.h:454
bool PropagateTagsHasBeenSet() const
Definition Service.h:745
int GetHealthCheckGracePeriodSeconds() const
Definition Service.h:603
bool PlatformVersionHasBeenSet() const
Definition Service.h:295
Service & WithResourceManagementType(ResourceManagementType value)
Definition Service.h:814
void SetServiceName(ServiceNameT &&value)
Definition Service.h:85
void SetResourceManagementType(ResourceManagementType value)
Definition Service.h:810
bool ClusterArnHasBeenSet() const
Definition Service.h:101
const Aws::Vector< TaskSet > & GetTaskSets() const
Definition Service.h:377
Service & WithRunningCount(int value)
Definition Service.h:218
void SetCapacityProviderStrategy(CapacityProviderStrategyT &&value)
Definition Service.h:268
void SetLaunchType(LaunchType value)
Definition Service.h:249
Service & WithLaunchType(LaunchType value)
Definition Service.h:253
Service & AddTaskSets(TaskSetsT &&value)
Definition Service.h:390
bool PlacementConstraintsHasBeenSet() const
Definition Service.h:531
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
Service & WithRoleArn(RoleArnT &&value)
Definition Service.h:435
Service & WithPlatformFamily(PlatformFamilyT &&value)
Definition Service.h:323
const Aws::String & GetPlatformFamily() const
Definition Service.h:315
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
Definition Service.h:530
Service & AddCurrentServiceRevisions(CurrentServiceRevisionsT &&value)
Definition Service.h:519
void SetEvents(EventsT &&value)
Definition Service.h:449
bool GetEnableECSManagedTags() const
Definition Service.h:727
const Aws::String & GetCreatedBy() const
Definition Service.h:705
bool TaskDefinitionHasBeenSet() const
Definition Service.h:338
Service & AddLoadBalancers(LoadBalancersT &&value)
Definition Service.h:134
void SetCurrentServiceRevisions(CurrentServiceRevisionsT &&value)
Definition Service.h:509
Service & WithTaskDefinition(TaskDefinitionT &&value)
Definition Service.h:345
void SetTaskDefinition(TaskDefinitionT &&value)
Definition Service.h:340
AWS_ECS_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPlatformVersion() const
Definition Service.h:294
ResourceManagementType GetResourceManagementType() const
Definition Service.h:808
bool PendingCountHasBeenSet() const
Definition Service.h:230
bool EnableECSManagedTagsHasBeenSet() const
Definition Service.h:728
bool GetEnableExecuteCommand() const
Definition Service.h:762
Service & WithDeploymentConfiguration(DeploymentConfigurationT &&value)
Definition Service.h:364
bool ServiceRegistriesHasBeenSet() const
Definition Service.h:149
Service & WithCapacityProviderStrategy(CapacityProviderStrategyT &&value)
Definition Service.h:273
Service & WithServiceArn(ServiceArnT &&value)
Definition Service.h:69
bool EnableExecuteCommandHasBeenSet() const
Definition Service.h:763
bool TagsHasBeenSet() const
Definition Service.h:682
Service & WithTaskSets(TaskSetsT &&value)
Definition Service.h:385
bool AvailabilityZoneRebalancingHasBeenSet() const
Definition Service.h:791
Service & WithCurrentServiceDeployment(CurrentServiceDeploymentT &&value)
Definition Service.h:496
bool ResourceManagementTypeHasBeenSet() const
Definition Service.h:809
void SetSchedulingStrategy(SchedulingStrategy value)
Definition Service.h:633
Service & WithHealthCheckGracePeriodSeconds(int value)
Definition Service.h:609
void SetPlacementConstraints(PlacementConstraintsT &&value)
Definition Service.h:533
const Aws::Vector< Deployment > & GetDeployments() const
Definition Service.h:401
Service & WithPropagateTags(PropagateTags value)
Definition Service.h:750
void SetPlatformFamily(PlatformFamilyT &&value)
Definition Service.h:318
Service & WithPlacementConstraints(PlacementConstraintsT &&value)
Definition Service.h:538
Service & WithSchedulingStrategy(SchedulingStrategy value)
Definition Service.h:637
bool CapacityProviderStrategyHasBeenSet() const
Definition Service.h:266
Service & AddPlacementConstraints(PlacementConstraintsT &&value)
Definition Service.h:543
Service & WithCreatedBy(CreatedByT &&value)
Definition Service.h:713
Service & WithPlacementStrategy(PlacementStrategyT &&value)
Definition Service.h:563
SchedulingStrategy GetSchedulingStrategy() const
Definition Service.h:631
bool CreatedAtHasBeenSet() const
Definition Service.h:471
const Aws::String & GetServiceArn() const
Definition Service.h:61
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
Definition Service.h:555
void SetServiceArn(ServiceArnT &&value)
Definition Service.h:64
PropagateTags GetPropagateTags() const
Definition Service.h:744
const DeploymentController & GetDeploymentController() const
Definition Service.h:647
LaunchType GetLaunchType() const
Definition Service.h:247
void SetClusterArn(ClusterArnT &&value)
Definition Service.h:103
void SetNetworkConfiguration(NetworkConfigurationT &&value)
Definition Service.h:584
void SetEnableECSManagedTags(bool value)
Definition Service.h:729
void SetDeploymentConfiguration(DeploymentConfigurationT &&value)
Definition Service.h:359
Service & WithTags(TagsT &&value)
Definition Service.h:689
void SetPendingCount(int value)
Definition Service.h:231
void SetHealthCheckGracePeriodSeconds(int value)
Definition Service.h:605
bool LaunchTypeHasBeenSet() const
Definition Service.h:248
Service & WithEnableECSManagedTags(bool value)
Definition Service.h:733
Service & WithDeploymentController(DeploymentControllerT &&value)
Definition Service.h:655
const Aws::Vector< ServiceEvent > & GetEvents() const
Definition Service.h:446
void SetAvailabilityZoneRebalancing(AvailabilityZoneRebalancing value)
Definition Service.h:792
AvailabilityZoneRebalancing GetAvailabilityZoneRebalancing() const
Definition Service.h:790
Service & AddCapacityProviderStrategy(CapacityProviderStrategyT &&value)
Definition Service.h:278
void SetCreatedBy(CreatedByT &&value)
Definition Service.h:708
int GetRunningCount() const
Definition Service.h:212
bool SchedulingStrategyHasBeenSet() const
Definition Service.h:632
void SetDeploymentController(DeploymentControllerT &&value)
Definition Service.h:650
void SetPlacementStrategy(PlacementStrategyT &&value)
Definition Service.h:558
void SetCurrentServiceDeployment(CurrentServiceDeploymentT &&value)
Definition Service.h:491
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
Definition Service.h:265
bool StatusHasBeenSet() const
Definition Service.h:174
void SetDesiredCount(int value)
Definition Service.h:197
const Aws::String & GetServiceName() const
Definition Service.h:82
const Aws::String & GetClusterArn() const
Definition Service.h:100
bool DeploymentsHasBeenSet() const
Definition Service.h:402
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue