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>
47 template <
typename ClusterT = Aws::String>
49 m_clusterHasBeenSet =
true;
50 m_cluster = std::forward<ClusterT>(value);
52 template <
typename ClusterT = Aws::String>
67 template <
typename ContainerInstancesT = Aws::Vector<Aws::String>>
69 m_containerInstancesHasBeenSet =
true;
70 m_containerInstances = std::forward<ContainerInstancesT>(value);
72 template <
typename ContainerInstancesT = Aws::Vector<Aws::String>>
77 template <
typename ContainerInstancesT = Aws::String>
79 m_containerInstancesHasBeenSet =
true;
80 m_containerInstances.emplace_back(std::forward<ContainerInstancesT>(value));
96 m_enableECSManagedTagsHasBeenSet =
true;
97 m_enableECSManagedTags = value;
114 m_enableExecuteCommandHasBeenSet =
true;
115 m_enableExecuteCommand = value;
130 template <
typename GroupT = Aws::String>
132 m_groupHasBeenSet =
true;
133 m_group = std::forward<GroupT>(value);
135 template <
typename GroupT = Aws::String>
137 SetGroup(std::forward<GroupT>(value));
150 template <
typename NetworkConfigurationT = NetworkConfiguration>
152 m_networkConfigurationHasBeenSet =
true;
153 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
155 template <
typename NetworkConfigurationT = NetworkConfiguration>
176 template <
typename Overr
idesT = TaskOverr
ide>
178 m_overridesHasBeenSet =
true;
179 m_overrides = std::forward<OverridesT>(value);
181 template <
typename Overr
idesT = TaskOverr
ide>
196 m_propagateTagsHasBeenSet =
true;
197 m_propagateTags = value;
212 template <
typename ReferenceIdT = Aws::String>
214 m_referenceIdHasBeenSet =
true;
215 m_referenceId = std::forward<ReferenceIdT>(value);
217 template <
typename ReferenceIdT = Aws::String>
240 template <
typename StartedByT = Aws::String>
242 m_startedByHasBeenSet =
true;
243 m_startedBy = std::forward<StartedByT>(value);
245 template <
typename StartedByT = Aws::String>
273 template <
typename TagsT = Aws::Vector<Tag>>
275 m_tagsHasBeenSet =
true;
276 m_tags = std::forward<TagsT>(value);
278 template <
typename TagsT = Aws::Vector<Tag>>
280 SetTags(std::forward<TagsT>(value));
283 template <
typename TagsT = Tag>
285 m_tagsHasBeenSet =
true;
286 m_tags.emplace_back(std::forward<TagsT>(value));
300 template <
typename TaskDefinitionT = Aws::String>
302 m_taskDefinitionHasBeenSet =
true;
303 m_taskDefinition = std::forward<TaskDefinitionT>(value);
305 template <
typename TaskDefinitionT = Aws::String>
322 template <
typename VolumeConfigurationsT = Aws::Vector<TaskVolumeConfiguration>>
324 m_volumeConfigurationsHasBeenSet =
true;
325 m_volumeConfigurations = std::forward<VolumeConfigurationsT>(value);
327 template <
typename VolumeConfigurationsT = Aws::Vector<TaskVolumeConfiguration>>
332 template <
typename VolumeConfigurationsT = TaskVolumeConfiguration>
334 m_volumeConfigurationsHasBeenSet =
true;
335 m_volumeConfigurations.emplace_back(std::forward<VolumeConfigurationsT>(value));
344 bool m_enableECSManagedTags{
false};
346 bool m_enableExecuteCommand{
false};
350 NetworkConfiguration m_networkConfiguration;
352 TaskOverride m_overrides;
365 bool m_clusterHasBeenSet =
false;
366 bool m_containerInstancesHasBeenSet =
false;
367 bool m_enableECSManagedTagsHasBeenSet =
false;
368 bool m_enableExecuteCommandHasBeenSet =
false;
369 bool m_groupHasBeenSet =
false;
370 bool m_networkConfigurationHasBeenSet =
false;
371 bool m_overridesHasBeenSet =
false;
372 bool m_propagateTagsHasBeenSet =
false;
373 bool m_referenceIdHasBeenSet =
false;
374 bool m_startedByHasBeenSet =
false;
375 bool m_tagsHasBeenSet =
false;
376 bool m_taskDefinitionHasBeenSet =
false;
377 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