AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EcsParameters.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/model/LaunchType.h>
10#include <aws/eventbridge/model/NetworkConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/eventbridge/model/PropagateTags.h>
13#include <aws/eventbridge/model/CapacityProviderStrategyItem.h>
14#include <aws/eventbridge/model/PlacementConstraint.h>
15#include <aws/eventbridge/model/PlacementStrategy.h>
16#include <aws/eventbridge/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 EventBridge
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_EVENTBRIDGE_API EcsParameters() = default;
44 AWS_EVENTBRIDGE_API EcsParameters(Aws::Utils::Json::JsonView jsonValue);
45 AWS_EVENTBRIDGE_API EcsParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_EVENTBRIDGE_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 template<typename TaskDefinitionArnT = Aws::String>
57 void SetTaskDefinitionArn(TaskDefinitionArnT&& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value); }
58 template<typename TaskDefinitionArnT = Aws::String>
59 EcsParameters& WithTaskDefinitionArn(TaskDefinitionArnT&& value) { SetTaskDefinitionArn(std::forward<TaskDefinitionArnT>(value)); return *this;}
61
63
67 inline int GetTaskCount() const { return m_taskCount; }
68 inline bool TaskCountHasBeenSet() const { return m_taskCountHasBeenSet; }
69 inline void SetTaskCount(int value) { m_taskCountHasBeenSet = true; m_taskCount = value; }
70 inline EcsParameters& WithTaskCount(int value) { SetTaskCount(value); return *this;}
72
74
83 inline LaunchType GetLaunchType() const { return m_launchType; }
84 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
85 inline void SetLaunchType(LaunchType value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
86 inline EcsParameters& WithLaunchType(LaunchType value) { SetLaunchType(value); return *this;}
88
90
99 inline const NetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
100 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
101 template<typename NetworkConfigurationT = NetworkConfiguration>
102 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
103 template<typename NetworkConfigurationT = NetworkConfiguration>
104 EcsParameters& WithNetworkConfiguration(NetworkConfigurationT&& value) { SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value)); return *this;}
106
108
117 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
118 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
119 template<typename PlatformVersionT = Aws::String>
120 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::forward<PlatformVersionT>(value); }
121 template<typename PlatformVersionT = Aws::String>
122 EcsParameters& WithPlatformVersion(PlatformVersionT&& value) { SetPlatformVersion(std::forward<PlatformVersionT>(value)); return *this;}
124
126
130 inline const Aws::String& GetGroup() const { return m_group; }
131 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
132 template<typename GroupT = Aws::String>
133 void SetGroup(GroupT&& value) { m_groupHasBeenSet = true; m_group = std::forward<GroupT>(value); }
134 template<typename GroupT = Aws::String>
135 EcsParameters& WithGroup(GroupT&& value) { SetGroup(std::forward<GroupT>(value)); return *this;}
137
139
146 inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const { return m_capacityProviderStrategy; }
147 inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
148 template<typename CapacityProviderStrategyT = Aws::Vector<CapacityProviderStrategyItem>>
149 void SetCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value); }
150 template<typename CapacityProviderStrategyT = Aws::Vector<CapacityProviderStrategyItem>>
151 EcsParameters& WithCapacityProviderStrategy(CapacityProviderStrategyT&& value) { SetCapacityProviderStrategy(std::forward<CapacityProviderStrategyT>(value)); return *this;}
152 template<typename CapacityProviderStrategyT = CapacityProviderStrategyItem>
153 EcsParameters& AddCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value)); return *this; }
155
157
164 inline bool GetEnableECSManagedTags() const { return m_enableECSManagedTags; }
165 inline bool EnableECSManagedTagsHasBeenSet() const { return m_enableECSManagedTagsHasBeenSet; }
166 inline void SetEnableECSManagedTags(bool value) { m_enableECSManagedTagsHasBeenSet = true; m_enableECSManagedTags = value; }
167 inline EcsParameters& WithEnableECSManagedTags(bool value) { SetEnableECSManagedTags(value); return *this;}
169
171
176 inline bool GetEnableExecuteCommand() const { return m_enableExecuteCommand; }
177 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
178 inline void SetEnableExecuteCommand(bool value) { m_enableExecuteCommandHasBeenSet = true; m_enableExecuteCommand = value; }
179 inline EcsParameters& WithEnableExecuteCommand(bool value) { SetEnableExecuteCommand(value); return *this;}
181
183
188 inline const Aws::Vector<PlacementConstraint>& GetPlacementConstraints() const { return m_placementConstraints; }
189 inline bool PlacementConstraintsHasBeenSet() const { return m_placementConstraintsHasBeenSet; }
190 template<typename PlacementConstraintsT = Aws::Vector<PlacementConstraint>>
191 void SetPlacementConstraints(PlacementConstraintsT&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = std::forward<PlacementConstraintsT>(value); }
192 template<typename PlacementConstraintsT = Aws::Vector<PlacementConstraint>>
193 EcsParameters& WithPlacementConstraints(PlacementConstraintsT&& value) { SetPlacementConstraints(std::forward<PlacementConstraintsT>(value)); return *this;}
194 template<typename PlacementConstraintsT = PlacementConstraint>
195 EcsParameters& AddPlacementConstraints(PlacementConstraintsT&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.emplace_back(std::forward<PlacementConstraintsT>(value)); return *this; }
197
199
203 inline const Aws::Vector<PlacementStrategy>& GetPlacementStrategy() const { return m_placementStrategy; }
204 inline bool PlacementStrategyHasBeenSet() const { return m_placementStrategyHasBeenSet; }
205 template<typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
206 void SetPlacementStrategy(PlacementStrategyT&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = std::forward<PlacementStrategyT>(value); }
207 template<typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
208 EcsParameters& WithPlacementStrategy(PlacementStrategyT&& value) { SetPlacementStrategy(std::forward<PlacementStrategyT>(value)); return *this;}
209 template<typename PlacementStrategyT = PlacementStrategy>
210 EcsParameters& AddPlacementStrategy(PlacementStrategyT&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.emplace_back(std::forward<PlacementStrategyT>(value)); return *this; }
212
214
220 inline PropagateTags GetPropagateTags() const { return m_propagateTags; }
221 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
222 inline void SetPropagateTags(PropagateTags value) { m_propagateTagsHasBeenSet = true; m_propagateTags = value; }
223 inline EcsParameters& WithPropagateTags(PropagateTags value) { SetPropagateTags(value); return *this;}
225
227
230 inline const Aws::String& GetReferenceId() const { return m_referenceId; }
231 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
232 template<typename ReferenceIdT = Aws::String>
233 void SetReferenceId(ReferenceIdT&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::forward<ReferenceIdT>(value); }
234 template<typename ReferenceIdT = Aws::String>
235 EcsParameters& WithReferenceId(ReferenceIdT&& value) { SetReferenceId(std::forward<ReferenceIdT>(value)); return *this;}
237
239
246 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
247 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
248 template<typename TagsT = Aws::Vector<Tag>>
249 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
250 template<typename TagsT = Aws::Vector<Tag>>
251 EcsParameters& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
252 template<typename TagsT = Tag>
253 EcsParameters& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
255 private:
256
257 Aws::String m_taskDefinitionArn;
258 bool m_taskDefinitionArnHasBeenSet = false;
259
260 int m_taskCount{0};
261 bool m_taskCountHasBeenSet = false;
262
263 LaunchType m_launchType{LaunchType::NOT_SET};
264 bool m_launchTypeHasBeenSet = false;
265
266 NetworkConfiguration m_networkConfiguration;
267 bool m_networkConfigurationHasBeenSet = false;
268
269 Aws::String m_platformVersion;
270 bool m_platformVersionHasBeenSet = false;
271
272 Aws::String m_group;
273 bool m_groupHasBeenSet = false;
274
275 Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
276 bool m_capacityProviderStrategyHasBeenSet = false;
277
278 bool m_enableECSManagedTags{false};
279 bool m_enableECSManagedTagsHasBeenSet = false;
280
281 bool m_enableExecuteCommand{false};
282 bool m_enableExecuteCommandHasBeenSet = false;
283
284 Aws::Vector<PlacementConstraint> m_placementConstraints;
285 bool m_placementConstraintsHasBeenSet = false;
286
287 Aws::Vector<PlacementStrategy> m_placementStrategy;
288 bool m_placementStrategyHasBeenSet = false;
289
290 PropagateTags m_propagateTags{PropagateTags::NOT_SET};
291 bool m_propagateTagsHasBeenSet = false;
292
293 Aws::String m_referenceId;
294 bool m_referenceIdHasBeenSet = false;
295
296 Aws::Vector<Tag> m_tags;
297 bool m_tagsHasBeenSet = false;
298 };
299
300} // namespace Model
301} // namespace EventBridge
302} // 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