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>
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>
69 inline void SetTaskCount(
int value) { m_taskCountHasBeenSet =
true; m_taskCount = value; }
101 template<
typename NetworkConfigurationT = NetworkConfiguration>
102 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet =
true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
103 template<
typename NetworkConfigurationT = NetworkConfiguration>
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>
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>
148 template<
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
149 void SetCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet =
true; m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value); }
150 template<
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
152 template<
typename CapacityProv
iderStrategyT = CapacityProv
iderStrategyItem>
153 EcsParameters&
AddCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet =
true; m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value));
return *
this; }
190 template<
typename PlacementConstra
intsT = Aws::Vector<PlacementConstra
int>>
191 void SetPlacementConstraints(PlacementConstraintsT&& value) { m_placementConstraintsHasBeenSet =
true; m_placementConstraints = std::forward<PlacementConstraintsT>(value); }
192 template<
typename PlacementConstra
intsT = Aws::Vector<PlacementConstra
int>>
194 template<
typename PlacementConstra
intsT = PlacementConstra
int>
195 EcsParameters&
AddPlacementConstraints(PlacementConstraintsT&& value) { m_placementConstraintsHasBeenSet =
true; m_placementConstraints.emplace_back(std::forward<PlacementConstraintsT>(value));
return *
this; }
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>>
209 template<
typename PlacementStrategyT = PlacementStrategy>
210 EcsParameters&
AddPlacementStrategy(PlacementStrategyT&& value) { m_placementStrategyHasBeenSet =
true; m_placementStrategy.emplace_back(std::forward<PlacementStrategyT>(value));
return *
this; }
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>
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>>
252 template<
typename TagsT = Tag>
253 EcsParameters&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
258 bool m_taskDefinitionArnHasBeenSet =
false;
261 bool m_taskCountHasBeenSet =
false;
264 bool m_launchTypeHasBeenSet =
false;
266 NetworkConfiguration m_networkConfiguration;
267 bool m_networkConfigurationHasBeenSet =
false;
270 bool m_platformVersionHasBeenSet =
false;
273 bool m_groupHasBeenSet =
false;
276 bool m_capacityProviderStrategyHasBeenSet =
false;
278 bool m_enableECSManagedTags{
false};
279 bool m_enableECSManagedTagsHasBeenSet =
false;
281 bool m_enableExecuteCommand{
false};
282 bool m_enableExecuteCommandHasBeenSet =
false;
285 bool m_placementConstraintsHasBeenSet =
false;
288 bool m_placementStrategyHasBeenSet =
false;
291 bool m_propagateTagsHasBeenSet =
false;
294 bool m_referenceIdHasBeenSet =
false;
297 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