7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/NetworkConfiguration.h>
12#include <aws/ecs/model/TaskOverride.h>
13#include <aws/ecs/model/PropagateTags.h>
14#include <aws/ecs/model/Tag.h>
15#include <aws/ecs/model/TaskVolumeConfiguration.h>
51 template<
typename ClusterT = Aws::String>
52 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet =
true; m_cluster = std::forward<ClusterT>(value); }
53 template<
typename ClusterT = Aws::String>
65 template<
typename ContainerInstancesT = Aws::Vector<Aws::String>>
66 void SetContainerInstances(ContainerInstancesT&& value) { m_containerInstancesHasBeenSet =
true; m_containerInstances = std::forward<ContainerInstancesT>(value); }
67 template<
typename ContainerInstancesT = Aws::Vector<Aws::String>>
69 template<
typename ContainerInstancesT = Aws::String>
70 StartTaskRequest&
AddContainerInstances(ContainerInstancesT&& value) { m_containerInstancesHasBeenSet =
true; m_containerInstances.emplace_back(std::forward<ContainerInstancesT>(value));
return *
this; }
83 inline void SetEnableECSManagedTags(
bool value) { m_enableECSManagedTagsHasBeenSet =
true; m_enableECSManagedTags = value; }
95 inline void SetEnableExecuteCommand(
bool value) { m_enableExecuteCommandHasBeenSet =
true; m_enableExecuteCommand = value; }
106 template<
typename GroupT = Aws::String>
107 void SetGroup(GroupT&& value) { m_groupHasBeenSet =
true; m_group = std::forward<GroupT>(value); }
108 template<
typename GroupT = Aws::String>
120 template<
typename NetworkConfigurationT = NetworkConfiguration>
121 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet =
true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
122 template<
typename NetworkConfigurationT = NetworkConfiguration>
140 template<
typename Overr
idesT = TaskOverr
ide>
141 void SetOverrides(OverridesT&& value) { m_overridesHasBeenSet =
true; m_overrides = std::forward<OverridesT>(value); }
142 template<
typename Overr
idesT = TaskOverr
ide>
164 template<
typename ReferenceIdT = Aws::String>
165 void SetReferenceId(ReferenceIdT&& value) { m_referenceIdHasBeenSet =
true; m_referenceId = std::forward<ReferenceIdT>(value); }
166 template<
typename ReferenceIdT = Aws::String>
186 template<
typename StartedByT = Aws::String>
187 void SetStartedBy(StartedByT&& value) { m_startedByHasBeenSet =
true; m_startedBy = std::forward<StartedByT>(value); }
188 template<
typename StartedByT = Aws::String>
213 template<
typename TagsT = Aws::Vector<Tag>>
214 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
215 template<
typename TagsT = Aws::Vector<Tag>>
217 template<
typename TagsT = Tag>
218 StartTaskRequest&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
230 template<
typename TaskDefinitionT = Aws::String>
231 void SetTaskDefinition(TaskDefinitionT&& value) { m_taskDefinitionHasBeenSet =
true; m_taskDefinition = std::forward<TaskDefinitionT>(value); }
232 template<
typename TaskDefinitionT = Aws::String>
246 template<
typename VolumeConfigurationsT = Aws::Vector<TaskVolumeConfiguration>>
247 void SetVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet =
true; m_volumeConfigurations = std::forward<VolumeConfigurationsT>(value); }
248 template<
typename VolumeConfigurationsT = Aws::Vector<TaskVolumeConfiguration>>
250 template<
typename VolumeConfigurationsT = TaskVolumeConfiguration>
251 StartTaskRequest&
AddVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet =
true; m_volumeConfigurations.emplace_back(std::forward<VolumeConfigurationsT>(value));
return *
this; }
256 bool m_clusterHasBeenSet =
false;
259 bool m_containerInstancesHasBeenSet =
false;
261 bool m_enableECSManagedTags{
false};
262 bool m_enableECSManagedTagsHasBeenSet =
false;
264 bool m_enableExecuteCommand{
false};
265 bool m_enableExecuteCommandHasBeenSet =
false;
268 bool m_groupHasBeenSet =
false;
270 NetworkConfiguration m_networkConfiguration;
271 bool m_networkConfigurationHasBeenSet =
false;
273 TaskOverride m_overrides;
274 bool m_overridesHasBeenSet =
false;
277 bool m_propagateTagsHasBeenSet =
false;
280 bool m_referenceIdHasBeenSet =
false;
283 bool m_startedByHasBeenSet =
false;
286 bool m_tagsHasBeenSet =
false;
289 bool m_taskDefinitionHasBeenSet =
false;
292 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