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>
27namespace EventBridge {
50 template <
typename TaskDefinitionArnT = Aws::String>
52 m_taskDefinitionArnHasBeenSet =
true;
53 m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value);
55 template <
typename TaskDefinitionArnT = Aws::String>
70 m_taskCountHasBeenSet =
true;
92 m_launchTypeHasBeenSet =
true;
113 template <
typename NetworkConfigurationT = NetworkConfiguration>
115 m_networkConfigurationHasBeenSet =
true;
116 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
118 template <
typename NetworkConfigurationT = NetworkConfiguration>
137 template <
typename PlatformVersionT = Aws::String>
139 m_platformVersionHasBeenSet =
true;
140 m_platformVersion = std::forward<PlatformVersionT>(value);
142 template <
typename PlatformVersionT = Aws::String>
156 template <
typename GroupT = Aws::String>
158 m_groupHasBeenSet =
true;
159 m_group = std::forward<GroupT>(value);
161 template <
typename GroupT = Aws::String>
163 SetGroup(std::forward<GroupT>(value));
178 template <
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
180 m_capacityProviderStrategyHasBeenSet =
true;
181 m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value);
183 template <
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
188 template <
typename CapacityProv
iderStrategyT = CapacityProv
iderStrategyItem>
190 m_capacityProviderStrategyHasBeenSet =
true;
191 m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value));
207 m_enableECSManagedTagsHasBeenSet =
true;
208 m_enableECSManagedTags = value;
225 m_enableExecuteCommandHasBeenSet =
true;
226 m_enableExecuteCommand = value;
242 template <
typename PlacementConstra
intsT = Aws::Vector<PlacementConstra
int>>
244 m_placementConstraintsHasBeenSet =
true;
245 m_placementConstraints = std::forward<PlacementConstraintsT>(value);
247 template <
typename PlacementConstra
intsT = Aws::Vector<PlacementConstra
int>>
252 template <
typename PlacementConstra
intsT = PlacementConstra
int>
254 m_placementConstraintsHasBeenSet =
true;
255 m_placementConstraints.emplace_back(std::forward<PlacementConstraintsT>(value));
267 template <
typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
269 m_placementStrategyHasBeenSet =
true;
270 m_placementStrategy = std::forward<PlacementStrategyT>(value);
272 template <
typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
277 template <
typename PlacementStrategyT = PlacementStrategy>
279 m_placementStrategyHasBeenSet =
true;
280 m_placementStrategy.emplace_back(std::forward<PlacementStrategyT>(value));
295 m_propagateTagsHasBeenSet =
true;
296 m_propagateTags = value;
310 template <
typename ReferenceIdT = Aws::String>
312 m_referenceIdHasBeenSet =
true;
313 m_referenceId = std::forward<ReferenceIdT>(value);
315 template <
typename ReferenceIdT = Aws::String>
332 template <
typename TagsT = Aws::Vector<Tag>>
334 m_tagsHasBeenSet =
true;
335 m_tags = std::forward<TagsT>(value);
337 template <
typename TagsT = Aws::Vector<Tag>>
339 SetTags(std::forward<TagsT>(value));
342 template <
typename TagsT = Tag>
344 m_tagsHasBeenSet =
true;
345 m_tags.emplace_back(std::forward<TagsT>(value));
356 NetworkConfiguration m_networkConfiguration;
364 bool m_enableECSManagedTags{
false};
366 bool m_enableExecuteCommand{
false};
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;
EcsParameters & WithPlacementStrategy(PlacementStrategyT &&value)
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
AWS_EVENTBRIDGE_API EcsParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GroupHasBeenSet() const
bool PlatformVersionHasBeenSet() const
EcsParameters & WithPlatformVersion(PlatformVersionT &&value)
bool PlacementConstraintsHasBeenSet() const
EcsParameters & WithPlacementConstraints(PlacementConstraintsT &&value)
EcsParameters & WithEnableExecuteCommand(bool value)
EcsParameters & AddPlacementConstraints(PlacementConstraintsT &&value)
bool LaunchTypeHasBeenSet() const
const Aws::String & GetTaskDefinitionArn() const
void SetEnableExecuteCommand(bool value)
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
bool TaskCountHasBeenSet() const
PropagateTags GetPropagateTags() const
void SetReferenceId(ReferenceIdT &&value)
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
void SetPropagateTags(PropagateTags value)
const Aws::String & GetPlatformVersion() const
bool TaskDefinitionArnHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
bool GetEnableExecuteCommand() const
EcsParameters & WithTaskCount(int value)
bool NetworkConfigurationHasBeenSet() const
bool GetEnableECSManagedTags() const
void SetPlacementConstraints(PlacementConstraintsT &&value)
bool PropagateTagsHasBeenSet() const
EcsParameters & WithTags(TagsT &&value)
bool ReferenceIdHasBeenSet() const
bool CapacityProviderStrategyHasBeenSet() const
EcsParameters & WithGroup(GroupT &&value)
void SetPlatformVersion(PlatformVersionT &&value)
void SetEnableECSManagedTags(bool value)
void SetLaunchType(LaunchType value)
bool EnableExecuteCommandHasBeenSet() const
EcsParameters & WithNetworkConfiguration(NetworkConfigurationT &&value)
EcsParameters & AddPlacementStrategy(PlacementStrategyT &&value)
void SetTaskDefinitionArn(TaskDefinitionArnT &&value)
void SetNetworkConfiguration(NetworkConfigurationT &&value)
void SetTaskCount(int value)
EcsParameters & WithLaunchType(LaunchType value)
EcsParameters & WithEnableECSManagedTags(bool value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
bool PlacementStrategyHasBeenSet() const
EcsParameters & WithTaskDefinitionArn(TaskDefinitionArnT &&value)
bool EnableECSManagedTagsHasBeenSet() const
EcsParameters & WithPropagateTags(PropagateTags value)
EcsParameters & AddCapacityProviderStrategy(CapacityProviderStrategyT &&value)
void SetPlacementStrategy(PlacementStrategyT &&value)
EcsParameters & WithCapacityProviderStrategy(CapacityProviderStrategyT &&value)
const Aws::String & GetGroup() const
bool TagsHasBeenSet() const
void SetGroup(GroupT &&value)
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)
LaunchType GetLaunchType() const
AWS_EVENTBRIDGE_API EcsParameters()=default
void SetTags(TagsT &&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