AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/AvailabilityZoneRebalancing.h>
18#include <aws/ecs/model/LoadBalancer.h>
19#include <aws/ecs/model/ServiceRegistry.h>
20#include <aws/ecs/model/CapacityProviderStrategyItem.h>
21#include <aws/ecs/model/TaskSet.h>
22#include <aws/ecs/model/Deployment.h>
23#include <aws/ecs/model/ServiceEvent.h>
24#include <aws/ecs/model/PlacementConstraint.h>
25#include <aws/ecs/model/PlacementStrategy.h>
26#include <aws/ecs/model/Tag.h>
27#include <utility>
28
29namespace Aws
30{
31namespace Utils
32{
33namespace Json
34{
35 class JsonValue;
36 class JsonView;
37} // namespace Json
38} // namespace Utils
39namespace ECS
40{
41namespace Model
42{
43
49 class Service
50 {
51 public:
52 AWS_ECS_API Service() = default;
53 AWS_ECS_API Service(Aws::Utils::Json::JsonView jsonValue);
56
57
59
65 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
66 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
67 template<typename ServiceArnT = Aws::String>
68 void SetServiceArn(ServiceArnT&& value) { m_serviceArnHasBeenSet = true; m_serviceArn = std::forward<ServiceArnT>(value); }
69 template<typename ServiceArnT = Aws::String>
70 Service& WithServiceArn(ServiceArnT&& value) { SetServiceArn(std::forward<ServiceArnT>(value)); return *this;}
72
74
80 inline const Aws::String& GetServiceName() const { return m_serviceName; }
81 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
82 template<typename ServiceNameT = Aws::String>
83 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
84 template<typename ServiceNameT = Aws::String>
85 Service& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
87
89
92 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
93 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
94 template<typename ClusterArnT = Aws::String>
95 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
96 template<typename ClusterArnT = Aws::String>
97 Service& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
99
101
107 inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const { return m_loadBalancers; }
108 inline bool LoadBalancersHasBeenSet() const { return m_loadBalancersHasBeenSet; }
109 template<typename LoadBalancersT = Aws::Vector<LoadBalancer>>
110 void SetLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = std::forward<LoadBalancersT>(value); }
111 template<typename LoadBalancersT = Aws::Vector<LoadBalancer>>
112 Service& WithLoadBalancers(LoadBalancersT&& value) { SetLoadBalancers(std::forward<LoadBalancersT>(value)); return *this;}
113 template<typename LoadBalancersT = LoadBalancer>
114 Service& AddLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.emplace_back(std::forward<LoadBalancersT>(value)); return *this; }
116
118
124 inline const Aws::Vector<ServiceRegistry>& GetServiceRegistries() const { return m_serviceRegistries; }
125 inline bool ServiceRegistriesHasBeenSet() const { return m_serviceRegistriesHasBeenSet; }
126 template<typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
127 void SetServiceRegistries(ServiceRegistriesT&& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries = std::forward<ServiceRegistriesT>(value); }
128 template<typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
129 Service& WithServiceRegistries(ServiceRegistriesT&& value) { SetServiceRegistries(std::forward<ServiceRegistriesT>(value)); return *this;}
130 template<typename ServiceRegistriesT = ServiceRegistry>
131 Service& AddServiceRegistries(ServiceRegistriesT&& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries.emplace_back(std::forward<ServiceRegistriesT>(value)); return *this; }
133
135
139 inline const Aws::String& GetStatus() const { return m_status; }
140 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
141 template<typename StatusT = Aws::String>
142 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
143 template<typename StatusT = Aws::String>
144 Service& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
146
148
155 inline int GetDesiredCount() const { return m_desiredCount; }
156 inline bool DesiredCountHasBeenSet() const { return m_desiredCountHasBeenSet; }
157 inline void SetDesiredCount(int value) { m_desiredCountHasBeenSet = true; m_desiredCount = value; }
158 inline Service& WithDesiredCount(int value) { SetDesiredCount(value); return *this;}
160
162
166 inline int GetRunningCount() const { return m_runningCount; }
167 inline bool RunningCountHasBeenSet() const { return m_runningCountHasBeenSet; }
168 inline void SetRunningCount(int value) { m_runningCountHasBeenSet = true; m_runningCount = value; }
169 inline Service& WithRunningCount(int value) { SetRunningCount(value); return *this;}
171
173
177 inline int GetPendingCount() const { return m_pendingCount; }
178 inline bool PendingCountHasBeenSet() const { return m_pendingCountHasBeenSet; }
179 inline void SetPendingCount(int value) { m_pendingCountHasBeenSet = true; m_pendingCount = value; }
180 inline Service& WithPendingCount(int value) { SetPendingCount(value); return *this;}
182
184
189 inline LaunchType GetLaunchType() const { return m_launchType; }
190 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
191 inline void SetLaunchType(LaunchType value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
192 inline Service& WithLaunchType(LaunchType value) { SetLaunchType(value); return *this;}
194
196
201 inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const { return m_capacityProviderStrategy; }
202 inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
203 template<typename CapacityProviderStrategyT = Aws::Vector<CapacityProviderStrategyItem>>
204 void SetCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value); }
205 template<typename CapacityProviderStrategyT = Aws::Vector<CapacityProviderStrategyItem>>
206 Service& WithCapacityProviderStrategy(CapacityProviderStrategyT&& value) { SetCapacityProviderStrategy(std::forward<CapacityProviderStrategyT>(value)); return *this;}
207 template<typename CapacityProviderStrategyT = CapacityProviderStrategyItem>
208 Service& AddCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value)); return *this; }
210
212
220 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
221 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
222 template<typename PlatformVersionT = Aws::String>
223 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::forward<PlatformVersionT>(value); }
224 template<typename PlatformVersionT = Aws::String>
225 Service& WithPlatformVersion(PlatformVersionT&& value) { SetPlatformVersion(std::forward<PlatformVersionT>(value)); return *this;}
227
229
235 inline const Aws::String& GetPlatformFamily() const { return m_platformFamily; }
236 inline bool PlatformFamilyHasBeenSet() const { return m_platformFamilyHasBeenSet; }
237 template<typename PlatformFamilyT = Aws::String>
238 void SetPlatformFamily(PlatformFamilyT&& value) { m_platformFamilyHasBeenSet = true; m_platformFamily = std::forward<PlatformFamilyT>(value); }
239 template<typename PlatformFamilyT = Aws::String>
240 Service& WithPlatformFamily(PlatformFamilyT&& value) { SetPlatformFamily(std::forward<PlatformFamilyT>(value)); return *this;}
242
244
251 inline const Aws::String& GetTaskDefinition() const { return m_taskDefinition; }
252 inline bool TaskDefinitionHasBeenSet() const { return m_taskDefinitionHasBeenSet; }
253 template<typename TaskDefinitionT = Aws::String>
254 void SetTaskDefinition(TaskDefinitionT&& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = std::forward<TaskDefinitionT>(value); }
255 template<typename TaskDefinitionT = Aws::String>
256 Service& WithTaskDefinition(TaskDefinitionT&& value) { SetTaskDefinition(std::forward<TaskDefinitionT>(value)); return *this;}
258
260
264 inline const DeploymentConfiguration& GetDeploymentConfiguration() const { return m_deploymentConfiguration; }
265 inline bool DeploymentConfigurationHasBeenSet() const { return m_deploymentConfigurationHasBeenSet; }
266 template<typename DeploymentConfigurationT = DeploymentConfiguration>
267 void SetDeploymentConfiguration(DeploymentConfigurationT&& value) { m_deploymentConfigurationHasBeenSet = true; m_deploymentConfiguration = std::forward<DeploymentConfigurationT>(value); }
268 template<typename DeploymentConfigurationT = DeploymentConfiguration>
269 Service& WithDeploymentConfiguration(DeploymentConfigurationT&& value) { SetDeploymentConfiguration(std::forward<DeploymentConfigurationT>(value)); return *this;}
271
273
279 inline const Aws::Vector<TaskSet>& GetTaskSets() const { return m_taskSets; }
280 inline bool TaskSetsHasBeenSet() const { return m_taskSetsHasBeenSet; }
281 template<typename TaskSetsT = Aws::Vector<TaskSet>>
282 void SetTaskSets(TaskSetsT&& value) { m_taskSetsHasBeenSet = true; m_taskSets = std::forward<TaskSetsT>(value); }
283 template<typename TaskSetsT = Aws::Vector<TaskSet>>
284 Service& WithTaskSets(TaskSetsT&& value) { SetTaskSets(std::forward<TaskSetsT>(value)); return *this;}
285 template<typename TaskSetsT = TaskSet>
286 Service& AddTaskSets(TaskSetsT&& value) { m_taskSetsHasBeenSet = true; m_taskSets.emplace_back(std::forward<TaskSetsT>(value)); return *this; }
288
290
293 inline const Aws::Vector<Deployment>& GetDeployments() const { return m_deployments; }
294 inline bool DeploymentsHasBeenSet() const { return m_deploymentsHasBeenSet; }
295 template<typename DeploymentsT = Aws::Vector<Deployment>>
296 void SetDeployments(DeploymentsT&& value) { m_deploymentsHasBeenSet = true; m_deployments = std::forward<DeploymentsT>(value); }
297 template<typename DeploymentsT = Aws::Vector<Deployment>>
298 Service& WithDeployments(DeploymentsT&& value) { SetDeployments(std::forward<DeploymentsT>(value)); return *this;}
299 template<typename DeploymentsT = Deployment>
300 Service& AddDeployments(DeploymentsT&& value) { m_deploymentsHasBeenSet = true; m_deployments.emplace_back(std::forward<DeploymentsT>(value)); return *this; }
302
304
309 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
310 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
311 template<typename RoleArnT = Aws::String>
312 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
313 template<typename RoleArnT = Aws::String>
314 Service& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
316
318
322 inline const Aws::Vector<ServiceEvent>& GetEvents() const { return m_events; }
323 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
324 template<typename EventsT = Aws::Vector<ServiceEvent>>
325 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
326 template<typename EventsT = Aws::Vector<ServiceEvent>>
327 Service& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
328 template<typename EventsT = ServiceEvent>
329 Service& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
331
333
336 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
337 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
338 template<typename CreatedAtT = Aws::Utils::DateTime>
339 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
340 template<typename CreatedAtT = Aws::Utils::DateTime>
341 Service& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
343
345
348 inline const Aws::Vector<PlacementConstraint>& GetPlacementConstraints() const { return m_placementConstraints; }
349 inline bool PlacementConstraintsHasBeenSet() const { return m_placementConstraintsHasBeenSet; }
350 template<typename PlacementConstraintsT = Aws::Vector<PlacementConstraint>>
351 void SetPlacementConstraints(PlacementConstraintsT&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = std::forward<PlacementConstraintsT>(value); }
352 template<typename PlacementConstraintsT = Aws::Vector<PlacementConstraint>>
353 Service& WithPlacementConstraints(PlacementConstraintsT&& value) { SetPlacementConstraints(std::forward<PlacementConstraintsT>(value)); return *this;}
354 template<typename PlacementConstraintsT = PlacementConstraint>
355 Service& AddPlacementConstraints(PlacementConstraintsT&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.emplace_back(std::forward<PlacementConstraintsT>(value)); return *this; }
357
359
363 inline const Aws::Vector<PlacementStrategy>& GetPlacementStrategy() const { return m_placementStrategy; }
364 inline bool PlacementStrategyHasBeenSet() const { return m_placementStrategyHasBeenSet; }
365 template<typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
366 void SetPlacementStrategy(PlacementStrategyT&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = std::forward<PlacementStrategyT>(value); }
367 template<typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
368 Service& WithPlacementStrategy(PlacementStrategyT&& value) { SetPlacementStrategy(std::forward<PlacementStrategyT>(value)); return *this;}
369 template<typename PlacementStrategyT = PlacementStrategy>
370 Service& AddPlacementStrategy(PlacementStrategyT&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.emplace_back(std::forward<PlacementStrategyT>(value)); return *this; }
372
374
379 inline const NetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
380 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
381 template<typename NetworkConfigurationT = NetworkConfiguration>
382 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
383 template<typename NetworkConfigurationT = NetworkConfiguration>
384 Service& WithNetworkConfiguration(NetworkConfigurationT&& value) { SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value)); return *this;}
386
388
393 inline int GetHealthCheckGracePeriodSeconds() const { return m_healthCheckGracePeriodSeconds; }
394 inline bool HealthCheckGracePeriodSecondsHasBeenSet() const { return m_healthCheckGracePeriodSecondsHasBeenSet; }
395 inline void SetHealthCheckGracePeriodSeconds(int value) { m_healthCheckGracePeriodSecondsHasBeenSet = true; m_healthCheckGracePeriodSeconds = value; }
398
400
415 inline SchedulingStrategy GetSchedulingStrategy() const { return m_schedulingStrategy; }
416 inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; }
417 inline void SetSchedulingStrategy(SchedulingStrategy value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = value; }
420
422
425 inline const DeploymentController& GetDeploymentController() const { return m_deploymentController; }
426 inline bool DeploymentControllerHasBeenSet() const { return m_deploymentControllerHasBeenSet; }
427 template<typename DeploymentControllerT = DeploymentController>
428 void SetDeploymentController(DeploymentControllerT&& value) { m_deploymentControllerHasBeenSet = true; m_deploymentController = std::forward<DeploymentControllerT>(value); }
429 template<typename DeploymentControllerT = DeploymentController>
430 Service& WithDeploymentController(DeploymentControllerT&& value) { SetDeploymentController(std::forward<DeploymentControllerT>(value)); return *this;}
432
434
453 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
454 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
455 template<typename TagsT = Aws::Vector<Tag>>
456 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
457 template<typename TagsT = Aws::Vector<Tag>>
458 Service& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
459 template<typename TagsT = Tag>
460 Service& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
462
464
467 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
468 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
469 template<typename CreatedByT = Aws::String>
470 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
471 template<typename CreatedByT = Aws::String>
472 Service& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
474
476
483 inline bool GetEnableECSManagedTags() const { return m_enableECSManagedTags; }
484 inline bool EnableECSManagedTagsHasBeenSet() const { return m_enableECSManagedTagsHasBeenSet; }
485 inline void SetEnableECSManagedTags(bool value) { m_enableECSManagedTagsHasBeenSet = true; m_enableECSManagedTags = value; }
486 inline Service& WithEnableECSManagedTags(bool value) { SetEnableECSManagedTags(value); return *this;}
488
490
494 inline PropagateTags GetPropagateTags() const { return m_propagateTags; }
495 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
496 inline void SetPropagateTags(PropagateTags value) { m_propagateTagsHasBeenSet = true; m_propagateTags = value; }
497 inline Service& WithPropagateTags(PropagateTags value) { SetPropagateTags(value); return *this;}
499
501
506 inline bool GetEnableExecuteCommand() const { return m_enableExecuteCommand; }
507 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
508 inline void SetEnableExecuteCommand(bool value) { m_enableExecuteCommandHasBeenSet = true; m_enableExecuteCommand = value; }
509 inline Service& WithEnableExecuteCommand(bool value) { SetEnableExecuteCommand(value); return *this;}
511
513
520 inline AvailabilityZoneRebalancing GetAvailabilityZoneRebalancing() const { return m_availabilityZoneRebalancing; }
521 inline bool AvailabilityZoneRebalancingHasBeenSet() const { return m_availabilityZoneRebalancingHasBeenSet; }
522 inline void SetAvailabilityZoneRebalancing(AvailabilityZoneRebalancing value) { m_availabilityZoneRebalancingHasBeenSet = true; m_availabilityZoneRebalancing = value; }
525 private:
526
527 Aws::String m_serviceArn;
528 bool m_serviceArnHasBeenSet = false;
529
530 Aws::String m_serviceName;
531 bool m_serviceNameHasBeenSet = false;
532
533 Aws::String m_clusterArn;
534 bool m_clusterArnHasBeenSet = false;
535
536 Aws::Vector<LoadBalancer> m_loadBalancers;
537 bool m_loadBalancersHasBeenSet = false;
538
539 Aws::Vector<ServiceRegistry> m_serviceRegistries;
540 bool m_serviceRegistriesHasBeenSet = false;
541
542 Aws::String m_status;
543 bool m_statusHasBeenSet = false;
544
545 int m_desiredCount{0};
546 bool m_desiredCountHasBeenSet = false;
547
548 int m_runningCount{0};
549 bool m_runningCountHasBeenSet = false;
550
551 int m_pendingCount{0};
552 bool m_pendingCountHasBeenSet = false;
553
554 LaunchType m_launchType{LaunchType::NOT_SET};
555 bool m_launchTypeHasBeenSet = false;
556
557 Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
558 bool m_capacityProviderStrategyHasBeenSet = false;
559
560 Aws::String m_platformVersion;
561 bool m_platformVersionHasBeenSet = false;
562
563 Aws::String m_platformFamily;
564 bool m_platformFamilyHasBeenSet = false;
565
566 Aws::String m_taskDefinition;
567 bool m_taskDefinitionHasBeenSet = false;
568
569 DeploymentConfiguration m_deploymentConfiguration;
570 bool m_deploymentConfigurationHasBeenSet = false;
571
572 Aws::Vector<TaskSet> m_taskSets;
573 bool m_taskSetsHasBeenSet = false;
574
575 Aws::Vector<Deployment> m_deployments;
576 bool m_deploymentsHasBeenSet = false;
577
578 Aws::String m_roleArn;
579 bool m_roleArnHasBeenSet = false;
580
582 bool m_eventsHasBeenSet = false;
583
584 Aws::Utils::DateTime m_createdAt{};
585 bool m_createdAtHasBeenSet = false;
586
587 Aws::Vector<PlacementConstraint> m_placementConstraints;
588 bool m_placementConstraintsHasBeenSet = false;
589
590 Aws::Vector<PlacementStrategy> m_placementStrategy;
591 bool m_placementStrategyHasBeenSet = false;
592
593 NetworkConfiguration m_networkConfiguration;
594 bool m_networkConfigurationHasBeenSet = false;
595
596 int m_healthCheckGracePeriodSeconds{0};
597 bool m_healthCheckGracePeriodSecondsHasBeenSet = false;
598
600 bool m_schedulingStrategyHasBeenSet = false;
601
602 DeploymentController m_deploymentController;
603 bool m_deploymentControllerHasBeenSet = false;
604
605 Aws::Vector<Tag> m_tags;
606 bool m_tagsHasBeenSet = false;
607
608 Aws::String m_createdBy;
609 bool m_createdByHasBeenSet = false;
610
611 bool m_enableECSManagedTags{false};
612 bool m_enableECSManagedTagsHasBeenSet = false;
613
614 PropagateTags m_propagateTags{PropagateTags::NOT_SET};
615 bool m_propagateTagsHasBeenSet = false;
616
617 bool m_enableExecuteCommand{false};
618 bool m_enableExecuteCommandHasBeenSet = false;
619
621 bool m_availabilityZoneRebalancingHasBeenSet = false;
622 };
623
624} // namespace Model
625} // namespace ECS
626} // namespace Aws
void SetRunningCount(int value)
Definition Service.h:168
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
Definition Service.h:124
const Aws::String & GetTaskDefinition() const
Definition Service.h:251
AWS_ECS_API Service()=default
bool DesiredCountHasBeenSet() const
Definition Service.h:156
void SetDeployments(DeploymentsT &&value)
Definition Service.h:296
bool RoleArnHasBeenSet() const
Definition Service.h:310
const DeploymentConfiguration & GetDeploymentConfiguration() const
Definition Service.h:264
bool DeploymentConfigurationHasBeenSet() const
Definition Service.h:265
void SetPropagateTags(PropagateTags value)
Definition Service.h:496
bool EventsHasBeenSet() const
Definition Service.h:323
bool DeploymentControllerHasBeenSet() const
Definition Service.h:426
Service & AddPlacementStrategy(PlacementStrategyT &&value)
Definition Service.h:370
Service & AddEvents(EventsT &&value)
Definition Service.h:329
void SetPlatformVersion(PlatformVersionT &&value)
Definition Service.h:223
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
Definition Service.h:107
Service & WithNetworkConfiguration(NetworkConfigurationT &&value)
Definition Service.h:384
void SetLoadBalancers(LoadBalancersT &&value)
Definition Service.h:110
const Aws::String & GetRoleArn() const
Definition Service.h:309
bool HealthCheckGracePeriodSecondsHasBeenSet() const
Definition Service.h:394
bool TaskSetsHasBeenSet() const
Definition Service.h:280
Service & WithStatus(StatusT &&value)
Definition Service.h:144
bool NetworkConfigurationHasBeenSet() const
Definition Service.h:380
void SetCreatedAt(CreatedAtT &&value)
Definition Service.h:339
Service & WithAvailabilityZoneRebalancing(AvailabilityZoneRebalancing value)
Definition Service.h:523
Service & AddServiceRegistries(ServiceRegistriesT &&value)
Definition Service.h:131
bool PlacementStrategyHasBeenSet() const
Definition Service.h:364
void SetStatus(StatusT &&value)
Definition Service.h:142
bool RunningCountHasBeenSet() const
Definition Service.h:167
const Aws::Vector< Tag > & GetTags() const
Definition Service.h:453
Service & WithClusterArn(ClusterArnT &&value)
Definition Service.h:97
Service & WithPendingCount(int value)
Definition Service.h:180
Service & WithCreatedAt(CreatedAtT &&value)
Definition Service.h:341
Service & AddTags(TagsT &&value)
Definition Service.h:460
Service & WithServiceRegistries(ServiceRegistriesT &&value)
Definition Service.h:129
const Aws::String & GetStatus() const
Definition Service.h:139
bool PlatformFamilyHasBeenSet() const
Definition Service.h:236
Service & AddDeployments(DeploymentsT &&value)
Definition Service.h:300
Service & WithPlatformVersion(PlatformVersionT &&value)
Definition Service.h:225
int GetDesiredCount() const
Definition Service.h:155
void SetTaskSets(TaskSetsT &&value)
Definition Service.h:282
Service & WithDesiredCount(int value)
Definition Service.h:158
const NetworkConfiguration & GetNetworkConfiguration() const
Definition Service.h:379
void SetServiceRegistries(ServiceRegistriesT &&value)
Definition Service.h:127
Service & WithLoadBalancers(LoadBalancersT &&value)
Definition Service.h:112
void SetRoleArn(RoleArnT &&value)
Definition Service.h:312
bool CreatedByHasBeenSet() const
Definition Service.h:468
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Service.h:336
Service & WithEnableExecuteCommand(bool value)
Definition Service.h:509
void SetEnableExecuteCommand(bool value)
Definition Service.h:508
Service & WithServiceName(ServiceNameT &&value)
Definition Service.h:85
AWS_ECS_API Service(Aws::Utils::Json::JsonView jsonValue)
bool LoadBalancersHasBeenSet() const
Definition Service.h:108
Service & WithDeployments(DeploymentsT &&value)
Definition Service.h:298
int GetPendingCount() const
Definition Service.h:177
void SetTags(TagsT &&value)
Definition Service.h:456
bool ServiceArnHasBeenSet() const
Definition Service.h:66
bool ServiceNameHasBeenSet() const
Definition Service.h:81
Service & WithEvents(EventsT &&value)
Definition Service.h:327
bool PropagateTagsHasBeenSet() const
Definition Service.h:495
int GetHealthCheckGracePeriodSeconds() const
Definition Service.h:393
bool PlatformVersionHasBeenSet() const
Definition Service.h:221
void SetServiceName(ServiceNameT &&value)
Definition Service.h:83
bool ClusterArnHasBeenSet() const
Definition Service.h:93
const Aws::Vector< TaskSet > & GetTaskSets() const
Definition Service.h:279
Service & WithRunningCount(int value)
Definition Service.h:169
void SetCapacityProviderStrategy(CapacityProviderStrategyT &&value)
Definition Service.h:204
void SetLaunchType(LaunchType value)
Definition Service.h:191
Service & WithLaunchType(LaunchType value)
Definition Service.h:192
Service & AddTaskSets(TaskSetsT &&value)
Definition Service.h:286
bool PlacementConstraintsHasBeenSet() const
Definition Service.h:349
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
Service & WithRoleArn(RoleArnT &&value)
Definition Service.h:314
Service & WithPlatformFamily(PlatformFamilyT &&value)
Definition Service.h:240
const Aws::String & GetPlatformFamily() const
Definition Service.h:235
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
Definition Service.h:348
void SetEvents(EventsT &&value)
Definition Service.h:325
bool GetEnableECSManagedTags() const
Definition Service.h:483
const Aws::String & GetCreatedBy() const
Definition Service.h:467
bool TaskDefinitionHasBeenSet() const
Definition Service.h:252
Service & AddLoadBalancers(LoadBalancersT &&value)
Definition Service.h:114
Service & WithTaskDefinition(TaskDefinitionT &&value)
Definition Service.h:256
void SetTaskDefinition(TaskDefinitionT &&value)
Definition Service.h:254
AWS_ECS_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPlatformVersion() const
Definition Service.h:220
bool PendingCountHasBeenSet() const
Definition Service.h:178
bool EnableECSManagedTagsHasBeenSet() const
Definition Service.h:484
bool GetEnableExecuteCommand() const
Definition Service.h:506
Service & WithDeploymentConfiguration(DeploymentConfigurationT &&value)
Definition Service.h:269
bool ServiceRegistriesHasBeenSet() const
Definition Service.h:125
Service & WithCapacityProviderStrategy(CapacityProviderStrategyT &&value)
Definition Service.h:206
Service & WithServiceArn(ServiceArnT &&value)
Definition Service.h:70
bool EnableExecuteCommandHasBeenSet() const
Definition Service.h:507
bool TagsHasBeenSet() const
Definition Service.h:454
Service & WithTaskSets(TaskSetsT &&value)
Definition Service.h:284
bool AvailabilityZoneRebalancingHasBeenSet() const
Definition Service.h:521
void SetSchedulingStrategy(SchedulingStrategy value)
Definition Service.h:417
Service & WithHealthCheckGracePeriodSeconds(int value)
Definition Service.h:396
void SetPlacementConstraints(PlacementConstraintsT &&value)
Definition Service.h:351
const Aws::Vector< Deployment > & GetDeployments() const
Definition Service.h:293
Service & WithPropagateTags(PropagateTags value)
Definition Service.h:497
void SetPlatformFamily(PlatformFamilyT &&value)
Definition Service.h:238
Service & WithPlacementConstraints(PlacementConstraintsT &&value)
Definition Service.h:353
Service & WithSchedulingStrategy(SchedulingStrategy value)
Definition Service.h:418
bool CapacityProviderStrategyHasBeenSet() const
Definition Service.h:202
Service & AddPlacementConstraints(PlacementConstraintsT &&value)
Definition Service.h:355
Service & WithCreatedBy(CreatedByT &&value)
Definition Service.h:472
Service & WithPlacementStrategy(PlacementStrategyT &&value)
Definition Service.h:368
SchedulingStrategy GetSchedulingStrategy() const
Definition Service.h:415
bool CreatedAtHasBeenSet() const
Definition Service.h:337
const Aws::String & GetServiceArn() const
Definition Service.h:65
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
Definition Service.h:363
void SetServiceArn(ServiceArnT &&value)
Definition Service.h:68
PropagateTags GetPropagateTags() const
Definition Service.h:494
const DeploymentController & GetDeploymentController() const
Definition Service.h:425
LaunchType GetLaunchType() const
Definition Service.h:189
void SetClusterArn(ClusterArnT &&value)
Definition Service.h:95
void SetNetworkConfiguration(NetworkConfigurationT &&value)
Definition Service.h:382
void SetEnableECSManagedTags(bool value)
Definition Service.h:485
void SetDeploymentConfiguration(DeploymentConfigurationT &&value)
Definition Service.h:267
Service & WithTags(TagsT &&value)
Definition Service.h:458
void SetPendingCount(int value)
Definition Service.h:179
void SetHealthCheckGracePeriodSeconds(int value)
Definition Service.h:395
bool LaunchTypeHasBeenSet() const
Definition Service.h:190
Service & WithEnableECSManagedTags(bool value)
Definition Service.h:486
Service & WithDeploymentController(DeploymentControllerT &&value)
Definition Service.h:430
const Aws::Vector< ServiceEvent > & GetEvents() const
Definition Service.h:322
void SetAvailabilityZoneRebalancing(AvailabilityZoneRebalancing value)
Definition Service.h:522
AvailabilityZoneRebalancing GetAvailabilityZoneRebalancing() const
Definition Service.h:520
Service & AddCapacityProviderStrategy(CapacityProviderStrategyT &&value)
Definition Service.h:208
void SetCreatedBy(CreatedByT &&value)
Definition Service.h:470
int GetRunningCount() const
Definition Service.h:166
bool SchedulingStrategyHasBeenSet() const
Definition Service.h:416
void SetDeploymentController(DeploymentControllerT &&value)
Definition Service.h:428
void SetPlacementStrategy(PlacementStrategyT &&value)
Definition Service.h:366
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
Definition Service.h:201
bool StatusHasBeenSet() const
Definition Service.h:140
void SetDesiredCount(int value)
Definition Service.h:157
const Aws::String & GetServiceName() const
Definition Service.h:80
const Aws::String & GetClusterArn() const
Definition Service.h:92
bool DeploymentsHasBeenSet() const
Definition Service.h:294
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue