7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/batch/model/EphemeralStorage.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/batch/model/NetworkConfiguration.h>
12#include <aws/batch/model/RuntimePlatform.h>
13#include <aws/batch/model/TaskContainerProperties.h>
14#include <aws/batch/model/Volume.h>
55 template<
typename ContainersT = Aws::Vector<TaskContainerProperties>>
56 void SetContainers(ContainersT&& value) { m_containersHasBeenSet =
true; m_containers = std::forward<ContainersT>(value); }
57 template<
typename ContainersT = Aws::Vector<TaskContainerProperties>>
59 template<
typename ContainersT = TaskContainerProperties>
60 EcsTaskProperties&
AddContainers(ContainersT&& value) { m_containersHasBeenSet =
true; m_containers.emplace_back(std::forward<ContainersT>(value));
return *
this; }
71 template<
typename EphemeralStorageT = EphemeralStorage>
72 void SetEphemeralStorage(EphemeralStorageT&& value) { m_ephemeralStorageHasBeenSet =
true; m_ephemeralStorage = std::forward<EphemeralStorageT>(value); }
73 template<
typename EphemeralStorageT = EphemeralStorage>
87 template<
typename ExecutionRoleArnT = Aws::String>
88 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
89 template<
typename ExecutionRoleArnT = Aws::String>
106 template<
typename PlatformVersionT = Aws::String>
107 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet =
true; m_platformVersion = std::forward<PlatformVersionT>(value); }
108 template<
typename PlatformVersionT = Aws::String>
130 template<
typename IpcModeT = Aws::String>
131 void SetIpcMode(IpcModeT&& value) { m_ipcModeHasBeenSet =
true; m_ipcMode = std::forward<IpcModeT>(value); }
132 template<
typename IpcModeT = Aws::String>
145 template<
typename TaskRoleArnT = Aws::String>
146 void SetTaskRoleArn(TaskRoleArnT&& value) { m_taskRoleArnHasBeenSet =
true; m_taskRoleArn = std::forward<TaskRoleArnT>(value); }
147 template<
typename TaskRoleArnT = Aws::String>
168 template<
typename P
idModeT = Aws::String>
169 void SetPidMode(PidModeT&& value) { m_pidModeHasBeenSet =
true; m_pidMode = std::forward<PidModeT>(value); }
170 template<
typename P
idModeT = Aws::String>
182 template<
typename NetworkConfigurationT = NetworkConfiguration>
183 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet =
true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
184 template<
typename NetworkConfigurationT = NetworkConfiguration>
195 template<
typename RuntimePlatformT = RuntimePlatform>
196 void SetRuntimePlatform(RuntimePlatformT&& value) { m_runtimePlatformHasBeenSet =
true; m_runtimePlatform = std::forward<RuntimePlatformT>(value); }
197 template<
typename RuntimePlatformT = RuntimePlatform>
207 template<
typename VolumesT = Aws::Vector<Volume>>
208 void SetVolumes(VolumesT&& value) { m_volumesHasBeenSet =
true; m_volumes = std::forward<VolumesT>(value); }
209 template<
typename VolumesT = Aws::Vector<Volume>>
211 template<
typename VolumesT = Volume>
212 EcsTaskProperties&
AddVolumes(VolumesT&& value) { m_volumesHasBeenSet =
true; m_volumes.emplace_back(std::forward<VolumesT>(value));
return *
this; }
229 bool m_containersHasBeenSet =
false;
232 bool m_ephemeralStorageHasBeenSet =
false;
235 bool m_executionRoleArnHasBeenSet =
false;
238 bool m_platformVersionHasBeenSet =
false;
241 bool m_ipcModeHasBeenSet =
false;
244 bool m_taskRoleArnHasBeenSet =
false;
247 bool m_pidModeHasBeenSet =
false;
250 bool m_networkConfigurationHasBeenSet =
false;
253 bool m_runtimePlatformHasBeenSet =
false;
256 bool m_volumesHasBeenSet =
false;
258 bool m_enableExecuteCommand{
false};
259 bool m_enableExecuteCommandHasBeenSet =
false;
bool NetworkConfigurationHasBeenSet() const
bool TaskRoleArnHasBeenSet() const
void SetVolumes(VolumesT &&value)
bool GetEnableExecuteCommand() const
void SetPlatformVersion(PlatformVersionT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
EcsTaskProperties & WithTaskRoleArn(TaskRoleArnT &&value)
const NetworkConfiguration & GetNetworkConfiguration() const
bool IpcModeHasBeenSet() const
EcsTaskProperties & WithContainers(ContainersT &&value)
void SetRuntimePlatform(RuntimePlatformT &&value)
void SetContainers(ContainersT &&value)
void SetIpcMode(IpcModeT &&value)
EcsTaskProperties & WithNetworkConfiguration(NetworkConfigurationT &&value)
const Aws::Vector< TaskContainerProperties > & GetContainers() const
const Aws::Vector< Volume > & GetVolumes() const
const RuntimePlatform & GetRuntimePlatform() const
EcsTaskProperties & WithRuntimePlatform(RuntimePlatformT &&value)
EcsTaskProperties & AddContainers(ContainersT &&value)
bool ContainersHasBeenSet() const
AWS_BATCH_API EcsTaskProperties(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API EcsTaskProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
EcsTaskProperties & WithEphemeralStorage(EphemeralStorageT &&value)
void SetNetworkConfiguration(NetworkConfigurationT &&value)
EcsTaskProperties & WithIpcMode(IpcModeT &&value)
bool RuntimePlatformHasBeenSet() const
bool PlatformVersionHasBeenSet() const
const Aws::String & GetTaskRoleArn() const
void SetTaskRoleArn(TaskRoleArnT &&value)
EcsTaskProperties & AddVolumes(VolumesT &&value)
bool EphemeralStorageHasBeenSet() const
bool ExecutionRoleArnHasBeenSet() const
bool PidModeHasBeenSet() const
EcsTaskProperties & WithEnableExecuteCommand(bool value)
bool EnableExecuteCommandHasBeenSet() const
void SetEnableExecuteCommand(bool value)
const Aws::String & GetPidMode() const
EcsTaskProperties & WithVolumes(VolumesT &&value)
bool VolumesHasBeenSet() const
EcsTaskProperties & WithPidMode(PidModeT &&value)
EcsTaskProperties & WithPlatformVersion(PlatformVersionT &&value)
void SetPidMode(PidModeT &&value)
const Aws::String & GetExecutionRoleArn() const
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const EphemeralStorage & GetEphemeralStorage() const
const Aws::String & GetPlatformVersion() const
EcsTaskProperties & WithExecutionRoleArn(ExecutionRoleArnT &&value)
void SetEphemeralStorage(EphemeralStorageT &&value)
AWS_BATCH_API EcsTaskProperties()=default
const Aws::String & GetIpcMode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue