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/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/events/model/LaunchType.h>
10#include <aws/events/model/NetworkConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/events/model/PropagateTags.h>
13#include <aws/events/model/CapacityProviderStrategyItem.h>
14#include <aws/events/model/PlacementConstraint.h>
15#include <aws/events/model/PlacementStrategy.h>
16#include <aws/events/model/Tag.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 CloudWatchEvents
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_CLOUDWATCHEVENTS_API EcsParameters();
44 AWS_CLOUDWATCHEVENTS_API EcsParameters(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CLOUDWATCHEVENTS_API EcsParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline const Aws::String& GetTaskDefinitionArn() const{ return m_taskDefinitionArn; }
55 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
56 inline void SetTaskDefinitionArn(const Aws::String& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = value; }
57 inline void SetTaskDefinitionArn(Aws::String&& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::move(value); }
58 inline void SetTaskDefinitionArn(const char* value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn.assign(value); }
59 inline EcsParameters& WithTaskDefinitionArn(const Aws::String& value) { SetTaskDefinitionArn(value); return *this;}
60 inline EcsParameters& WithTaskDefinitionArn(Aws::String&& value) { SetTaskDefinitionArn(std::move(value)); return *this;}
61 inline EcsParameters& WithTaskDefinitionArn(const char* value) { SetTaskDefinitionArn(value); return *this;}
63
65
69 inline int GetTaskCount() const{ return m_taskCount; }
70 inline bool TaskCountHasBeenSet() const { return m_taskCountHasBeenSet; }
71 inline void SetTaskCount(int value) { m_taskCountHasBeenSet = true; m_taskCount = value; }
72 inline EcsParameters& WithTaskCount(int value) { SetTaskCount(value); return *this;}
74
76
85 inline const LaunchType& GetLaunchType() const{ return m_launchType; }
86 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
87 inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
88 inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
89 inline EcsParameters& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
90 inline EcsParameters& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
92
94
103 inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
104 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
105 inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
106 inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
108 inline EcsParameters& WithNetworkConfiguration(NetworkConfiguration&& value) { SetNetworkConfiguration(std::move(value)); return *this;}
110
112
121 inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
122 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
123 inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
124 inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
125 inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
126 inline EcsParameters& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
127 inline EcsParameters& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
128 inline EcsParameters& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
130
132
136 inline const Aws::String& GetGroup() const{ return m_group; }
137 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
138 inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
139 inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
140 inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
141 inline EcsParameters& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
142 inline EcsParameters& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
143 inline EcsParameters& WithGroup(const char* value) { SetGroup(value); return *this;}
145
147
154 inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const{ return m_capacityProviderStrategy; }
155 inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
156 inline void SetCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = value; }
157 inline void SetCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = std::move(value); }
160 inline EcsParameters& AddCapacityProviderStrategy(const CapacityProviderStrategyItem& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(value); return *this; }
161 inline EcsParameters& AddCapacityProviderStrategy(CapacityProviderStrategyItem&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(std::move(value)); return *this; }
163
165
172 inline bool GetEnableECSManagedTags() const{ return m_enableECSManagedTags; }
173 inline bool EnableECSManagedTagsHasBeenSet() const { return m_enableECSManagedTagsHasBeenSet; }
174 inline void SetEnableECSManagedTags(bool value) { m_enableECSManagedTagsHasBeenSet = true; m_enableECSManagedTags = value; }
175 inline EcsParameters& WithEnableECSManagedTags(bool value) { SetEnableECSManagedTags(value); return *this;}
177
179
184 inline bool GetEnableExecuteCommand() const{ return m_enableExecuteCommand; }
185 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
186 inline void SetEnableExecuteCommand(bool value) { m_enableExecuteCommandHasBeenSet = true; m_enableExecuteCommand = value; }
187 inline EcsParameters& WithEnableExecuteCommand(bool value) { SetEnableExecuteCommand(value); return *this;}
189
191
196 inline const Aws::Vector<PlacementConstraint>& GetPlacementConstraints() const{ return m_placementConstraints; }
197 inline bool PlacementConstraintsHasBeenSet() const { return m_placementConstraintsHasBeenSet; }
198 inline void SetPlacementConstraints(const Aws::Vector<PlacementConstraint>& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = value; }
199 inline void SetPlacementConstraints(Aws::Vector<PlacementConstraint>&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = std::move(value); }
202 inline EcsParameters& AddPlacementConstraints(const PlacementConstraint& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(value); return *this; }
203 inline EcsParameters& AddPlacementConstraints(PlacementConstraint&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(std::move(value)); return *this; }
205
207
211 inline const Aws::Vector<PlacementStrategy>& GetPlacementStrategy() const{ return m_placementStrategy; }
212 inline bool PlacementStrategyHasBeenSet() const { return m_placementStrategyHasBeenSet; }
213 inline void SetPlacementStrategy(const Aws::Vector<PlacementStrategy>& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = value; }
214 inline void SetPlacementStrategy(Aws::Vector<PlacementStrategy>&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = std::move(value); }
217 inline EcsParameters& AddPlacementStrategy(const PlacementStrategy& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.push_back(value); return *this; }
218 inline EcsParameters& AddPlacementStrategy(PlacementStrategy&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.push_back(std::move(value)); return *this; }
220
222
228 inline const PropagateTags& GetPropagateTags() const{ return m_propagateTags; }
229 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
230 inline void SetPropagateTags(const PropagateTags& value) { m_propagateTagsHasBeenSet = true; m_propagateTags = value; }
231 inline void SetPropagateTags(PropagateTags&& value) { m_propagateTagsHasBeenSet = true; m_propagateTags = std::move(value); }
232 inline EcsParameters& WithPropagateTags(const PropagateTags& value) { SetPropagateTags(value); return *this;}
233 inline EcsParameters& WithPropagateTags(PropagateTags&& value) { SetPropagateTags(std::move(value)); return *this;}
235
237
240 inline const Aws::String& GetReferenceId() const{ return m_referenceId; }
241 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
242 inline void SetReferenceId(const Aws::String& value) { m_referenceIdHasBeenSet = true; m_referenceId = value; }
243 inline void SetReferenceId(Aws::String&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::move(value); }
244 inline void SetReferenceId(const char* value) { m_referenceIdHasBeenSet = true; m_referenceId.assign(value); }
245 inline EcsParameters& WithReferenceId(const Aws::String& value) { SetReferenceId(value); return *this;}
246 inline EcsParameters& WithReferenceId(Aws::String&& value) { SetReferenceId(std::move(value)); return *this;}
247 inline EcsParameters& WithReferenceId(const char* value) { SetReferenceId(value); return *this;}
249
251
258 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
259 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
260 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
261 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
262 inline EcsParameters& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
263 inline EcsParameters& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
264 inline EcsParameters& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
265 inline EcsParameters& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
267 private:
268
269 Aws::String m_taskDefinitionArn;
270 bool m_taskDefinitionArnHasBeenSet = false;
271
272 int m_taskCount;
273 bool m_taskCountHasBeenSet = false;
274
275 LaunchType m_launchType;
276 bool m_launchTypeHasBeenSet = false;
277
278 NetworkConfiguration m_networkConfiguration;
279 bool m_networkConfigurationHasBeenSet = false;
280
281 Aws::String m_platformVersion;
282 bool m_platformVersionHasBeenSet = false;
283
284 Aws::String m_group;
285 bool m_groupHasBeenSet = false;
286
287 Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
288 bool m_capacityProviderStrategyHasBeenSet = false;
289
290 bool m_enableECSManagedTags;
291 bool m_enableECSManagedTagsHasBeenSet = false;
292
293 bool m_enableExecuteCommand;
294 bool m_enableExecuteCommandHasBeenSet = false;
295
296 Aws::Vector<PlacementConstraint> m_placementConstraints;
297 bool m_placementConstraintsHasBeenSet = false;
298
299 Aws::Vector<PlacementStrategy> m_placementStrategy;
300 bool m_placementStrategyHasBeenSet = false;
301
302 PropagateTags m_propagateTags;
303 bool m_propagateTagsHasBeenSet = false;
304
305 Aws::String m_referenceId;
306 bool m_referenceIdHasBeenSet = false;
307
308 Aws::Vector<Tag> m_tags;
309 bool m_tagsHasBeenSet = false;
310 };
311
312} // namespace Model
313} // namespace CloudWatchEvents
314} // namespace Aws
void SetTaskDefinitionArn(const Aws::String &value)
EcsParameters & WithLaunchType(const LaunchType &value)
void SetPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
EcsParameters & WithLaunchType(LaunchType &&value)
EcsParameters & WithTaskDefinitionArn(const Aws::String &value)
void SetPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
AWS_CLOUDWATCHEVENTS_API EcsParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNetworkConfiguration(NetworkConfiguration &&value)
EcsParameters & AddPlacementConstraints(PlacementConstraint &&value)
EcsParameters & WithPropagateTags(const PropagateTags &value)
AWS_CLOUDWATCHEVENTS_API EcsParameters(Aws::Utils::Json::JsonView jsonValue)
void SetCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
EcsParameters & AddTags(const Tag &value)
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
EcsParameters & WithPlatformVersion(Aws::String &&value)
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTags(Aws::Vector< Tag > &&value)
void SetGroup(const Aws::String &value)
EcsParameters & WithGroup(Aws::String &&value)
void SetNetworkConfiguration(const NetworkConfiguration &value)
void SetCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
const PropagateTags & GetPropagateTags() const
EcsParameters & AddPlacementStrategy(PlacementStrategy &&value)
AWS_CLOUDWATCHEVENTS_API EcsParameters()
EcsParameters & AddPlacementStrategy(const PlacementStrategy &value)
EcsParameters & WithTaskDefinitionArn(Aws::String &&value)
const Aws::String & GetTaskDefinitionArn() const
EcsParameters & WithPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
void SetPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
void SetTaskDefinitionArn(Aws::String &&value)
EcsParameters & WithPlatformVersion(const char *value)
EcsParameters & AddCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
void SetTags(const Aws::Vector< Tag > &value)
EcsParameters & WithEnableExecuteCommand(bool value)
const NetworkConfiguration & GetNetworkConfiguration() const
void SetPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
void SetLaunchType(const LaunchType &value)
void SetPropagateTags(PropagateTags &&value)
void SetReferenceId(const Aws::String &value)
EcsParameters & WithGroup(const char *value)
void SetPlatformVersion(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
const LaunchType & GetLaunchType() const
EcsParameters & WithReferenceId(const char *value)
EcsParameters & WithTaskDefinitionArn(const char *value)
EcsParameters & WithTaskCount(int value)
EcsParameters & WithGroup(const Aws::String &value)
EcsParameters & WithTags(Aws::Vector< Tag > &&value)
EcsParameters & WithPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
EcsParameters & WithTags(const Aws::Vector< Tag > &value)
EcsParameters & WithCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
EcsParameters & WithCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
EcsParameters & WithNetworkConfiguration(const NetworkConfiguration &value)
void SetPlatformVersion(Aws::String &&value)
EcsParameters & WithReferenceId(Aws::String &&value)
const Aws::String & GetPlatformVersion() const
EcsParameters & WithPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
EcsParameters & AddPlacementConstraints(const PlacementConstraint &value)
EcsParameters & WithReferenceId(const Aws::String &value)
EcsParameters & WithNetworkConfiguration(NetworkConfiguration &&value)
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
const Aws::String & GetReferenceId() const
void SetPropagateTags(const PropagateTags &value)
EcsParameters & AddCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
EcsParameters & WithPropagateTags(PropagateTags &&value)
EcsParameters & WithPlatformVersion(const Aws::String &value)
EcsParameters & WithEnableECSManagedTags(bool value)
EcsParameters & WithPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue