AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PipeTargetEcsTaskParameters.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pipes/model/LaunchType.h>
10#include <aws/pipes/model/NetworkConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/pipes/model/PropagateTags.h>
13#include <aws/pipes/model/EcsTaskOverride.h>
14#include <aws/pipes/model/CapacityProviderStrategyItem.h>
15#include <aws/pipes/model/PlacementConstraint.h>
16#include <aws/pipes/model/PlacementStrategy.h>
17#include <aws/pipes/model/Tag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Pipes
31{
32namespace Model
33{
34
42 {
43 public:
47 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::String& GetTaskDefinitionArn() const{ return m_taskDefinitionArn; }
56 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
57 inline void SetTaskDefinitionArn(const Aws::String& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = value; }
58 inline void SetTaskDefinitionArn(Aws::String&& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::move(value); }
59 inline void SetTaskDefinitionArn(const char* value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn.assign(value); }
61 inline PipeTargetEcsTaskParameters& WithTaskDefinitionArn(Aws::String&& value) { SetTaskDefinitionArn(std::move(value)); return *this;}
62 inline PipeTargetEcsTaskParameters& WithTaskDefinitionArn(const char* value) { SetTaskDefinitionArn(value); return *this;}
64
66
70 inline int GetTaskCount() const{ return m_taskCount; }
71 inline bool TaskCountHasBeenSet() const { return m_taskCountHasBeenSet; }
72 inline void SetTaskCount(int value) { m_taskCountHasBeenSet = true; m_taskCount = value; }
73 inline PipeTargetEcsTaskParameters& WithTaskCount(int value) { SetTaskCount(value); return *this;}
75
77
86 inline const LaunchType& GetLaunchType() const{ return m_launchType; }
87 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
88 inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
89 inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
90 inline PipeTargetEcsTaskParameters& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
91 inline PipeTargetEcsTaskParameters& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
93
95
104 inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
105 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
106 inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
107 inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
111
113
122 inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
123 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
124 inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
125 inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
126 inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
128 inline PipeTargetEcsTaskParameters& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
129 inline PipeTargetEcsTaskParameters& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
131
133
137 inline const Aws::String& GetGroup() const{ return m_group; }
138 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
139 inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
140 inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
141 inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
142 inline PipeTargetEcsTaskParameters& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
143 inline PipeTargetEcsTaskParameters& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
144 inline PipeTargetEcsTaskParameters& WithGroup(const char* value) { SetGroup(value); return *this;}
146
148
155 inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const{ return m_capacityProviderStrategy; }
156 inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
157 inline void SetCapacityProviderStrategy(const Aws::Vector<CapacityProviderStrategyItem>& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = value; }
158 inline void SetCapacityProviderStrategy(Aws::Vector<CapacityProviderStrategyItem>&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = std::move(value); }
161 inline PipeTargetEcsTaskParameters& AddCapacityProviderStrategy(const CapacityProviderStrategyItem& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(value); return *this; }
162 inline PipeTargetEcsTaskParameters& AddCapacityProviderStrategy(CapacityProviderStrategyItem&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.push_back(std::move(value)); return *this; }
164
166
173 inline bool GetEnableECSManagedTags() const{ return m_enableECSManagedTags; }
174 inline bool EnableECSManagedTagsHasBeenSet() const { return m_enableECSManagedTagsHasBeenSet; }
175 inline void SetEnableECSManagedTags(bool value) { m_enableECSManagedTagsHasBeenSet = true; m_enableECSManagedTags = value; }
178
180
185 inline bool GetEnableExecuteCommand() const{ return m_enableExecuteCommand; }
186 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
187 inline void SetEnableExecuteCommand(bool value) { m_enableExecuteCommandHasBeenSet = true; m_enableExecuteCommand = value; }
190
192
197 inline const Aws::Vector<PlacementConstraint>& GetPlacementConstraints() const{ return m_placementConstraints; }
198 inline bool PlacementConstraintsHasBeenSet() const { return m_placementConstraintsHasBeenSet; }
199 inline void SetPlacementConstraints(const Aws::Vector<PlacementConstraint>& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = value; }
200 inline void SetPlacementConstraints(Aws::Vector<PlacementConstraint>&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints = std::move(value); }
203 inline PipeTargetEcsTaskParameters& AddPlacementConstraints(const PlacementConstraint& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(value); return *this; }
204 inline PipeTargetEcsTaskParameters& AddPlacementConstraints(PlacementConstraint&& value) { m_placementConstraintsHasBeenSet = true; m_placementConstraints.push_back(std::move(value)); return *this; }
206
208
212 inline const Aws::Vector<PlacementStrategy>& GetPlacementStrategy() const{ return m_placementStrategy; }
213 inline bool PlacementStrategyHasBeenSet() const { return m_placementStrategyHasBeenSet; }
214 inline void SetPlacementStrategy(const Aws::Vector<PlacementStrategy>& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = value; }
215 inline void SetPlacementStrategy(Aws::Vector<PlacementStrategy>&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = std::move(value); }
218 inline PipeTargetEcsTaskParameters& AddPlacementStrategy(const PlacementStrategy& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.push_back(value); return *this; }
219 inline PipeTargetEcsTaskParameters& AddPlacementStrategy(PlacementStrategy&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy.push_back(std::move(value)); return *this; }
221
223
229 inline const PropagateTags& GetPropagateTags() const{ return m_propagateTags; }
230 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
231 inline void SetPropagateTags(const PropagateTags& value) { m_propagateTagsHasBeenSet = true; m_propagateTags = value; }
232 inline void SetPropagateTags(PropagateTags&& value) { m_propagateTagsHasBeenSet = true; m_propagateTags = std::move(value); }
234 inline PipeTargetEcsTaskParameters& WithPropagateTags(PropagateTags&& value) { SetPropagateTags(std::move(value)); return *this;}
236
238
241 inline const Aws::String& GetReferenceId() const{ return m_referenceId; }
242 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
243 inline void SetReferenceId(const Aws::String& value) { m_referenceIdHasBeenSet = true; m_referenceId = value; }
244 inline void SetReferenceId(Aws::String&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::move(value); }
245 inline void SetReferenceId(const char* value) { m_referenceIdHasBeenSet = true; m_referenceId.assign(value); }
246 inline PipeTargetEcsTaskParameters& WithReferenceId(const Aws::String& value) { SetReferenceId(value); return *this;}
247 inline PipeTargetEcsTaskParameters& WithReferenceId(Aws::String&& value) { SetReferenceId(std::move(value)); return *this;}
248 inline PipeTargetEcsTaskParameters& WithReferenceId(const char* value) { SetReferenceId(value); return *this;}
250
252
255 inline const EcsTaskOverride& GetOverrides() const{ return m_overrides; }
256 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
257 inline void SetOverrides(const EcsTaskOverride& value) { m_overridesHasBeenSet = true; m_overrides = value; }
258 inline void SetOverrides(EcsTaskOverride&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); }
259 inline PipeTargetEcsTaskParameters& WithOverrides(const EcsTaskOverride& value) { SetOverrides(value); return *this;}
260 inline PipeTargetEcsTaskParameters& WithOverrides(EcsTaskOverride&& value) { SetOverrides(std::move(value)); return *this;}
262
264
271 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
272 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
273 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
274 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
275 inline PipeTargetEcsTaskParameters& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
276 inline PipeTargetEcsTaskParameters& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
277 inline PipeTargetEcsTaskParameters& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
278 inline PipeTargetEcsTaskParameters& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
280 private:
281
282 Aws::String m_taskDefinitionArn;
283 bool m_taskDefinitionArnHasBeenSet = false;
284
285 int m_taskCount;
286 bool m_taskCountHasBeenSet = false;
287
288 LaunchType m_launchType;
289 bool m_launchTypeHasBeenSet = false;
290
291 NetworkConfiguration m_networkConfiguration;
292 bool m_networkConfigurationHasBeenSet = false;
293
294 Aws::String m_platformVersion;
295 bool m_platformVersionHasBeenSet = false;
296
297 Aws::String m_group;
298 bool m_groupHasBeenSet = false;
299
300 Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
301 bool m_capacityProviderStrategyHasBeenSet = false;
302
303 bool m_enableECSManagedTags;
304 bool m_enableECSManagedTagsHasBeenSet = false;
305
306 bool m_enableExecuteCommand;
307 bool m_enableExecuteCommandHasBeenSet = false;
308
309 Aws::Vector<PlacementConstraint> m_placementConstraints;
310 bool m_placementConstraintsHasBeenSet = false;
311
312 Aws::Vector<PlacementStrategy> m_placementStrategy;
313 bool m_placementStrategyHasBeenSet = false;
314
315 PropagateTags m_propagateTags;
316 bool m_propagateTagsHasBeenSet = false;
317
318 Aws::String m_referenceId;
319 bool m_referenceIdHasBeenSet = false;
320
321 EcsTaskOverride m_overrides;
322 bool m_overridesHasBeenSet = false;
323
324 Aws::Vector<Tag> m_tags;
325 bool m_tagsHasBeenSet = false;
326 };
327
328} // namespace Model
329} // namespace Pipes
330} // namespace Aws
PipeTargetEcsTaskParameters & WithTaskDefinitionArn(const char *value)
void SetPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
PipeTargetEcsTaskParameters & WithLaunchType(const LaunchType &value)
PipeTargetEcsTaskParameters & AddPlacementConstraints(PlacementConstraint &&value)
PipeTargetEcsTaskParameters & WithCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
PipeTargetEcsTaskParameters & WithOverrides(const EcsTaskOverride &value)
PipeTargetEcsTaskParameters & WithNetworkConfiguration(const NetworkConfiguration &value)
PipeTargetEcsTaskParameters & WithGroup(const char *value)
PipeTargetEcsTaskParameters & WithReferenceId(Aws::String &&value)
void SetPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
PipeTargetEcsTaskParameters & WithPlatformVersion(const Aws::String &value)
PipeTargetEcsTaskParameters & WithPlacementStrategy(const Aws::Vector< PlacementStrategy > &value)
PipeTargetEcsTaskParameters & AddCapacityProviderStrategy(const CapacityProviderStrategyItem &value)
void SetPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
PipeTargetEcsTaskParameters & AddPlacementStrategy(PlacementStrategy &&value)
PipeTargetEcsTaskParameters & AddPlacementStrategy(const PlacementStrategy &value)
AWS_PIPES_API PipeTargetEcsTaskParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
PipeTargetEcsTaskParameters & WithGroup(Aws::String &&value)
PipeTargetEcsTaskParameters & AddTags(Tag &&value)
PipeTargetEcsTaskParameters & WithTaskDefinitionArn(const Aws::String &value)
const NetworkConfiguration & GetNetworkConfiguration() const
void SetCapacityProviderStrategy(const Aws::Vector< CapacityProviderStrategyItem > &value)
PipeTargetEcsTaskParameters & WithTags(const Aws::Vector< Tag > &value)
void SetCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
PipeTargetEcsTaskParameters & AddCapacityProviderStrategy(CapacityProviderStrategyItem &&value)
PipeTargetEcsTaskParameters & WithLaunchType(LaunchType &&value)
PipeTargetEcsTaskParameters & WithCapacityProviderStrategy(Aws::Vector< CapacityProviderStrategyItem > &&value)
PipeTargetEcsTaskParameters & WithPlatformVersion(Aws::String &&value)
PipeTargetEcsTaskParameters & AddPlacementConstraints(const PlacementConstraint &value)
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
PipeTargetEcsTaskParameters & WithEnableExecuteCommand(bool value)
PipeTargetEcsTaskParameters & WithPlatformVersion(const char *value)
PipeTargetEcsTaskParameters & AddTags(const Tag &value)
PipeTargetEcsTaskParameters & WithPlacementStrategy(Aws::Vector< PlacementStrategy > &&value)
PipeTargetEcsTaskParameters & WithTags(Aws::Vector< Tag > &&value)
PipeTargetEcsTaskParameters & WithTaskDefinitionArn(Aws::String &&value)
void SetNetworkConfiguration(const NetworkConfiguration &value)
PipeTargetEcsTaskParameters & WithEnableECSManagedTags(bool value)
PipeTargetEcsTaskParameters & WithOverrides(EcsTaskOverride &&value)
PipeTargetEcsTaskParameters & WithReferenceId(const Aws::String &value)
PipeTargetEcsTaskParameters & WithPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
PipeTargetEcsTaskParameters & WithPropagateTags(const PropagateTags &value)
PipeTargetEcsTaskParameters & WithPlacementConstraints(const Aws::Vector< PlacementConstraint > &value)
PipeTargetEcsTaskParameters & WithPropagateTags(PropagateTags &&value)
PipeTargetEcsTaskParameters & WithReferenceId(const char *value)
PipeTargetEcsTaskParameters & WithTaskCount(int value)
void SetPlacementConstraints(Aws::Vector< PlacementConstraint > &&value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
PipeTargetEcsTaskParameters & WithGroup(const Aws::String &value)
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
AWS_PIPES_API PipeTargetEcsTaskParameters(Aws::Utils::Json::JsonView jsonValue)
PipeTargetEcsTaskParameters & WithNetworkConfiguration(NetworkConfiguration &&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