AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
EcsParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/CapacityProviderStrategyItem.h>
11#include <aws/eventbridge/model/LaunchType.h>
12#include <aws/eventbridge/model/NetworkConfiguration.h>
13#include <aws/eventbridge/model/PlacementConstraint.h>
14#include <aws/eventbridge/model/PlacementStrategy.h>
15#include <aws/eventbridge/model/PropagateTags.h>
16#include <aws/eventbridge/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace EventBridge {
28namespace Model {
29
37 public:
38 AWS_EVENTBRIDGE_API EcsParameters() = default;
39 AWS_EVENTBRIDGE_API EcsParameters(Aws::Utils::Json::JsonView jsonValue);
40 AWS_EVENTBRIDGE_API EcsParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
48 inline const Aws::String& GetTaskDefinitionArn() const { return m_taskDefinitionArn; }
49 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
50 template <typename TaskDefinitionArnT = Aws::String>
51 void SetTaskDefinitionArn(TaskDefinitionArnT&& value) {
52 m_taskDefinitionArnHasBeenSet = true;
53 m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value);
54 }
55 template <typename TaskDefinitionArnT = Aws::String>
56 EcsParameters& WithTaskDefinitionArn(TaskDefinitionArnT&& value) {
57 SetTaskDefinitionArn(std::forward<TaskDefinitionArnT>(value));
58 return *this;
59 }
61
63
67 inline int GetTaskCount() const { return m_taskCount; }
68 inline bool TaskCountHasBeenSet() const { return m_taskCountHasBeenSet; }
69 inline void SetTaskCount(int value) {
70 m_taskCountHasBeenSet = true;
71 m_taskCount = value;
72 }
73 inline EcsParameters& WithTaskCount(int value) {
74 SetTaskCount(value);
75 return *this;
76 }
78
80
89 inline LaunchType GetLaunchType() const { return m_launchType; }
90 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
91 inline void SetLaunchType(LaunchType value) {
92 m_launchTypeHasBeenSet = true;
93 m_launchType = value;
94 }
96 SetLaunchType(value);
97 return *this;
98 }
100
102
111 inline const NetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
112 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
113 template <typename NetworkConfigurationT = NetworkConfiguration>
114 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
115 m_networkConfigurationHasBeenSet = true;
116 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
117 }
118 template <typename NetworkConfigurationT = NetworkConfiguration>
119 EcsParameters& WithNetworkConfiguration(NetworkConfigurationT&& value) {
120 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
121 return *this;
122 }
124
126
135 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
136 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
137 template <typename PlatformVersionT = Aws::String>
138 void SetPlatformVersion(PlatformVersionT&& value) {
139 m_platformVersionHasBeenSet = true;
140 m_platformVersion = std::forward<PlatformVersionT>(value);
141 }
142 template <typename PlatformVersionT = Aws::String>
143 EcsParameters& WithPlatformVersion(PlatformVersionT&& value) {
144 SetPlatformVersion(std::forward<PlatformVersionT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::String& GetGroup() const { return m_group; }
155 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
156 template <typename GroupT = Aws::String>
157 void SetGroup(GroupT&& value) {
158 m_groupHasBeenSet = true;
159 m_group = std::forward<GroupT>(value);
160 }
161 template <typename GroupT = Aws::String>
162 EcsParameters& WithGroup(GroupT&& value) {
163 SetGroup(std::forward<GroupT>(value));
164 return *this;
165 }
167
169
176 inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const { return m_capacityProviderStrategy; }
177 inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
178 template <typename CapacityProviderStrategyT = Aws::Vector<CapacityProviderStrategyItem>>
179 void SetCapacityProviderStrategy(CapacityProviderStrategyT&& value) {
180 m_capacityProviderStrategyHasBeenSet = true;
181 m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value);
182 }
183 template <typename CapacityProviderStrategyT = Aws::Vector<CapacityProviderStrategyItem>>
184 EcsParameters& WithCapacityProviderStrategy(CapacityProviderStrategyT&& value) {
185 SetCapacityProviderStrategy(std::forward<CapacityProviderStrategyT>(value));
186 return *this;
187 }
188 template <typename CapacityProviderStrategyT = CapacityProviderStrategyItem>
189 EcsParameters& AddCapacityProviderStrategy(CapacityProviderStrategyT&& value) {
190 m_capacityProviderStrategyHasBeenSet = true;
191 m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value));
192 return *this;
193 }
195
197
204 inline bool GetEnableECSManagedTags() const { return m_enableECSManagedTags; }
205 inline bool EnableECSManagedTagsHasBeenSet() const { return m_enableECSManagedTagsHasBeenSet; }
206 inline void SetEnableECSManagedTags(bool value) {
207 m_enableECSManagedTagsHasBeenSet = true;
208 m_enableECSManagedTags = value;
209 }
212 return *this;
213 }
215
217
222 inline bool GetEnableExecuteCommand() const { return m_enableExecuteCommand; }
223 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
224 inline void SetEnableExecuteCommand(bool value) {
225 m_enableExecuteCommandHasBeenSet = true;
226 m_enableExecuteCommand = value;
227 }
230 return *this;
231 }
233
235
240 inline const Aws::Vector<PlacementConstraint>& GetPlacementConstraints() const { return m_placementConstraints; }
241 inline bool PlacementConstraintsHasBeenSet() const { return m_placementConstraintsHasBeenSet; }
242 template <typename PlacementConstraintsT = Aws::Vector<PlacementConstraint>>
243 void SetPlacementConstraints(PlacementConstraintsT&& value) {
244 m_placementConstraintsHasBeenSet = true;
245 m_placementConstraints = std::forward<PlacementConstraintsT>(value);
246 }
247 template <typename PlacementConstraintsT = Aws::Vector<PlacementConstraint>>
248 EcsParameters& WithPlacementConstraints(PlacementConstraintsT&& value) {
249 SetPlacementConstraints(std::forward<PlacementConstraintsT>(value));
250 return *this;
251 }
252 template <typename PlacementConstraintsT = PlacementConstraint>
253 EcsParameters& AddPlacementConstraints(PlacementConstraintsT&& value) {
254 m_placementConstraintsHasBeenSet = true;
255 m_placementConstraints.emplace_back(std::forward<PlacementConstraintsT>(value));
256 return *this;
257 }
259
261
265 inline const Aws::Vector<PlacementStrategy>& GetPlacementStrategy() const { return m_placementStrategy; }
266 inline bool PlacementStrategyHasBeenSet() const { return m_placementStrategyHasBeenSet; }
267 template <typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
268 void SetPlacementStrategy(PlacementStrategyT&& value) {
269 m_placementStrategyHasBeenSet = true;
270 m_placementStrategy = std::forward<PlacementStrategyT>(value);
271 }
272 template <typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
273 EcsParameters& WithPlacementStrategy(PlacementStrategyT&& value) {
274 SetPlacementStrategy(std::forward<PlacementStrategyT>(value));
275 return *this;
276 }
277 template <typename PlacementStrategyT = PlacementStrategy>
278 EcsParameters& AddPlacementStrategy(PlacementStrategyT&& value) {
279 m_placementStrategyHasBeenSet = true;
280 m_placementStrategy.emplace_back(std::forward<PlacementStrategyT>(value));
281 return *this;
282 }
284
286
292 inline PropagateTags GetPropagateTags() const { return m_propagateTags; }
293 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
294 inline void SetPropagateTags(PropagateTags value) {
295 m_propagateTagsHasBeenSet = true;
296 m_propagateTags = value;
297 }
299 SetPropagateTags(value);
300 return *this;
301 }
303
305
308 inline const Aws::String& GetReferenceId() const { return m_referenceId; }
309 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
310 template <typename ReferenceIdT = Aws::String>
311 void SetReferenceId(ReferenceIdT&& value) {
312 m_referenceIdHasBeenSet = true;
313 m_referenceId = std::forward<ReferenceIdT>(value);
314 }
315 template <typename ReferenceIdT = Aws::String>
316 EcsParameters& WithReferenceId(ReferenceIdT&& value) {
317 SetReferenceId(std::forward<ReferenceIdT>(value));
318 return *this;
319 }
321
323
330 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
331 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
332 template <typename TagsT = Aws::Vector<Tag>>
333 void SetTags(TagsT&& value) {
334 m_tagsHasBeenSet = true;
335 m_tags = std::forward<TagsT>(value);
336 }
337 template <typename TagsT = Aws::Vector<Tag>>
338 EcsParameters& WithTags(TagsT&& value) {
339 SetTags(std::forward<TagsT>(value));
340 return *this;
341 }
342 template <typename TagsT = Tag>
343 EcsParameters& AddTags(TagsT&& value) {
344 m_tagsHasBeenSet = true;
345 m_tags.emplace_back(std::forward<TagsT>(value));
346 return *this;
347 }
349 private:
350 Aws::String m_taskDefinitionArn;
351
352 int m_taskCount{0};
353
354 LaunchType m_launchType{LaunchType::NOT_SET};
355
356 NetworkConfiguration m_networkConfiguration;
357
358 Aws::String m_platformVersion;
359
360 Aws::String m_group;
361
362 Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
363
364 bool m_enableECSManagedTags{false};
365
366 bool m_enableExecuteCommand{false};
367
368 Aws::Vector<PlacementConstraint> m_placementConstraints;
369
370 Aws::Vector<PlacementStrategy> m_placementStrategy;
371
372 PropagateTags m_propagateTags{PropagateTags::NOT_SET};
373
374 Aws::String m_referenceId;
375
376 Aws::Vector<Tag> m_tags;
377 bool m_taskDefinitionArnHasBeenSet = false;
378 bool m_taskCountHasBeenSet = false;
379 bool m_launchTypeHasBeenSet = false;
380 bool m_networkConfigurationHasBeenSet = false;
381 bool m_platformVersionHasBeenSet = false;
382 bool m_groupHasBeenSet = false;
383 bool m_capacityProviderStrategyHasBeenSet = false;
384 bool m_enableECSManagedTagsHasBeenSet = false;
385 bool m_enableExecuteCommandHasBeenSet = false;
386 bool m_placementConstraintsHasBeenSet = false;
387 bool m_placementStrategyHasBeenSet = false;
388 bool m_propagateTagsHasBeenSet = false;
389 bool m_referenceIdHasBeenSet = false;
390 bool m_tagsHasBeenSet = false;
391};
392
393} // namespace Model
394} // namespace EventBridge
395} // namespace Aws
EcsParameters & WithPlacementStrategy(PlacementStrategyT &&value)
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
AWS_EVENTBRIDGE_API EcsParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
EcsParameters & WithPlatformVersion(PlatformVersionT &&value)
EcsParameters & WithPlacementConstraints(PlacementConstraintsT &&value)
EcsParameters & WithEnableExecuteCommand(bool value)
EcsParameters & AddPlacementConstraints(PlacementConstraintsT &&value)
const Aws::String & GetTaskDefinitionArn() const
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
void SetReferenceId(ReferenceIdT &&value)
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
void SetPropagateTags(PropagateTags value)
const Aws::String & GetPlatformVersion() const
const Aws::Vector< Tag > & GetTags() const
EcsParameters & WithTaskCount(int value)
void SetPlacementConstraints(PlacementConstraintsT &&value)
EcsParameters & WithTags(TagsT &&value)
EcsParameters & WithGroup(GroupT &&value)
void SetPlatformVersion(PlatformVersionT &&value)
EcsParameters & WithNetworkConfiguration(NetworkConfigurationT &&value)
EcsParameters & AddPlacementStrategy(PlacementStrategyT &&value)
void SetTaskDefinitionArn(TaskDefinitionArnT &&value)
void SetNetworkConfiguration(NetworkConfigurationT &&value)
EcsParameters & WithLaunchType(LaunchType value)
EcsParameters & WithEnableECSManagedTags(bool value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
EcsParameters & WithTaskDefinitionArn(TaskDefinitionArnT &&value)
EcsParameters & WithPropagateTags(PropagateTags value)
EcsParameters & AddCapacityProviderStrategy(CapacityProviderStrategyT &&value)
void SetPlacementStrategy(PlacementStrategyT &&value)
EcsParameters & WithCapacityProviderStrategy(CapacityProviderStrategyT &&value)
const Aws::String & GetGroup() const
const NetworkConfiguration & GetNetworkConfiguration() const
void SetCapacityProviderStrategy(CapacityProviderStrategyT &&value)
const Aws::String & GetReferenceId() const
EcsParameters & WithReferenceId(ReferenceIdT &&value)
AWS_EVENTBRIDGE_API EcsParameters(Aws::Utils::Json::JsonView jsonValue)
EcsParameters & AddTags(TagsT &&value)
AWS_EVENTBRIDGE_API EcsParameters()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue