AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EksContainerDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/EksContainerEnvironmentVariable.h>
9#include <aws/batch/model/EksContainerResourceRequirements.h>
10#include <aws/batch/model/EksContainerSecurityContext.h>
11#include <aws/batch/model/EksContainerVolumeMount.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Batch {
25namespace Model {
26
35 public:
36 AWS_BATCH_API EksContainerDetail() = default;
39 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
55 EksContainerDetail& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetImage() const { return m_image; }
66 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
67 template <typename ImageT = Aws::String>
68 void SetImage(ImageT&& value) {
69 m_imageHasBeenSet = true;
70 m_image = std::forward<ImageT>(value);
71 }
72 template <typename ImageT = Aws::String>
73 EksContainerDetail& WithImage(ImageT&& value) {
74 SetImage(std::forward<ImageT>(value));
75 return *this;
76 }
78
80
88 inline const Aws::String& GetImagePullPolicy() const { return m_imagePullPolicy; }
89 inline bool ImagePullPolicyHasBeenSet() const { return m_imagePullPolicyHasBeenSet; }
90 template <typename ImagePullPolicyT = Aws::String>
91 void SetImagePullPolicy(ImagePullPolicyT&& value) {
92 m_imagePullPolicyHasBeenSet = true;
93 m_imagePullPolicy = std::forward<ImagePullPolicyT>(value);
94 }
95 template <typename ImagePullPolicyT = Aws::String>
96 EksContainerDetail& WithImagePullPolicy(ImagePullPolicyT&& value) {
97 SetImagePullPolicy(std::forward<ImagePullPolicyT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
109 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
110 template <typename CommandT = Aws::Vector<Aws::String>>
111 void SetCommand(CommandT&& value) {
112 m_commandHasBeenSet = true;
113 m_command = std::forward<CommandT>(value);
114 }
115 template <typename CommandT = Aws::Vector<Aws::String>>
116 EksContainerDetail& WithCommand(CommandT&& value) {
117 SetCommand(std::forward<CommandT>(value));
118 return *this;
119 }
120 template <typename CommandT = Aws::String>
121 EksContainerDetail& AddCommand(CommandT&& value) {
122 m_commandHasBeenSet = true;
123 m_command.emplace_back(std::forward<CommandT>(value));
124 return *this;
125 }
127
129
151 inline const Aws::Vector<Aws::String>& GetArgs() const { return m_args; }
152 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
153 template <typename ArgsT = Aws::Vector<Aws::String>>
154 void SetArgs(ArgsT&& value) {
155 m_argsHasBeenSet = true;
156 m_args = std::forward<ArgsT>(value);
157 }
158 template <typename ArgsT = Aws::Vector<Aws::String>>
159 EksContainerDetail& WithArgs(ArgsT&& value) {
160 SetArgs(std::forward<ArgsT>(value));
161 return *this;
162 }
163 template <typename ArgsT = Aws::String>
164 EksContainerDetail& AddArgs(ArgsT&& value) {
165 m_argsHasBeenSet = true;
166 m_args.emplace_back(std::forward<ArgsT>(value));
167 return *this;
168 }
170
172
177 inline const Aws::Vector<EksContainerEnvironmentVariable>& GetEnv() const { return m_env; }
178 inline bool EnvHasBeenSet() const { return m_envHasBeenSet; }
179 template <typename EnvT = Aws::Vector<EksContainerEnvironmentVariable>>
180 void SetEnv(EnvT&& value) {
181 m_envHasBeenSet = true;
182 m_env = std::forward<EnvT>(value);
183 }
184 template <typename EnvT = Aws::Vector<EksContainerEnvironmentVariable>>
186 SetEnv(std::forward<EnvT>(value));
187 return *this;
188 }
189 template <typename EnvT = EksContainerEnvironmentVariable>
190 EksContainerDetail& AddEnv(EnvT&& value) {
191 m_envHasBeenSet = true;
192 m_env.emplace_back(std::forward<EnvT>(value));
193 return *this;
194 }
196
198
206 inline const EksContainerResourceRequirements& GetResources() const { return m_resources; }
207 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
208 template <typename ResourcesT = EksContainerResourceRequirements>
209 void SetResources(ResourcesT&& value) {
210 m_resourcesHasBeenSet = true;
211 m_resources = std::forward<ResourcesT>(value);
212 }
213 template <typename ResourcesT = EksContainerResourceRequirements>
214 EksContainerDetail& WithResources(ResourcesT&& value) {
215 SetResources(std::forward<ResourcesT>(value));
216 return *this;
217 }
219
221
225 inline int GetExitCode() const { return m_exitCode; }
226 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
227 inline void SetExitCode(int value) {
228 m_exitCodeHasBeenSet = true;
229 m_exitCode = value;
230 }
231 inline EksContainerDetail& WithExitCode(int value) {
232 SetExitCode(value);
233 return *this;
234 }
236
238
242 inline const Aws::String& GetReason() const { return m_reason; }
243 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
244 template <typename ReasonT = Aws::String>
245 void SetReason(ReasonT&& value) {
246 m_reasonHasBeenSet = true;
247 m_reason = std::forward<ReasonT>(value);
248 }
249 template <typename ReasonT = Aws::String>
250 EksContainerDetail& WithReason(ReasonT&& value) {
251 SetReason(std::forward<ReasonT>(value));
252 return *this;
253 }
255
257
264 inline const Aws::Vector<EksContainerVolumeMount>& GetVolumeMounts() const { return m_volumeMounts; }
265 inline bool VolumeMountsHasBeenSet() const { return m_volumeMountsHasBeenSet; }
266 template <typename VolumeMountsT = Aws::Vector<EksContainerVolumeMount>>
267 void SetVolumeMounts(VolumeMountsT&& value) {
268 m_volumeMountsHasBeenSet = true;
269 m_volumeMounts = std::forward<VolumeMountsT>(value);
270 }
271 template <typename VolumeMountsT = Aws::Vector<EksContainerVolumeMount>>
272 EksContainerDetail& WithVolumeMounts(VolumeMountsT&& value) {
273 SetVolumeMounts(std::forward<VolumeMountsT>(value));
274 return *this;
275 }
276 template <typename VolumeMountsT = EksContainerVolumeMount>
277 EksContainerDetail& AddVolumeMounts(VolumeMountsT&& value) {
278 m_volumeMountsHasBeenSet = true;
279 m_volumeMounts.emplace_back(std::forward<VolumeMountsT>(value));
280 return *this;
281 }
283
285
291 inline const EksContainerSecurityContext& GetSecurityContext() const { return m_securityContext; }
292 inline bool SecurityContextHasBeenSet() const { return m_securityContextHasBeenSet; }
293 template <typename SecurityContextT = EksContainerSecurityContext>
294 void SetSecurityContext(SecurityContextT&& value) {
295 m_securityContextHasBeenSet = true;
296 m_securityContext = std::forward<SecurityContextT>(value);
297 }
298 template <typename SecurityContextT = EksContainerSecurityContext>
299 EksContainerDetail& WithSecurityContext(SecurityContextT&& value) {
300 SetSecurityContext(std::forward<SecurityContextT>(value));
301 return *this;
302 }
304 private:
305 Aws::String m_name;
306
307 Aws::String m_image;
308
309 Aws::String m_imagePullPolicy;
310
311 Aws::Vector<Aws::String> m_command;
312
314
316
318
319 int m_exitCode{0};
320
321 Aws::String m_reason;
322
324
325 EksContainerSecurityContext m_securityContext;
326 bool m_nameHasBeenSet = false;
327 bool m_imageHasBeenSet = false;
328 bool m_imagePullPolicyHasBeenSet = false;
329 bool m_commandHasBeenSet = false;
330 bool m_argsHasBeenSet = false;
331 bool m_envHasBeenSet = false;
332 bool m_resourcesHasBeenSet = false;
333 bool m_exitCodeHasBeenSet = false;
334 bool m_reasonHasBeenSet = false;
335 bool m_volumeMountsHasBeenSet = false;
336 bool m_securityContextHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace Batch
341} // namespace Aws
EksContainerDetail & WithName(NameT &&value)
const Aws::Vector< EksContainerEnvironmentVariable > & GetEnv() const
EksContainerDetail & WithEnv(EnvT &&value)
AWS_BATCH_API EksContainerDetail(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityContext(SecurityContextT &&value)
EksContainerDetail & WithImagePullPolicy(ImagePullPolicyT &&value)
const Aws::Vector< Aws::String > & GetArgs() const
EksContainerDetail & WithImage(ImageT &&value)
EksContainerDetail & WithCommand(CommandT &&value)
const Aws::String & GetImagePullPolicy() const
const Aws::String & GetReason() const
EksContainerDetail & AddArgs(ArgsT &&value)
EksContainerDetail & WithArgs(ArgsT &&value)
EksContainerDetail & AddCommand(CommandT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EksContainerDetail & WithSecurityContext(SecurityContextT &&value)
const EksContainerSecurityContext & GetSecurityContext() const
void SetImagePullPolicy(ImagePullPolicyT &&value)
const Aws::String & GetImage() const
EksContainerDetail & AddEnv(EnvT &&value)
EksContainerDetail & WithExitCode(int value)
EksContainerDetail & WithReason(ReasonT &&value)
EksContainerDetail & WithResources(ResourcesT &&value)
EksContainerDetail & WithVolumeMounts(VolumeMountsT &&value)
const EksContainerResourceRequirements & GetResources() const
const Aws::Vector< EksContainerVolumeMount > & GetVolumeMounts() const
const Aws::Vector< Aws::String > & GetCommand() const
const Aws::String & GetName() const
AWS_BATCH_API EksContainerDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API EksContainerDetail()=default
EksContainerDetail & AddVolumeMounts(VolumeMountsT &&value)
void SetVolumeMounts(VolumeMountsT &&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