AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
EcsParameters.h
Go to the documentation of this file.
1
6#pragma once
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Scheduler
30{
31namespace Model
32{
33
42 {
43 public:
48
49
53 inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const{ return m_capacityProviderStrategy; }
54
58 inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
59
63 inline void SetCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = value; }
64
68 inline void SetCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = std::move(value); }
69
74
79
83 inline EcsParameters& AddCapacityProviderStrategy(const CapacityProviderStrategyItem& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(value); return *this; }
84
88 inline EcsParameters& AddCapacityProviderStrategy(CapacityProviderStrategyItem&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(std::move(value)); return *this; }
89
90
97 inline bool GetEnableECSManagedTags() const{ return m_enableECSManagedTags; }
98
105 inline bool EnableECSManagedTagsHasBeenSet() const { return m_enableECSManagedTagsHasBeenSet; }
106
113 inline void SetEnableECSManagedTags(bool value) { m_enableECSManagedTagsHasBeenSet = true; m_enableECSManagedTags = value; }
114
121 inline EcsParameters& WithEnableECSManagedTags(bool value) { SetEnableECSManagedTags(value); return *this;}
122
123
129 inline bool GetEnableExecuteCommand() const{ return m_enableExecuteCommand; }
130
136 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
137
143 inline void SetEnableExecuteCommand(bool value) { m_enableExecuteCommandHasBeenSet = true; m_enableExecuteCommand = value; }
144
150 inline EcsParameters& WithEnableExecuteCommand(bool value) { SetEnableExecuteCommand(value); return *this;}
151
152
157 inline const Aws::String& GetGroup() const{ return m_group; }
158
163 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
164
169 inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
170
175 inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
176
181 inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
182
187 inline EcsParameters& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
188
193 inline EcsParameters& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
194
199 inline EcsParameters& WithGroup(const char* value) { SetGroup(value); return *this;}
200
201
210 inline const LaunchType& GetLaunchType() const{ return m_launchType; }
211
220 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
221
230 inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
231
240 inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
241
250 inline EcsParameters& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
251
260 inline EcsParameters& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
261
262
266 inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
267
271 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
272
276 inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
277
281 inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
282
287
291 inline EcsParameters& WithNetworkConfiguration(NetworkConfiguration&& value) { SetNetworkConfiguration(std::move(value)); return *this;}
292
293
299 inline const Aws::Vector<PlacementConstraint>& GetPlacementConstraints() const{ return m_placementConstraints; }
300
306 inline bool PlacementConstraintsHasBeenSet() const { return m_placementConstraintsHasBeenSet; }
307
313 inline void SetPlacementConstraints(const Aws::Vector<PlacementConstraint>& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = value; }
314
320 inline void SetPlacementConstraints(Aws::Vector<PlacementConstraint>&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = std::move(value); }
321
328
335
341 inline EcsParameters& AddPlacementConstraints(const PlacementConstraint& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(value); return *this; }
342
348 inline EcsParameters& AddPlacementConstraints(PlacementConstraint&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(std::move(value)); return *this; }
349
350
354 inline const Aws::Vector<PlacementStrategy>& GetPlacementStrategy() const{ return m_placementStrategy; }
355
359 inline bool PlacementStrategyHasBeenSet() const { return m_placementStrategyHasBeenSet; }
360
364 inline void SetPlacementStrategy(const Aws::Vector<PlacementStrategy>& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = value; }
365
369 inline void SetPlacementStrategy(Aws::Vector<PlacementStrategy>&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = std::move(value); }
370
375
380
384 inline EcsParameters& AddPlacementStrategy(const PlacementStrategy& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.push_back(value); return *this; }
385
389 inline EcsParameters& AddPlacementStrategy(PlacementStrategy&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.push_back(std::move(value)); return *this; }
390
391
396 inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
397
402 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
403
408 inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
409
414 inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
415
420 inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
421
426 inline EcsParameters& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
427
432 inline EcsParameters& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
433
438 inline EcsParameters& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
439
440
449 inline const PropagateTags& GetPropagateTags() const{ return m_propagateTags; }
450
459 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
460
469 inline void SetPropagateTags(const PropagateTags& value) { m_propagateTagsHasBeenSet = true; m_propagateTags = value; }
470
479 inline void SetPropagateTags(PropagateTags&& value) { m_propagateTagsHasBeenSet = true; m_propagateTags = std::move(value); }
480
489 inline EcsParameters& WithPropagateTags(const PropagateTags& value) { SetPropagateTags(value); return *this;}
490
499 inline EcsParameters& WithPropagateTags(PropagateTags&& value) { SetPropagateTags(std::move(value)); return *this;}
500
501
505 inline const Aws::String& GetReferenceId() const{ return m_referenceId; }
506
510 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
511
515 inline void SetReferenceId(const Aws::String& value) { m_referenceIdHasBeenSet = true; m_referenceId = value; }
516
520 inline void SetReferenceId(Aws::String&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::move(value); }
521
525 inline void SetReferenceId(const char* value) { m_referenceIdHasBeenSet = true; m_referenceId.assign(value); }
526
530 inline EcsParameters& WithReferenceId(const Aws::String& value) { SetReferenceId(value); return *this;}
531
535 inline EcsParameters& WithReferenceId(Aws::String&& value) { SetReferenceId(std::move(value)); return *this;}
536
540 inline EcsParameters& WithReferenceId(const char* value) { SetReferenceId(value); return *this;}
541
542
550 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetTags() const{ return m_tags; }
551
559 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
560
568 inline void SetTags(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { m_tagsHasBeenSet = true; m_tags = value; }
569
577 inline void SetTags(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
578
586 inline EcsParameters& WithTags(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { SetTags(value); return *this;}
587
595 inline EcsParameters& WithTags(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { SetTags(std::move(value)); return *this;}
596
604 inline EcsParameters& AddTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
605
613 inline EcsParameters& AddTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
614
615
620 inline int GetTaskCount() const{ return m_taskCount; }
621
626 inline bool TaskCountHasBeenSet() const { return m_taskCountHasBeenSet; }
627
632 inline void SetTaskCount(int value) { m_taskCountHasBeenSet = true; m_taskCount = value; }
633
638 inline EcsParameters& WithTaskCount(int value) { SetTaskCount(value); return *this;}
639
640
645 inline const Aws::String& GetTaskDefinitionArn() const{ return m_taskDefinitionArn; }
646
651 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
652
657 inline void SetTaskDefinitionArn(const Aws::String& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = value; }
658
663 inline void SetTaskDefinitionArn(Aws::String&& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::move(value); }
664
669 inline void SetTaskDefinitionArn(const char* value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn.assign(value); }
670
675 inline EcsParameters& WithTaskDefinitionArn(const Aws::String& value) { SetTaskDefinitionArn(value); return *this;}
676
681 inline EcsParameters& WithTaskDefinitionArn(Aws::String&& value) { SetTaskDefinitionArn(std::move(value)); return *this;}
682
687 inline EcsParameters& WithTaskDefinitionArn(const char* value) { SetTaskDefinitionArn(value); return *this;}
688
689 private:
690
691 Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
692 bool m_capacityProviderStrategyHasBeenSet = false;
693
694 bool m_enableECSManagedTags;
695 bool m_enableECSManagedTagsHasBeenSet = false;
696
697 bool m_enableExecuteCommand;
698 bool m_enableExecuteCommandHasBeenSet = false;
699
700 Aws::String m_group;
701 bool m_groupHasBeenSet = false;
702
703 LaunchType m_launchType;
704 bool m_launchTypeHasBeenSet = false;
705
706 NetworkConfiguration m_networkConfiguration;
707 bool m_networkConfigurationHasBeenSet = false;
708
709 Aws::Vector<PlacementConstraint> m_placementConstraints;
710 bool m_placementConstraintsHasBeenSet = false;
711
712 Aws::Vector<PlacementStrategy> m_placementStrategy;
713 bool m_placementStrategyHasBeenSet = false;
714
715 Aws::String m_platformVersion;
716 bool m_platformVersionHasBeenSet = false;
717
718 PropagateTags m_propagateTags;
719 bool m_propagateTagsHasBeenSet = false;
720
721 Aws::String m_referenceId;
722 bool m_referenceIdHasBeenSet = false;
723
725 bool m_tagsHasBeenSet = false;
726
727 int m_taskCount;
728 bool m_taskCountHasBeenSet = false;
729
730 Aws::String m_taskDefinitionArn;
731 bool m_taskDefinitionArnHasBeenSet = false;
732 };
733
734} // namespace Model
735} // namespace Scheduler
736} // namespace Aws
#define AWS_SCHEDULER_API
EcsParameters & WithPropagateTags(PropagateTags &&value)
EcsParameters & WithGroup(Aws::String &&value)
void SetCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
Definition: EcsParameters.h:63
EcsParameters & WithGroup(const char *value)
void SetGroup(const Aws::String &value)
AWS_SCHEDULER_API EcsParameters(Aws::Utils::Json::JsonView jsonValue)
void SetGroup(const char *value)
EcsParameters & AddPlacementStrategy(const PlacementStrategy &value)
EcsParameters & WithEnableExecuteCommand(bool value)
EcsParameters & WithGroup(const Aws::String &value)
void SetPlatformVersion(const char *value)
void SetPropagateTags(const PropagateTags &value)
EcsParameters & WithPlatformVersion(const char *value)
EcsParameters & WithTags(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
void SetReferenceId(const char *value)
EcsParameters & WithTaskDefinitionArn(const char *value)
EcsParameters & WithReferenceId(const char *value)
EcsParameters & WithPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
EcsParameters & WithPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
void SetPlatformVersion(Aws::String &&value)
void SetTaskDefinitionArn(const Aws::String &value)
EcsParameters & WithNetworkConfiguration(const NetworkConfiguration &value)
void SetPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
void SetTags(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
EcsParameters & WithLaunchType(LaunchType &&value)
EcsParameters & WithNetworkConfiguration(NetworkConfiguration &&value)
void SetLaunchType(LaunchType &&value)
EcsParameters & AddPlacementStrategy(PlacementStrategy &&value)
void SetPlatformVersion(const Aws::String &value)
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
Definition: EcsParameters.h:53
EcsParameters & WithPropagateTags(const PropagateTags &value)
EcsParameters & WithPlatformVersion(const Aws::String &value)
const Aws::String & GetTaskDefinitionArn() const
void SetPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
const PropagateTags & GetPropagateTags() const
const Aws::String & GetGroup() const
EcsParameters & WithReferenceId(Aws::String &&value)
EcsParameters & AddCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
Definition: EcsParameters.h:83
const LaunchType & GetLaunchType() const
void SetCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
Definition: EcsParameters.h:68
EcsParameters & WithCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
Definition: EcsParameters.h:73
EcsParameters & WithTaskDefinitionArn(const Aws::String &value)
EcsParameters & WithLaunchType(const LaunchType &value)
EcsParameters & AddPlacementConstraints(const PlacementConstraint &value)
EcsParameters & AddTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetNetworkConfiguration(const NetworkConfiguration &value)
void SetNetworkConfiguration(NetworkConfiguration &&value)
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReferenceId(Aws::String &&value)
EcsParameters & WithTaskDefinitionArn(Aws::String &&value)
EcsParameters & WithPlatformVersion(Aws::String &&value)
void SetPropagateTags(PropagateTags &&value)
const Aws::String & GetReferenceId() const
void SetPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
EcsParameters & AddTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
const Aws::String & GetPlatformVersion() const
void SetPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
EcsParameters & WithEnableECSManagedTags(bool value)
const NetworkConfiguration & GetNetworkConfiguration() const
void SetTaskDefinitionArn(Aws::String &&value)
AWS_SCHEDULER_API EcsParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
EcsParameters & WithTaskCount(int value)
EcsParameters & WithPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
EcsParameters & WithCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
Definition: EcsParameters.h:78
EcsParameters & WithPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
EcsParameters & WithTags(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
void SetLaunchType(const LaunchType &value)
EcsParameters & AddPlacementConstraints(PlacementConstraint &&value)
void SetTaskDefinitionArn(const char *value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetTags() const
EcsParameters & WithReferenceId(const Aws::String &value)
void SetGroup(Aws::String &&value)
EcsParameters & AddCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
Definition: EcsParameters.h:88
void SetReferenceId(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector