7#include <aws/scheduler/Scheduler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/scheduler/model/LaunchType.h>
11#include <aws/scheduler/model/NetworkConfiguration.h>
12#include <aws/scheduler/model/PropagateTags.h>
13#include <aws/scheduler/model/CapacityProviderStrategyItem.h>
14#include <aws/scheduler/model/PlacementConstraint.h>
15#include <aws/scheduler/model/PlacementStrategy.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
56 template<
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
57 void SetCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet =
true; m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value); }
58 template<
typename CapacityProv
iderStrategyT = Aws::Vector<CapacityProv
iderStrategyItem>>
60 template<
typename CapacityProv
iderStrategyT = CapacityProv
iderStrategyItem>
61 EcsParameters&
AddCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet =
true; m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value));
return *
this; }
73 inline void SetEnableECSManagedTags(
bool value) { m_enableECSManagedTagsHasBeenSet =
true; m_enableECSManagedTags = value; }
85 inline void SetEnableExecuteCommand(
bool value) { m_enableExecuteCommandHasBeenSet =
true; m_enableExecuteCommand = value; }
96 template<
typename GroupT = Aws::String>
97 void SetGroup(GroupT&& value) { m_groupHasBeenSet =
true; m_group = std::forward<GroupT>(value); }
98 template<
typename GroupT = Aws::String>
123 template<
typename NetworkConfigurationT = NetworkConfiguration>
124 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet =
true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
125 template<
typename NetworkConfigurationT = NetworkConfiguration>
137 template<
typename PlacementConstra
intsT = Aws::Vector<PlacementConstra
int>>
138 void SetPlacementConstraints(PlacementConstraintsT&& value) { m_placementConstraintsHasBeenSet =
true; m_placementConstraints = std::forward<PlacementConstraintsT>(value); }
139 template<
typename PlacementConstra
intsT = Aws::Vector<PlacementConstra
int>>
141 template<
typename PlacementConstra
intsT = PlacementConstra
int>
142 EcsParameters&
AddPlacementConstraints(PlacementConstraintsT&& value) { m_placementConstraintsHasBeenSet =
true; m_placementConstraints.emplace_back(std::forward<PlacementConstraintsT>(value));
return *
this; }
151 template<
typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
152 void SetPlacementStrategy(PlacementStrategyT&& value) { m_placementStrategyHasBeenSet =
true; m_placementStrategy = std::forward<PlacementStrategyT>(value); }
153 template<
typename PlacementStrategyT = Aws::Vector<PlacementStrategy>>
155 template<
typename PlacementStrategyT = PlacementStrategy>
156 EcsParameters&
AddPlacementStrategy(PlacementStrategyT&& value) { m_placementStrategyHasBeenSet =
true; m_placementStrategy.emplace_back(std::forward<PlacementStrategyT>(value));
return *
this; }
166 template<
typename PlatformVersionT = Aws::String>
167 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet =
true; m_platformVersion = std::forward<PlatformVersionT>(value); }
168 template<
typename PlatformVersionT = Aws::String>
193 template<
typename ReferenceIdT = Aws::String>
194 void SetReferenceId(ReferenceIdT&& value) { m_referenceIdHasBeenSet =
true; m_referenceId = std::forward<ReferenceIdT>(value); }
195 template<
typename ReferenceIdT = Aws::String>
209 template<
typename TagsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
210 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
211 template<
typename TagsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
213 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
214 EcsParameters&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
224 inline void SetTaskCount(
int value) { m_taskCountHasBeenSet =
true; m_taskCount = value; }
235 template<
typename TaskDefinitionArnT = Aws::String>
236 void SetTaskDefinitionArn(TaskDefinitionArnT&& value) { m_taskDefinitionArnHasBeenSet =
true; m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value); }
237 template<
typename TaskDefinitionArnT = Aws::String>
243 bool m_capacityProviderStrategyHasBeenSet =
false;
245 bool m_enableECSManagedTags{
false};
246 bool m_enableECSManagedTagsHasBeenSet =
false;
248 bool m_enableExecuteCommand{
false};
249 bool m_enableExecuteCommandHasBeenSet =
false;
252 bool m_groupHasBeenSet =
false;
255 bool m_launchTypeHasBeenSet =
false;
257 NetworkConfiguration m_networkConfiguration;
258 bool m_networkConfigurationHasBeenSet =
false;
261 bool m_placementConstraintsHasBeenSet =
false;
264 bool m_placementStrategyHasBeenSet =
false;
267 bool m_platformVersionHasBeenSet =
false;
270 bool m_propagateTagsHasBeenSet =
false;
273 bool m_referenceIdHasBeenSet =
false;
276 bool m_tagsHasBeenSet =
false;
279 bool m_taskCountHasBeenSet =
false;
282 bool m_taskDefinitionArnHasBeenSet =
false;
PropagateTags GetPropagateTags() const
bool GroupHasBeenSet() const
bool ReferenceIdHasBeenSet() const
bool EnableECSManagedTagsHasBeenSet() const
EcsParameters & WithReferenceId(ReferenceIdT &&value)
bool LaunchTypeHasBeenSet() const
AWS_SCHEDULER_API EcsParameters(Aws::Utils::Json::JsonView jsonValue)
bool TaskDefinitionArnHasBeenSet() const
void SetPlatformVersion(PlatformVersionT &&value)
bool PlacementConstraintsHasBeenSet() const
EcsParameters & WithEnableExecuteCommand(bool value)
void SetTaskDefinitionArn(TaskDefinitionArnT &&value)
void SetReferenceId(ReferenceIdT &&value)
EcsParameters & WithPlacementConstraints(PlacementConstraintsT &&value)
EcsParameters & WithLaunchType(LaunchType value)
bool PropagateTagsHasBeenSet() const
bool GetEnableECSManagedTags() const
bool TaskCountHasBeenSet() const
EcsParameters & WithTags(TagsT &&value)
const Aws::Vector< PlacementStrategy > & GetPlacementStrategy() const
void SetCapacityProviderStrategy(CapacityProviderStrategyT &&value)
void SetNetworkConfiguration(NetworkConfigurationT &&value)
EcsParameters & AddPlacementStrategy(PlacementStrategyT &&value)
EcsParameters & WithGroup(GroupT &&value)
void SetPlacementStrategy(PlacementStrategyT &&value)
bool PlatformVersionHasBeenSet() const
bool CapacityProviderStrategyHasBeenSet() const
EcsParameters & AddCapacityProviderStrategy(CapacityProviderStrategyT &&value)
bool NetworkConfigurationHasBeenSet() const
bool EnableExecuteCommandHasBeenSet() const
LaunchType GetLaunchType() const
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
EcsParameters & AddTags(TagsT &&value)
void SetTaskCount(int value)
bool GetEnableExecuteCommand() const
EcsParameters & WithNetworkConfiguration(NetworkConfigurationT &&value)
const Aws::String & GetTaskDefinitionArn() const
const Aws::String & GetGroup() const
void SetTags(TagsT &&value)
EcsParameters & WithTaskDefinitionArn(TaskDefinitionArnT &&value)
void SetLaunchType(LaunchType value)
bool TagsHasBeenSet() const
EcsParameters & AddPlacementConstraints(PlacementConstraintsT &&value)
EcsParameters & WithPlatformVersion(PlatformVersionT &&value)
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const
EcsParameters & WithCapacityProviderStrategy(CapacityProviderStrategyT &&value)
const Aws::String & GetReferenceId() const
void SetEnableECSManagedTags(bool value)
const Aws::Vector< PlacementConstraint > & GetPlacementConstraints() const
EcsParameters & WithPropagateTags(PropagateTags value)
void SetEnableExecuteCommand(bool value)
const Aws::String & GetPlatformVersion() const
EcsParameters & WithEnableECSManagedTags(bool value)
const NetworkConfiguration & GetNetworkConfiguration() const
AWS_SCHEDULER_API EcsParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
EcsParameters & WithTaskCount(int value)
bool PlacementStrategyHasBeenSet() const
EcsParameters & WithPlacementStrategy(PlacementStrategyT &&value)
void SetPlacementConstraints(PlacementConstraintsT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetTags() const
void SetPropagateTags(PropagateTags value)
void SetGroup(GroupT &&value)
AWS_SCHEDULER_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