AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EcsTaskProperties.h
1
6#pragma once
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>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Batch
28{
29namespace Model
30{
31
41 {
42 public:
43 AWS_BATCH_API EcsTaskProperties();
46 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::Vector<TaskContainerProperties>& GetContainers() const{ return m_containers; }
54 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
55 inline void SetContainers(const Aws::Vector<TaskContainerProperties>& value) { m_containersHasBeenSet = true; m_containers = value; }
56 inline void SetContainers(Aws::Vector<TaskContainerProperties>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
58 inline EcsTaskProperties& WithContainers(Aws::Vector<TaskContainerProperties>&& value) { SetContainers(std::move(value)); return *this;}
59 inline EcsTaskProperties& AddContainers(const TaskContainerProperties& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
60 inline EcsTaskProperties& AddContainers(TaskContainerProperties&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
62
64
69 inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
70 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
71 inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
72 inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::move(value); }
73 inline EcsTaskProperties& WithEphemeralStorage(const EphemeralStorage& value) { SetEphemeralStorage(value); return *this;}
74 inline EcsTaskProperties& WithEphemeralStorage(EphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;}
76
78
85 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
86 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
87 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
88 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
89 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
90 inline EcsTaskProperties& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
91 inline EcsTaskProperties& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
92 inline EcsTaskProperties& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
94
96
106 inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
107 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
108 inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
109 inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
110 inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
111 inline EcsTaskProperties& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
112 inline EcsTaskProperties& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
113 inline EcsTaskProperties& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
115
117
132 inline const Aws::String& GetIpcMode() const{ return m_ipcMode; }
133 inline bool IpcModeHasBeenSet() const { return m_ipcModeHasBeenSet; }
134 inline void SetIpcMode(const Aws::String& value) { m_ipcModeHasBeenSet = true; m_ipcMode = value; }
135 inline void SetIpcMode(Aws::String&& value) { m_ipcModeHasBeenSet = true; m_ipcMode = std::move(value); }
136 inline void SetIpcMode(const char* value) { m_ipcModeHasBeenSet = true; m_ipcMode.assign(value); }
137 inline EcsTaskProperties& WithIpcMode(const Aws::String& value) { SetIpcMode(value); return *this;}
138 inline EcsTaskProperties& WithIpcMode(Aws::String&& value) { SetIpcMode(std::move(value)); return *this;}
139 inline EcsTaskProperties& WithIpcMode(const char* value) { SetIpcMode(value); return *this;}
141
143
149 inline const Aws::String& GetTaskRoleArn() const{ return m_taskRoleArn; }
150 inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
151 inline void SetTaskRoleArn(const Aws::String& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = value; }
152 inline void SetTaskRoleArn(Aws::String&& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = std::move(value); }
153 inline void SetTaskRoleArn(const char* value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn.assign(value); }
154 inline EcsTaskProperties& WithTaskRoleArn(const Aws::String& value) { SetTaskRoleArn(value); return *this;}
155 inline EcsTaskProperties& WithTaskRoleArn(Aws::String&& value) { SetTaskRoleArn(std::move(value)); return *this;}
156 inline EcsTaskProperties& WithTaskRoleArn(const char* value) { SetTaskRoleArn(value); return *this;}
158
160
174 inline const Aws::String& GetPidMode() const{ return m_pidMode; }
175 inline bool PidModeHasBeenSet() const { return m_pidModeHasBeenSet; }
176 inline void SetPidMode(const Aws::String& value) { m_pidModeHasBeenSet = true; m_pidMode = value; }
177 inline void SetPidMode(Aws::String&& value) { m_pidModeHasBeenSet = true; m_pidMode = std::move(value); }
178 inline void SetPidMode(const char* value) { m_pidModeHasBeenSet = true; m_pidMode.assign(value); }
179 inline EcsTaskProperties& WithPidMode(const Aws::String& value) { SetPidMode(value); return *this;}
180 inline EcsTaskProperties& WithPidMode(Aws::String&& value) { SetPidMode(std::move(value)); return *this;}
181 inline EcsTaskProperties& WithPidMode(const char* value) { SetPidMode(value); return *this;}
183
185
190 inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
191 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
192 inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
193 inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
197
199
203 inline const RuntimePlatform& GetRuntimePlatform() const{ return m_runtimePlatform; }
204 inline bool RuntimePlatformHasBeenSet() const { return m_runtimePlatformHasBeenSet; }
205 inline void SetRuntimePlatform(const RuntimePlatform& value) { m_runtimePlatformHasBeenSet = true; m_runtimePlatform = value; }
206 inline void SetRuntimePlatform(RuntimePlatform&& value) { m_runtimePlatformHasBeenSet = true; m_runtimePlatform = std::move(value); }
207 inline EcsTaskProperties& WithRuntimePlatform(const RuntimePlatform& value) { SetRuntimePlatform(value); return *this;}
208 inline EcsTaskProperties& WithRuntimePlatform(RuntimePlatform&& value) { SetRuntimePlatform(std::move(value)); return *this;}
210
212
215 inline const Aws::Vector<Volume>& GetVolumes() const{ return m_volumes; }
216 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
217 inline void SetVolumes(const Aws::Vector<Volume>& value) { m_volumesHasBeenSet = true; m_volumes = value; }
218 inline void SetVolumes(Aws::Vector<Volume>&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); }
219 inline EcsTaskProperties& WithVolumes(const Aws::Vector<Volume>& value) { SetVolumes(value); return *this;}
220 inline EcsTaskProperties& WithVolumes(Aws::Vector<Volume>&& value) { SetVolumes(std::move(value)); return *this;}
221 inline EcsTaskProperties& AddVolumes(const Volume& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; }
222 inline EcsTaskProperties& AddVolumes(Volume&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; }
224 private:
225
227 bool m_containersHasBeenSet = false;
228
229 EphemeralStorage m_ephemeralStorage;
230 bool m_ephemeralStorageHasBeenSet = false;
231
232 Aws::String m_executionRoleArn;
233 bool m_executionRoleArnHasBeenSet = false;
234
235 Aws::String m_platformVersion;
236 bool m_platformVersionHasBeenSet = false;
237
238 Aws::String m_ipcMode;
239 bool m_ipcModeHasBeenSet = false;
240
241 Aws::String m_taskRoleArn;
242 bool m_taskRoleArnHasBeenSet = false;
243
244 Aws::String m_pidMode;
245 bool m_pidModeHasBeenSet = false;
246
247 NetworkConfiguration m_networkConfiguration;
248 bool m_networkConfigurationHasBeenSet = false;
249
250 RuntimePlatform m_runtimePlatform;
251 bool m_runtimePlatformHasBeenSet = false;
252
253 Aws::Vector<Volume> m_volumes;
254 bool m_volumesHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace Batch
259} // namespace Aws
EcsTaskProperties & WithTaskRoleArn(Aws::String &&value)
EcsTaskProperties & WithIpcMode(const char *value)
EcsTaskProperties & WithRuntimePlatform(RuntimePlatform &&value)
EcsTaskProperties & WithVolumes(Aws::Vector< Volume > &&value)
void SetNetworkConfiguration(NetworkConfiguration &&value)
EcsTaskProperties & WithPidMode(const char *value)
EcsTaskProperties & WithExecutionRoleArn(const Aws::String &value)
EcsTaskProperties & WithEphemeralStorage(EphemeralStorage &&value)
void SetPlatformVersion(const char *value)
EcsTaskProperties & WithExecutionRoleArn(Aws::String &&value)
const NetworkConfiguration & GetNetworkConfiguration() const
EcsTaskProperties & WithEphemeralStorage(const EphemeralStorage &value)
EcsTaskProperties & WithExecutionRoleArn(const char *value)
void SetVolumes(const Aws::Vector< Volume > &value)
const Aws::Vector< TaskContainerProperties > & GetContainers() const
void SetEphemeralStorage(const EphemeralStorage &value)
EcsTaskProperties & WithIpcMode(Aws::String &&value)
EcsTaskProperties & WithIpcMode(const Aws::String &value)
const Aws::Vector< Volume > & GetVolumes() const
const RuntimePlatform & GetRuntimePlatform() const
EcsTaskProperties & WithNetworkConfiguration(const NetworkConfiguration &value)
EcsTaskProperties & WithRuntimePlatform(const RuntimePlatform &value)
void SetContainers(Aws::Vector< TaskContainerProperties > &&value)
EcsTaskProperties & AddVolumes(const Volume &value)
AWS_BATCH_API EcsTaskProperties(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API EcsTaskProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEphemeralStorage(EphemeralStorage &&value)
EcsTaskProperties & WithPlatformVersion(const Aws::String &value)
EcsTaskProperties & WithPidMode(const Aws::String &value)
void SetVolumes(Aws::Vector< Volume > &&value)
const Aws::String & GetTaskRoleArn() const
void SetPlatformVersion(const Aws::String &value)
void SetIpcMode(const Aws::String &value)
void SetNetworkConfiguration(const NetworkConfiguration &value)
void SetContainers(const Aws::Vector< TaskContainerProperties > &value)
void SetPidMode(const Aws::String &value)
const Aws::String & GetPidMode() const
EcsTaskProperties & AddContainers(TaskContainerProperties &&value)
void SetTaskRoleArn(const Aws::String &value)
void SetTaskRoleArn(Aws::String &&value)
EcsTaskProperties & WithPlatformVersion(Aws::String &&value)
void SetExecutionRoleArn(const char *value)
EcsTaskProperties & WithTaskRoleArn(const char *value)
EcsTaskProperties & WithTaskRoleArn(const Aws::String &value)
EcsTaskProperties & WithPidMode(Aws::String &&value)
EcsTaskProperties & WithContainers(Aws::Vector< TaskContainerProperties > &&value)
void SetExecutionRoleArn(Aws::String &&value)
EcsTaskProperties & AddContainers(const TaskContainerProperties &value)
void SetPlatformVersion(Aws::String &&value)
const Aws::String & GetExecutionRoleArn() const
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EcsTaskProperties & WithVolumes(const Aws::Vector< Volume > &value)
const EphemeralStorage & GetEphemeralStorage() const
void SetRuntimePlatform(RuntimePlatform &&value)
void SetExecutionRoleArn(const Aws::String &value)
void SetRuntimePlatform(const RuntimePlatform &value)
const Aws::String & GetPlatformVersion() const
EcsTaskProperties & WithNetworkConfiguration(NetworkConfiguration &&value)
EcsTaskProperties & WithPlatformVersion(const char *value)
const Aws::String & GetIpcMode() const
EcsTaskProperties & WithContainers(const Aws::Vector< TaskContainerProperties > &value)
EcsTaskProperties & AddVolumes(Volume &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue