7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECSRequest.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/NetworkConfiguration.h>
12#include <aws/ecs/model/PropagateTags.h>
13#include <aws/ecs/model/Tag.h>
14#include <aws/ecs/model/TaskOverride.h>
15#include <aws/ecs/model/TaskVolumeConfiguration.h>
50 template <
typename ClusterT = Aws::String>
52 m_clusterHasBeenSet =
true;
53 m_cluster = std::forward<ClusterT>(value);
55 template <
typename ClusterT = Aws::String>
70 template <
typename ContainerInstancesT = Aws::Vector<Aws::String>>
72 m_containerInstancesHasBeenSet =
true;
73 m_containerInstances = std::forward<ContainerInstancesT>(value);
75 template <
typename ContainerInstancesT = Aws::Vector<Aws::String>>
80 template <
typename ContainerInstancesT = Aws::String>
82 m_containerInstancesHasBeenSet =
true;
83 m_containerInstances.emplace_back(std::forward<ContainerInstancesT>(value));
99 m_enableECSManagedTagsHasBeenSet =
true;
100 m_enableECSManagedTags = value;
117 m_enableExecuteCommandHasBeenSet =
true;
118 m_enableExecuteCommand = value;
133 template <
typename GroupT = Aws::String>
135 m_groupHasBeenSet =
true;
136 m_group = std::forward<GroupT>(value);
138 template <
typename GroupT = Aws::String>
140 SetGroup(std::forward<GroupT>(value));
153 template <
typename NetworkConfigurationT = NetworkConfiguration>
155 m_networkConfigurationHasBeenSet =
true;
156 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
158 template <
typename NetworkConfigurationT = NetworkConfiguration>
179 template <
typename Overr
idesT = TaskOverr
ide>
181 m_overridesHasBeenSet =
true;
182 m_overrides = std::forward<OverridesT>(value);
184 template <
typename Overr
idesT = TaskOverr
ide>
199 m_propagateTagsHasBeenSet =
true;
200 m_propagateTags = value;
215 template <
typename ReferenceIdT = Aws::String>
217 m_referenceIdHasBeenSet =
true;
218 m_referenceId = std::forward<ReferenceIdT>(value);
220 template <
typename ReferenceIdT = Aws::String>
243 template <
typename StartedByT = Aws::String>
245 m_startedByHasBeenSet =
true;
246 m_startedBy = std::forward<StartedByT>(value);
248 template <
typename StartedByT = Aws::String>
276 template <
typename TagsT = Aws::Vector<Tag>>
278 m_tagsHasBeenSet =
true;
279 m_tags = std::forward<TagsT>(value);
281 template <
typename TagsT = Aws::Vector<Tag>>
283 SetTags(std::forward<TagsT>(value));
286 template <
typename TagsT = Tag>
288 m_tagsHasBeenSet =
true;
289 m_tags.emplace_back(std::forward<TagsT>(value));
303 template <
typename TaskDefinitionT = Aws::String>
305 m_taskDefinitionHasBeenSet =
true;
306 m_taskDefinition = std::forward<TaskDefinitionT>(value);
308 template <
typename TaskDefinitionT = Aws::String>
325 template <
typename VolumeConfigurationsT = Aws::Vector<TaskVolumeConfiguration>>
327 m_volumeConfigurationsHasBeenSet =
true;
328 m_volumeConfigurations = std::forward<VolumeConfigurationsT>(value);
330 template <
typename VolumeConfigurationsT = Aws::Vector<TaskVolumeConfiguration>>
335 template <
typename VolumeConfigurationsT = TaskVolumeConfiguration>
337 m_volumeConfigurationsHasBeenSet =
true;
338 m_volumeConfigurations.emplace_back(std::forward<VolumeConfigurationsT>(value));
347 bool m_enableECSManagedTags{
false};
349 bool m_enableExecuteCommand{
false};
353 NetworkConfiguration m_networkConfiguration;
355 TaskOverride m_overrides;
368 bool m_clusterHasBeenSet =
false;
369 bool m_containerInstancesHasBeenSet =
false;
370 bool m_enableECSManagedTagsHasBeenSet =
false;
371 bool m_enableExecuteCommandHasBeenSet =
false;
372 bool m_groupHasBeenSet =
false;
373 bool m_networkConfigurationHasBeenSet =
false;
374 bool m_overridesHasBeenSet =
false;
375 bool m_propagateTagsHasBeenSet =
false;
376 bool m_referenceIdHasBeenSet =
false;
377 bool m_startedByHasBeenSet =
false;
378 bool m_tagsHasBeenSet =
false;
379 bool m_taskDefinitionHasBeenSet =
false;
380 bool m_volumeConfigurationsHasBeenSet =
false;
PropagateTags GetPropagateTags() const
void SetContainerInstances(ContainerInstancesT &&value)
StartTaskRequest & WithPropagateTags(PropagateTags value)
StartTaskRequest & AddVolumeConfigurations(VolumeConfigurationsT &&value)
StartTaskRequest & AddTags(TagsT &&value)
void SetVolumeConfigurations(VolumeConfigurationsT &&value)
bool EnableECSManagedTagsHasBeenSet() const
StartTaskRequest & WithTaskDefinition(TaskDefinitionT &&value)
bool NetworkConfigurationHasBeenSet() const
StartTaskRequest & WithEnableECSManagedTags(bool value)
AWS_ECS_API Aws::String SerializePayload() const override
bool GetEnableExecuteCommand() const
const Aws::String & GetCluster() const
const NetworkConfiguration & GetNetworkConfiguration() const
bool StartedByHasBeenSet() const
const Aws::Vector< Aws::String > & GetContainerInstances() const
const Aws::Vector< TaskVolumeConfiguration > & GetVolumeConfigurations() const
void SetCluster(ClusterT &&value)
AWS_ECS_API StartTaskRequest()=default
StartTaskRequest & WithTags(TagsT &&value)
void SetPropagateTags(PropagateTags value)
void SetEnableECSManagedTags(bool value)
void SetTags(TagsT &&value)
void SetReferenceId(ReferenceIdT &&value)
StartTaskRequest & WithEnableExecuteCommand(bool value)
StartTaskRequest & WithContainerInstances(ContainerInstancesT &&value)
bool TaskDefinitionHasBeenSet() const
bool TagsHasBeenSet() const
bool EnableExecuteCommandHasBeenSet() const
void SetOverrides(OverridesT &&value)
StartTaskRequest & AddContainerInstances(ContainerInstancesT &&value)
const Aws::String & GetReferenceId() const
StartTaskRequest & WithCluster(ClusterT &&value)
bool ClusterHasBeenSet() const
void SetNetworkConfiguration(NetworkConfigurationT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const TaskOverride & GetOverrides() const
StartTaskRequest & WithOverrides(OverridesT &&value)
StartTaskRequest & WithReferenceId(ReferenceIdT &&value)
bool PropagateTagsHasBeenSet() const
void SetGroup(GroupT &&value)
void SetStartedBy(StartedByT &&value)
void SetTaskDefinition(TaskDefinitionT &&value)
bool OverridesHasBeenSet() const
StartTaskRequest & WithGroup(GroupT &&value)
void SetEnableExecuteCommand(bool value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetTaskDefinition() const
bool VolumeConfigurationsHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
bool GetEnableECSManagedTags() const
StartTaskRequest & WithNetworkConfiguration(NetworkConfigurationT &&value)
bool ReferenceIdHasBeenSet() const
bool GroupHasBeenSet() const
const Aws::String & GetGroup() const
bool ContainerInstancesHasBeenSet() const
const Aws::String & GetStartedBy() const
StartTaskRequest & WithVolumeConfigurations(VolumeConfigurationsT &&value)
StartTaskRequest & WithStartedBy(StartedByT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector