AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EcsParameters.h
1
6#pragma once
7#include <aws/scheduler/Scheduler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/scheduler/model/LaunchType.h>
11#include <aws/scheduler/model/NetworkConfiguration.h>
12#include <aws/scheduler/model/PropagateTags.h>
13#include <aws/scheduler/model/CapacityProviderStrategyItem.h>
14#include <aws/scheduler/model/PlacementConstraint.h>
15#include <aws/scheduler/model/PlacementStrategy.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
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:
44 AWS_SCHEDULER_API EcsParameters();
45 AWS_SCHEDULER_API EcsParameters(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SCHEDULER_API EcsParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const{ return m_capacityProviderStrategy; }
55 inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
56 inline void SetCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = value; }
57 inline void SetCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = std::move(value); }
60 inline EcsParameters& AddCapacityProviderStrategy(const CapacityProviderStrategyItem& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(value); return *this; }
61 inline EcsParameters& AddCapacityProviderStrategy(CapacityProviderStrategyItem&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(std::move(value)); return *this; }
63
65
71 inline bool GetEnableECSManagedTags() const{ return m_enableECSManagedTags; }
72 inline bool EnableECSManagedTagsHasBeenSet() const { return m_enableECSManagedTagsHasBeenSet; }
73 inline void SetEnableECSManagedTags(bool value) { m_enableECSManagedTagsHasBeenSet = true; m_enableECSManagedTags = value; }
74 inline EcsParameters& WithEnableECSManagedTags(bool value) { SetEnableECSManagedTags(value); return *this;}
76
78
83 inline bool GetEnableExecuteCommand() const{ return m_enableExecuteCommand; }
84 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
85 inline void SetEnableExecuteCommand(bool value) { m_enableExecuteCommandHasBeenSet = true; m_enableExecuteCommand = value; }
86 inline EcsParameters& WithEnableExecuteCommand(bool value) { SetEnableExecuteCommand(value); return *this;}
88
90
94 inline const Aws::String& GetGroup() const{ return m_group; }
95 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
96 inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
97 inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
98 inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
99 inline EcsParameters& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
100 inline EcsParameters& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
101 inline EcsParameters& WithGroup(const char* value) { SetGroup(value); return *this;}
103
105
113 inline const LaunchType& GetLaunchType() const{ return m_launchType; }
114 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
115 inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
116 inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
117 inline EcsParameters& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
118 inline EcsParameters& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
120
122
125 inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
126 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
127 inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
128 inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
130 inline EcsParameters& WithNetworkConfiguration(NetworkConfiguration&& value) { SetNetworkConfiguration(std::move(value)); return *this;}
132
134
139 inline const Aws::Vector<PlacementConstraint>& GetPlacementConstraints() const{ return m_placementConstraints; }
140 inline bool PlacementConstraintsHasBeenSet() const { return m_placementConstraintsHasBeenSet; }
141 inline void SetPlacementConstraints(const Aws::Vector<PlacementConstraint>& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = value; }
142 inline void SetPlacementConstraints(Aws::Vector<PlacementConstraint>&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = std::move(value); }
145 inline EcsParameters& AddPlacementConstraints(const PlacementConstraint& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(value); return *this; }
146 inline EcsParameters& AddPlacementConstraints(PlacementConstraint&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(std::move(value)); return *this; }
148
150
153 inline const Aws::Vector<PlacementStrategy>& GetPlacementStrategy() const{ return m_placementStrategy; }
154 inline bool PlacementStrategyHasBeenSet() const { return m_placementStrategyHasBeenSet; }
155 inline void SetPlacementStrategy(const Aws::Vector<PlacementStrategy>& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = value; }
156 inline void SetPlacementStrategy(Aws::Vector<PlacementStrategy>&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = std::move(value); }
159 inline EcsParameters& AddPlacementStrategy(const PlacementStrategy& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.push_back(value); return *this; }
160 inline EcsParameters& AddPlacementStrategy(PlacementStrategy&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.push_back(std::move(value)); return *this; }
162
164
168 inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
169 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
170 inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
171 inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
172 inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
173 inline EcsParameters& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
174 inline EcsParameters& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
175 inline EcsParameters& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
177
179
187 inline const PropagateTags& GetPropagateTags() const{ return m_propagateTags; }
188 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
189 inline void SetPropagateTags(const PropagateTags& value) { m_propagateTagsHasBeenSet = true; m_propagateTags = value; }
190 inline void SetPropagateTags(PropagateTags&& value) { m_propagateTagsHasBeenSet = true; m_propagateTags = std::move(value); }
191 inline EcsParameters& WithPropagateTags(const PropagateTags& value) { SetPropagateTags(value); return *this;}
192 inline EcsParameters& WithPropagateTags(PropagateTags&& value) { SetPropagateTags(std::move(value)); return *this;}
194
196
199 inline const Aws::String& GetReferenceId() const{ return m_referenceId; }
200 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
201 inline void SetReferenceId(const Aws::String& value) { m_referenceIdHasBeenSet = true; m_referenceId = value; }
202 inline void SetReferenceId(Aws::String&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::move(value); }
203 inline void SetReferenceId(const char* value) { m_referenceIdHasBeenSet = true; m_referenceId.assign(value); }
204 inline EcsParameters& WithReferenceId(const Aws::String& value) { SetReferenceId(value); return *this;}
205 inline EcsParameters& WithReferenceId(Aws::String&& value) { SetReferenceId(std::move(value)); return *this;}
206 inline EcsParameters& WithReferenceId(const char* value) { SetReferenceId(value); return *this;}
208
210
217 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetTags() const{ return m_tags; }
218 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
219 inline void SetTags(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { m_tagsHasBeenSet = true; m_tags = value; }
220 inline void SetTags(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
221 inline EcsParameters& WithTags(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { SetTags(value); return *this;}
222 inline EcsParameters& WithTags(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { SetTags(std::move(value)); return *this;}
223 inline EcsParameters& AddTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
224 inline EcsParameters& AddTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
226
228
232 inline int GetTaskCount() const{ return m_taskCount; }
233 inline bool TaskCountHasBeenSet() const { return m_taskCountHasBeenSet; }
234 inline void SetTaskCount(int value) { m_taskCountHasBeenSet = true; m_taskCount = value; }
235 inline EcsParameters& WithTaskCount(int value) { SetTaskCount(value); return *this;}
237
239
243 inline const Aws::String& GetTaskDefinitionArn() const{ return m_taskDefinitionArn; }
244 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
245 inline void SetTaskDefinitionArn(const Aws::String& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = value; }
246 inline void SetTaskDefinitionArn(Aws::String&& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::move(value); }
247 inline void SetTaskDefinitionArn(const char* value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn.assign(value); }
248 inline EcsParameters& WithTaskDefinitionArn(const Aws::String& value) { SetTaskDefinitionArn(value); return *this;}
249 inline EcsParameters& WithTaskDefinitionArn(Aws::String&& value) { SetTaskDefinitionArn(std::move(value)); return *this;}
250 inline EcsParameters& WithTaskDefinitionArn(const char* value) { SetTaskDefinitionArn(value); return *this;}
252 private:
253
254 Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
255 bool m_capacityProviderStrategyHasBeenSet = false;
256
257 bool m_enableECSManagedTags;
258 bool m_enableECSManagedTagsHasBeenSet = false;
259
260 bool m_enableExecuteCommand;
261 bool m_enableExecuteCommandHasBeenSet = false;
262
263 Aws::String m_group;
264 bool m_groupHasBeenSet = false;
265
266 LaunchType m_launchType;
267 bool m_launchTypeHasBeenSet = false;
268
269 NetworkConfiguration m_networkConfiguration;
270 bool m_networkConfigurationHasBeenSet = false;
271
272 Aws::Vector<PlacementConstraint> m_placementConstraints;
273 bool m_placementConstraintsHasBeenSet = false;
274
275 Aws::Vector<PlacementStrategy> m_placementStrategy;
276 bool m_placementStrategyHasBeenSet = false;
277
278 Aws::String m_platformVersion;
279 bool m_platformVersionHasBeenSet = false;
280
281 PropagateTags m_propagateTags;
282 bool m_propagateTagsHasBeenSet = false;
283
284 Aws::String m_referenceId;
285 bool m_referenceIdHasBeenSet = false;
286
288 bool m_tagsHasBeenSet = false;
289
290 int m_taskCount;
291 bool m_taskCountHasBeenSet = false;
292
293 Aws::String m_taskDefinitionArn;
294 bool m_taskDefinitionArnHasBeenSet = false;
295 };
296
297} // namespace Model
298} // namespace Scheduler
299} // namespace Aws
EcsParameters & WithPropagateTags(PropagateTags &&value)
EcsParameters & WithGroup(Aws::String &&value)
void SetCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
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
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)
const LaunchType & GetLaunchType() const
void SetCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
EcsParameters & WithCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
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)
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)
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
Aws::Utils::Json::JsonValue JsonValue