AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EcsTaskDetails.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/EphemeralStorage.h>
11#include <aws/batch/model/NetworkConfiguration.h>
12#include <aws/batch/model/RuntimePlatform.h>
13#include <aws/batch/model/TaskContainerDetails.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
39 {
40 public:
41 AWS_BATCH_API EcsTaskDetails();
44 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::Vector<TaskContainerDetails>& GetContainers() const{ return m_containers; }
53 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
54 inline void SetContainers(const Aws::Vector<TaskContainerDetails>& value) { m_containersHasBeenSet = true; m_containers = value; }
55 inline void SetContainers(Aws::Vector<TaskContainerDetails>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
57 inline EcsTaskDetails& WithContainers(Aws::Vector<TaskContainerDetails>&& value) { SetContainers(std::move(value)); return *this;}
58 inline EcsTaskDetails& AddContainers(const TaskContainerDetails& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
59 inline EcsTaskDetails& AddContainers(TaskContainerDetails&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
61
63
67 inline const Aws::String& GetContainerInstanceArn() const{ return m_containerInstanceArn; }
68 inline bool ContainerInstanceArnHasBeenSet() const { return m_containerInstanceArnHasBeenSet; }
69 inline void SetContainerInstanceArn(const Aws::String& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = value; }
70 inline void SetContainerInstanceArn(Aws::String&& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = std::move(value); }
71 inline void SetContainerInstanceArn(const char* value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn.assign(value); }
72 inline EcsTaskDetails& WithContainerInstanceArn(const Aws::String& value) { SetContainerInstanceArn(value); return *this;}
73 inline EcsTaskDetails& WithContainerInstanceArn(Aws::String&& value) { SetContainerInstanceArn(std::move(value)); return *this;}
74 inline EcsTaskDetails& WithContainerInstanceArn(const char* value) { SetContainerInstanceArn(value); return *this;}
76
78
81 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
82 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
83 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
84 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
85 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
86 inline EcsTaskDetails& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
87 inline EcsTaskDetails& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
88 inline EcsTaskDetails& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
90
92
95 inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
96 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
97 inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
98 inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::move(value); }
99 inline EcsTaskDetails& WithEphemeralStorage(const EphemeralStorage& value) { SetEphemeralStorage(value); return *this;}
100 inline EcsTaskDetails& WithEphemeralStorage(EphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;}
102
104
110 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
111 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
112 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
113 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
114 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
115 inline EcsTaskDetails& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
116 inline EcsTaskDetails& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
117 inline EcsTaskDetails& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
119
121
124 inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
125 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
126 inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
127 inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
128 inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
129 inline EcsTaskDetails& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
130 inline EcsTaskDetails& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
131 inline EcsTaskDetails& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
133
135
138 inline const Aws::String& GetIpcMode() const{ return m_ipcMode; }
139 inline bool IpcModeHasBeenSet() const { return m_ipcModeHasBeenSet; }
140 inline void SetIpcMode(const Aws::String& value) { m_ipcModeHasBeenSet = true; m_ipcMode = value; }
141 inline void SetIpcMode(Aws::String&& value) { m_ipcModeHasBeenSet = true; m_ipcMode = std::move(value); }
142 inline void SetIpcMode(const char* value) { m_ipcModeHasBeenSet = true; m_ipcMode.assign(value); }
143 inline EcsTaskDetails& WithIpcMode(const Aws::String& value) { SetIpcMode(value); return *this;}
144 inline EcsTaskDetails& WithIpcMode(Aws::String&& value) { SetIpcMode(std::move(value)); return *this;}
145 inline EcsTaskDetails& WithIpcMode(const char* value) { SetIpcMode(value); return *this;}
147
149
158 inline const Aws::String& GetTaskRoleArn() const{ return m_taskRoleArn; }
159 inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
160 inline void SetTaskRoleArn(const Aws::String& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = value; }
161 inline void SetTaskRoleArn(Aws::String&& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = std::move(value); }
162 inline void SetTaskRoleArn(const char* value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn.assign(value); }
163 inline EcsTaskDetails& WithTaskRoleArn(const Aws::String& value) { SetTaskRoleArn(value); return *this;}
164 inline EcsTaskDetails& WithTaskRoleArn(Aws::String&& value) { SetTaskRoleArn(std::move(value)); return *this;}
165 inline EcsTaskDetails& WithTaskRoleArn(const char* value) { SetTaskRoleArn(value); return *this;}
167
169
172 inline const Aws::String& GetPidMode() const{ return m_pidMode; }
173 inline bool PidModeHasBeenSet() const { return m_pidModeHasBeenSet; }
174 inline void SetPidMode(const Aws::String& value) { m_pidModeHasBeenSet = true; m_pidMode = value; }
175 inline void SetPidMode(Aws::String&& value) { m_pidModeHasBeenSet = true; m_pidMode = std::move(value); }
176 inline void SetPidMode(const char* value) { m_pidModeHasBeenSet = true; m_pidMode.assign(value); }
177 inline EcsTaskDetails& WithPidMode(const Aws::String& value) { SetPidMode(value); return *this;}
178 inline EcsTaskDetails& WithPidMode(Aws::String&& value) { SetPidMode(std::move(value)); return *this;}
179 inline EcsTaskDetails& WithPidMode(const char* value) { SetPidMode(value); return *this;}
181
183
188 inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
189 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
190 inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
191 inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
193 inline EcsTaskDetails& WithNetworkConfiguration(NetworkConfiguration&& value) { SetNetworkConfiguration(std::move(value)); return *this;}
195
197
201 inline const RuntimePlatform& GetRuntimePlatform() const{ return m_runtimePlatform; }
202 inline bool RuntimePlatformHasBeenSet() const { return m_runtimePlatformHasBeenSet; }
203 inline void SetRuntimePlatform(const RuntimePlatform& value) { m_runtimePlatformHasBeenSet = true; m_runtimePlatform = value; }
204 inline void SetRuntimePlatform(RuntimePlatform&& value) { m_runtimePlatformHasBeenSet = true; m_runtimePlatform = std::move(value); }
205 inline EcsTaskDetails& WithRuntimePlatform(const RuntimePlatform& value) { SetRuntimePlatform(value); return *this;}
206 inline EcsTaskDetails& WithRuntimePlatform(RuntimePlatform&& value) { SetRuntimePlatform(std::move(value)); return *this;}
208
210
213 inline const Aws::Vector<Volume>& GetVolumes() const{ return m_volumes; }
214 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
215 inline void SetVolumes(const Aws::Vector<Volume>& value) { m_volumesHasBeenSet = true; m_volumes = value; }
216 inline void SetVolumes(Aws::Vector<Volume>&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); }
217 inline EcsTaskDetails& WithVolumes(const Aws::Vector<Volume>& value) { SetVolumes(value); return *this;}
218 inline EcsTaskDetails& WithVolumes(Aws::Vector<Volume>&& value) { SetVolumes(std::move(value)); return *this;}
219 inline EcsTaskDetails& AddVolumes(const Volume& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; }
220 inline EcsTaskDetails& AddVolumes(Volume&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; }
222 private:
223
225 bool m_containersHasBeenSet = false;
226
227 Aws::String m_containerInstanceArn;
228 bool m_containerInstanceArnHasBeenSet = false;
229
230 Aws::String m_taskArn;
231 bool m_taskArnHasBeenSet = false;
232
233 EphemeralStorage m_ephemeralStorage;
234 bool m_ephemeralStorageHasBeenSet = false;
235
236 Aws::String m_executionRoleArn;
237 bool m_executionRoleArnHasBeenSet = false;
238
239 Aws::String m_platformVersion;
240 bool m_platformVersionHasBeenSet = false;
241
242 Aws::String m_ipcMode;
243 bool m_ipcModeHasBeenSet = false;
244
245 Aws::String m_taskRoleArn;
246 bool m_taskRoleArnHasBeenSet = false;
247
248 Aws::String m_pidMode;
249 bool m_pidModeHasBeenSet = false;
250
251 NetworkConfiguration m_networkConfiguration;
252 bool m_networkConfigurationHasBeenSet = false;
253
254 RuntimePlatform m_runtimePlatform;
255 bool m_runtimePlatformHasBeenSet = false;
256
257 Aws::Vector<Volume> m_volumes;
258 bool m_volumesHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace Batch
263} // namespace Aws
const Aws::String & GetPidMode() const
EcsTaskDetails & WithContainers(const Aws::Vector< TaskContainerDetails > &value)
void SetTaskRoleArn(const char *value)
EcsTaskDetails & WithVolumes(const Aws::Vector< Volume > &value)
EcsTaskDetails & WithExecutionRoleArn(const Aws::String &value)
const Aws::String & GetTaskRoleArn() const
void SetPlatformVersion(const Aws::String &value)
void SetEphemeralStorage(EphemeralStorage &&value)
void SetContainerInstanceArn(const char *value)
void SetRuntimePlatform(const RuntimePlatform &value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EcsTaskDetails & WithPlatformVersion(const char *value)
EcsTaskDetails & AddVolumes(Volume &&value)
void SetTaskRoleArn(Aws::String &&value)
void SetRuntimePlatform(RuntimePlatform &&value)
void SetExecutionRoleArn(const Aws::String &value)
const RuntimePlatform & GetRuntimePlatform() const
const Aws::String & GetIpcMode() const
const Aws::String & GetContainerInstanceArn() const
void SetTaskRoleArn(const Aws::String &value)
EcsTaskDetails & WithNetworkConfiguration(NetworkConfiguration &&value)
void SetTaskArn(const Aws::String &value)
EcsTaskDetails & AddContainers(TaskContainerDetails &&value)
EcsTaskDetails & WithTaskRoleArn(const Aws::String &value)
const Aws::Vector< Volume > & GetVolumes() const
const EphemeralStorage & GetEphemeralStorage() const
EcsTaskDetails & WithTaskArn(const Aws::String &value)
void SetNetworkConfiguration(const NetworkConfiguration &value)
void SetPlatformVersion(const char *value)
AWS_BATCH_API EcsTaskDetails(Aws::Utils::Json::JsonView jsonValue)
EcsTaskDetails & WithPidMode(const Aws::String &value)
EcsTaskDetails & WithExecutionRoleArn(const char *value)
void SetPidMode(const Aws::String &value)
EcsTaskDetails & AddVolumes(const Volume &value)
const Aws::String & GetPlatformVersion() const
EcsTaskDetails & WithPidMode(Aws::String &&value)
EcsTaskDetails & WithContainerInstanceArn(const Aws::String &value)
EcsTaskDetails & WithContainerInstanceArn(Aws::String &&value)
EcsTaskDetails & WithIpcMode(Aws::String &&value)
EcsTaskDetails & WithIpcMode(const Aws::String &value)
void SetIpcMode(const Aws::String &value)
EcsTaskDetails & WithContainerInstanceArn(const char *value)
EcsTaskDetails & WithRuntimePlatform(RuntimePlatform &&value)
void SetPlatformVersion(Aws::String &&value)
void SetContainers(Aws::Vector< TaskContainerDetails > &&value)
EcsTaskDetails & WithTaskRoleArn(Aws::String &&value)
void SetExecutionRoleArn(Aws::String &&value)
const Aws::String & GetTaskArn() const
const NetworkConfiguration & GetNetworkConfiguration() const
void SetContainers(const Aws::Vector< TaskContainerDetails > &value)
EcsTaskDetails & WithExecutionRoleArn(Aws::String &&value)
EcsTaskDetails & WithEphemeralStorage(EphemeralStorage &&value)
EcsTaskDetails & AddContainers(const TaskContainerDetails &value)
void SetExecutionRoleArn(const char *value)
void SetPidMode(Aws::String &&value)
void SetTaskArn(Aws::String &&value)
void SetEphemeralStorage(const EphemeralStorage &value)
void SetTaskArn(const char *value)
EcsTaskDetails & WithTaskArn(const char *value)
AWS_BATCH_API EcsTaskDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPidMode(const char *value)
EcsTaskDetails & WithIpcMode(const char *value)
const Aws::Vector< TaskContainerDetails > & GetContainers() const
void SetVolumes(Aws::Vector< Volume > &&value)
void SetContainerInstanceArn(Aws::String &&value)
void SetVolumes(const Aws::Vector< Volume > &value)
void SetNetworkConfiguration(NetworkConfiguration &&value)
EcsTaskDetails & WithPlatformVersion(Aws::String &&value)
void SetContainerInstanceArn(const Aws::String &value)
EcsTaskDetails & WithVolumes(Aws::Vector< Volume > &&value)
const Aws::String & GetExecutionRoleArn() const
EcsTaskDetails & WithContainers(Aws::Vector< TaskContainerDetails > &&value)
EcsTaskDetails & WithTaskArn(Aws::String &&value)
void SetIpcMode(const char *value)
EcsTaskDetails & WithPlatformVersion(const Aws::String &value)
EcsTaskDetails & WithTaskRoleArn(const char *value)
EcsTaskDetails & WithEphemeralStorage(const EphemeralStorage &value)
EcsTaskDetails & WithRuntimePlatform(const RuntimePlatform &value)
EcsTaskDetails & WithPidMode(const char *value)
void SetIpcMode(Aws::String &&value)
EcsTaskDetails & WithNetworkConfiguration(const NetworkConfiguration &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