AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EksContainerDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/batch/model/EksContainerResourceRequirements.h>
11#include <aws/batch/model/EksContainerSecurityContext.h>
12#include <aws/batch/model/EksContainerEnvironmentVariable.h>
13#include <aws/batch/model/EksContainerVolumeMount.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Batch
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_BATCH_API EksContainerDetail();
44 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
53 inline const Aws::String& GetName() const{ return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline EksContainerDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline EksContainerDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline EksContainerDetail& WithName(const char* value) { SetName(value); return *this;}
62
64
67 inline const Aws::String& GetImage() const{ return m_image; }
68 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
69 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
70 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
71 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
72 inline EksContainerDetail& WithImage(const Aws::String& value) { SetImage(value); return *this;}
73 inline EksContainerDetail& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
74 inline EksContainerDetail& WithImage(const char* value) { SetImage(value); return *this;}
76
78
86 inline const Aws::String& GetImagePullPolicy() const{ return m_imagePullPolicy; }
87 inline bool ImagePullPolicyHasBeenSet() const { return m_imagePullPolicyHasBeenSet; }
88 inline void SetImagePullPolicy(const Aws::String& value) { m_imagePullPolicyHasBeenSet = true; m_imagePullPolicy = value; }
89 inline void SetImagePullPolicy(Aws::String&& value) { m_imagePullPolicyHasBeenSet = true; m_imagePullPolicy = std::move(value); }
90 inline void SetImagePullPolicy(const char* value) { m_imagePullPolicyHasBeenSet = true; m_imagePullPolicy.assign(value); }
91 inline EksContainerDetail& WithImagePullPolicy(const Aws::String& value) { SetImagePullPolicy(value); return *this;}
92 inline EksContainerDetail& WithImagePullPolicy(Aws::String&& value) { SetImagePullPolicy(std::move(value)); return *this;}
93 inline EksContainerDetail& WithImagePullPolicy(const char* value) { SetImagePullPolicy(value); return *this;}
95
97
102 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
103 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
104 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
105 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
106 inline EksContainerDetail& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
107 inline EksContainerDetail& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
108 inline EksContainerDetail& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
109 inline EksContainerDetail& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
110 inline EksContainerDetail& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
112
114
136 inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
137 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
138 inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
139 inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
140 inline EksContainerDetail& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
141 inline EksContainerDetail& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(std::move(value)); return *this;}
142 inline EksContainerDetail& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
143 inline EksContainerDetail& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; }
144 inline EksContainerDetail& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
146
148
153 inline const Aws::Vector<EksContainerEnvironmentVariable>& GetEnv() const{ return m_env; }
154 inline bool EnvHasBeenSet() const { return m_envHasBeenSet; }
155 inline void SetEnv(const Aws::Vector<EksContainerEnvironmentVariable>& value) { m_envHasBeenSet = true; m_env = value; }
156 inline void SetEnv(Aws::Vector<EksContainerEnvironmentVariable>&& value) { m_envHasBeenSet = true; m_env = std::move(value); }
158 inline EksContainerDetail& WithEnv(Aws::Vector<EksContainerEnvironmentVariable>&& value) { SetEnv(std::move(value)); return *this;}
159 inline EksContainerDetail& AddEnv(const EksContainerEnvironmentVariable& value) { m_envHasBeenSet = true; m_env.push_back(value); return *this; }
160 inline EksContainerDetail& AddEnv(EksContainerEnvironmentVariable&& value) { m_envHasBeenSet = true; m_env.push_back(std::move(value)); return *this; }
162
164
172 inline const EksContainerResourceRequirements& GetResources() const{ return m_resources; }
173 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
174 inline void SetResources(const EksContainerResourceRequirements& value) { m_resourcesHasBeenSet = true; m_resources = value; }
175 inline void SetResources(EksContainerResourceRequirements&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
177 inline EksContainerDetail& WithResources(EksContainerResourceRequirements&& value) { SetResources(std::move(value)); return *this;}
179
181
185 inline int GetExitCode() const{ return m_exitCode; }
186 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
187 inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
188 inline EksContainerDetail& WithExitCode(int value) { SetExitCode(value); return *this;}
190
192
196 inline const Aws::String& GetReason() const{ return m_reason; }
197 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
198 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
199 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
200 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
201 inline EksContainerDetail& WithReason(const Aws::String& value) { SetReason(value); return *this;}
202 inline EksContainerDetail& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
203 inline EksContainerDetail& WithReason(const char* value) { SetReason(value); return *this;}
205
207
214 inline const Aws::Vector<EksContainerVolumeMount>& GetVolumeMounts() const{ return m_volumeMounts; }
215 inline bool VolumeMountsHasBeenSet() const { return m_volumeMountsHasBeenSet; }
216 inline void SetVolumeMounts(const Aws::Vector<EksContainerVolumeMount>& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts = value; }
217 inline void SetVolumeMounts(Aws::Vector<EksContainerVolumeMount>&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts = std::move(value); }
220 inline EksContainerDetail& AddVolumeMounts(const EksContainerVolumeMount& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts.push_back(value); return *this; }
221 inline EksContainerDetail& AddVolumeMounts(EksContainerVolumeMount&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts.push_back(std::move(value)); return *this; }
223
225
231 inline const EksContainerSecurityContext& GetSecurityContext() const{ return m_securityContext; }
232 inline bool SecurityContextHasBeenSet() const { return m_securityContextHasBeenSet; }
233 inline void SetSecurityContext(const EksContainerSecurityContext& value) { m_securityContextHasBeenSet = true; m_securityContext = value; }
234 inline void SetSecurityContext(EksContainerSecurityContext&& value) { m_securityContextHasBeenSet = true; m_securityContext = std::move(value); }
238 private:
239
240 Aws::String m_name;
241 bool m_nameHasBeenSet = false;
242
243 Aws::String m_image;
244 bool m_imageHasBeenSet = false;
245
246 Aws::String m_imagePullPolicy;
247 bool m_imagePullPolicyHasBeenSet = false;
248
249 Aws::Vector<Aws::String> m_command;
250 bool m_commandHasBeenSet = false;
251
253 bool m_argsHasBeenSet = false;
254
256 bool m_envHasBeenSet = false;
257
259 bool m_resourcesHasBeenSet = false;
260
261 int m_exitCode;
262 bool m_exitCodeHasBeenSet = false;
263
264 Aws::String m_reason;
265 bool m_reasonHasBeenSet = false;
266
268 bool m_volumeMountsHasBeenSet = false;
269
270 EksContainerSecurityContext m_securityContext;
271 bool m_securityContextHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace Batch
276} // namespace Aws
void SetResources(EksContainerResourceRequirements &&value)
EksContainerDetail & WithImagePullPolicy(Aws::String &&value)
EksContainerDetail & WithEnv(const Aws::Vector< EksContainerEnvironmentVariable > &value)
EksContainerDetail & AddEnv(EksContainerEnvironmentVariable &&value)
void SetReason(const Aws::String &value)
const Aws::Vector< EksContainerEnvironmentVariable > & GetEnv() const
EksContainerDetail & AddCommand(Aws::String &&value)
void SetSecurityContext(EksContainerSecurityContext &&value)
void SetArgs(Aws::Vector< Aws::String > &&value)
AWS_BATCH_API EksContainerDetail(Aws::Utils::Json::JsonView jsonValue)
void SetEnv(const Aws::Vector< EksContainerEnvironmentVariable > &value)
EksContainerDetail & WithImage(Aws::String &&value)
void SetCommand(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetArgs() const
EksContainerDetail & WithImagePullPolicy(const Aws::String &value)
void SetCommand(Aws::Vector< Aws::String > &&value)
EksContainerDetail & AddCommand(const Aws::String &value)
EksContainerDetail & WithCommand(Aws::Vector< Aws::String > &&value)
void SetImagePullPolicy(Aws::String &&value)
EksContainerDetail & AddArgs(const char *value)
void SetSecurityContext(const EksContainerSecurityContext &value)
EksContainerDetail & WithArgs(const Aws::Vector< Aws::String > &value)
EksContainerDetail & WithResources(EksContainerResourceRequirements &&value)
EksContainerDetail & WithImage(const Aws::String &value)
EksContainerDetail & AddVolumeMounts(const EksContainerVolumeMount &value)
const Aws::String & GetImagePullPolicy() const
const Aws::String & GetReason() const
EksContainerDetail & WithName(Aws::String &&value)
EksContainerDetail & AddCommand(const char *value)
EksContainerDetail & AddVolumeMounts(EksContainerVolumeMount &&value)
void SetVolumeMounts(const Aws::Vector< EksContainerVolumeMount > &value)
EksContainerDetail & WithCommand(const Aws::Vector< Aws::String > &value)
EksContainerDetail & WithVolumeMounts(const Aws::Vector< EksContainerVolumeMount > &value)
EksContainerDetail & WithName(const Aws::String &value)
EksContainerDetail & WithArgs(Aws::Vector< Aws::String > &&value)
EksContainerDetail & WithName(const char *value)
EksContainerDetail & AddArgs(Aws::String &&value)
void SetResources(const EksContainerResourceRequirements &value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EksContainerDetail & WithReason(const char *value)
EksContainerDetail & WithSecurityContext(EksContainerSecurityContext &&value)
EksContainerDetail & AddArgs(const Aws::String &value)
const EksContainerSecurityContext & GetSecurityContext() const
const Aws::String & GetImage() const
void SetArgs(const Aws::Vector< Aws::String > &value)
EksContainerDetail & WithImagePullPolicy(const char *value)
EksContainerDetail & WithExitCode(int value)
void SetImage(const Aws::String &value)
EksContainerDetail & WithSecurityContext(const EksContainerSecurityContext &value)
EksContainerDetail & WithResources(const EksContainerResourceRequirements &value)
void SetName(const Aws::String &value)
const EksContainerResourceRequirements & GetResources() const
EksContainerDetail & AddEnv(const EksContainerEnvironmentVariable &value)
const Aws::Vector< EksContainerVolumeMount > & GetVolumeMounts() const
void SetVolumeMounts(Aws::Vector< EksContainerVolumeMount > &&value)
EksContainerDetail & WithReason(const Aws::String &value)
const Aws::Vector< Aws::String > & GetCommand() const
const Aws::String & GetName() const
EksContainerDetail & WithEnv(Aws::Vector< EksContainerEnvironmentVariable > &&value)
AWS_BATCH_API EksContainerDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEnv(Aws::Vector< EksContainerEnvironmentVariable > &&value)
EksContainerDetail & WithReason(Aws::String &&value)
EksContainerDetail & WithImage(const char *value)
EksContainerDetail & WithVolumeMounts(Aws::Vector< EksContainerVolumeMount > &&value)
void SetImagePullPolicy(const Aws::String &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