AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EksContainer.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
36 public:
37 AWS_BATCH_API EksContainer() = default;
38 AWS_BATCH_API EksContainer(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template <typename NameT = Aws::String>
51 void SetName(NameT&& value) {
52 m_nameHasBeenSet = true;
53 m_name = std::forward<NameT>(value);
54 }
55 template <typename NameT = Aws::String>
56 EksContainer& WithName(NameT&& value) {
57 SetName(std::forward<NameT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetImage() const { return m_image; }
67 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
68 template <typename ImageT = Aws::String>
69 void SetImage(ImageT&& value) {
70 m_imageHasBeenSet = true;
71 m_image = std::forward<ImageT>(value);
72 }
73 template <typename ImageT = Aws::String>
74 EksContainer& WithImage(ImageT&& value) {
75 SetImage(std::forward<ImageT>(value));
76 return *this;
77 }
79
81
90 inline const Aws::String& GetImagePullPolicy() const { return m_imagePullPolicy; }
91 inline bool ImagePullPolicyHasBeenSet() const { return m_imagePullPolicyHasBeenSet; }
92 template <typename ImagePullPolicyT = Aws::String>
93 void SetImagePullPolicy(ImagePullPolicyT&& value) {
94 m_imagePullPolicyHasBeenSet = true;
95 m_imagePullPolicy = std::forward<ImagePullPolicyT>(value);
96 }
97 template <typename ImagePullPolicyT = Aws::String>
98 EksContainer& WithImagePullPolicy(ImagePullPolicyT&& value) {
99 SetImagePullPolicy(std::forward<ImagePullPolicyT>(value));
100 return *this;
101 }
103
105
124 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
125 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
126 template <typename CommandT = Aws::Vector<Aws::String>>
127 void SetCommand(CommandT&& value) {
128 m_commandHasBeenSet = true;
129 m_command = std::forward<CommandT>(value);
130 }
131 template <typename CommandT = Aws::Vector<Aws::String>>
132 EksContainer& WithCommand(CommandT&& value) {
133 SetCommand(std::forward<CommandT>(value));
134 return *this;
135 }
136 template <typename CommandT = Aws::String>
137 EksContainer& AddCommand(CommandT&& value) {
138 m_commandHasBeenSet = true;
139 m_command.emplace_back(std::forward<CommandT>(value));
140 return *this;
141 }
143
145
167 inline const Aws::Vector<Aws::String>& GetArgs() const { return m_args; }
168 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
169 template <typename ArgsT = Aws::Vector<Aws::String>>
170 void SetArgs(ArgsT&& value) {
171 m_argsHasBeenSet = true;
172 m_args = std::forward<ArgsT>(value);
173 }
174 template <typename ArgsT = Aws::Vector<Aws::String>>
175 EksContainer& WithArgs(ArgsT&& value) {
176 SetArgs(std::forward<ArgsT>(value));
177 return *this;
178 }
179 template <typename ArgsT = Aws::String>
180 EksContainer& AddArgs(ArgsT&& value) {
181 m_argsHasBeenSet = true;
182 m_args.emplace_back(std::forward<ArgsT>(value));
183 return *this;
184 }
186
188
193 inline const Aws::Vector<EksContainerEnvironmentVariable>& GetEnv() const { return m_env; }
194 inline bool EnvHasBeenSet() const { return m_envHasBeenSet; }
195 template <typename EnvT = Aws::Vector<EksContainerEnvironmentVariable>>
196 void SetEnv(EnvT&& value) {
197 m_envHasBeenSet = true;
198 m_env = std::forward<EnvT>(value);
199 }
200 template <typename EnvT = Aws::Vector<EksContainerEnvironmentVariable>>
201 EksContainer& WithEnv(EnvT&& value) {
202 SetEnv(std::forward<EnvT>(value));
203 return *this;
204 }
205 template <typename EnvT = EksContainerEnvironmentVariable>
206 EksContainer& AddEnv(EnvT&& value) {
207 m_envHasBeenSet = true;
208 m_env.emplace_back(std::forward<EnvT>(value));
209 return *this;
210 }
212
214
222 inline const EksContainerResourceRequirements& GetResources() const { return m_resources; }
223 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
224 template <typename ResourcesT = EksContainerResourceRequirements>
225 void SetResources(ResourcesT&& value) {
226 m_resourcesHasBeenSet = true;
227 m_resources = std::forward<ResourcesT>(value);
228 }
229 template <typename ResourcesT = EksContainerResourceRequirements>
230 EksContainer& WithResources(ResourcesT&& value) {
231 SetResources(std::forward<ResourcesT>(value));
232 return *this;
233 }
235
237
244 inline const Aws::Vector<EksContainerVolumeMount>& GetVolumeMounts() const { return m_volumeMounts; }
245 inline bool VolumeMountsHasBeenSet() const { return m_volumeMountsHasBeenSet; }
246 template <typename VolumeMountsT = Aws::Vector<EksContainerVolumeMount>>
247 void SetVolumeMounts(VolumeMountsT&& value) {
248 m_volumeMountsHasBeenSet = true;
249 m_volumeMounts = std::forward<VolumeMountsT>(value);
250 }
251 template <typename VolumeMountsT = Aws::Vector<EksContainerVolumeMount>>
252 EksContainer& WithVolumeMounts(VolumeMountsT&& value) {
253 SetVolumeMounts(std::forward<VolumeMountsT>(value));
254 return *this;
255 }
256 template <typename VolumeMountsT = EksContainerVolumeMount>
257 EksContainer& AddVolumeMounts(VolumeMountsT&& value) {
258 m_volumeMountsHasBeenSet = true;
259 m_volumeMounts.emplace_back(std::forward<VolumeMountsT>(value));
260 return *this;
261 }
263
265
271 inline const EksContainerSecurityContext& GetSecurityContext() const { return m_securityContext; }
272 inline bool SecurityContextHasBeenSet() const { return m_securityContextHasBeenSet; }
273 template <typename SecurityContextT = EksContainerSecurityContext>
274 void SetSecurityContext(SecurityContextT&& value) {
275 m_securityContextHasBeenSet = true;
276 m_securityContext = std::forward<SecurityContextT>(value);
277 }
278 template <typename SecurityContextT = EksContainerSecurityContext>
279 EksContainer& WithSecurityContext(SecurityContextT&& value) {
280 SetSecurityContext(std::forward<SecurityContextT>(value));
281 return *this;
282 }
284 private:
285 Aws::String m_name;
286
287 Aws::String m_image;
288
289 Aws::String m_imagePullPolicy;
290
291 Aws::Vector<Aws::String> m_command;
292
294
296
298
300
301 EksContainerSecurityContext m_securityContext;
302 bool m_nameHasBeenSet = false;
303 bool m_imageHasBeenSet = false;
304 bool m_imagePullPolicyHasBeenSet = false;
305 bool m_commandHasBeenSet = false;
306 bool m_argsHasBeenSet = false;
307 bool m_envHasBeenSet = false;
308 bool m_resourcesHasBeenSet = false;
309 bool m_volumeMountsHasBeenSet = false;
310 bool m_securityContextHasBeenSet = false;
311};
312
313} // namespace Model
314} // namespace Batch
315} // namespace Aws
void SetSecurityContext(SecurityContextT &&value)
EksContainer & AddArgs(ArgsT &&value)
AWS_BATCH_API EksContainer()=default
AWS_BATCH_API EksContainer(Aws::Utils::Json::JsonView jsonValue)
EksContainer & WithImagePullPolicy(ImagePullPolicyT &&value)
void SetCommand(CommandT &&value)
void SetResources(ResourcesT &&value)
EksContainer & WithSecurityContext(SecurityContextT &&value)
EksContainer & WithArgs(ArgsT &&value)
EksContainer & WithName(NameT &&value)
const Aws::String & GetImage() const
const EksContainerResourceRequirements & GetResources() const
EksContainer & WithImage(ImageT &&value)
void SetImagePullPolicy(ImagePullPolicyT &&value)
const Aws::Vector< Aws::String > & GetCommand() const
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVolumeMounts(VolumeMountsT &&value)
EksContainer & AddEnv(EnvT &&value)
EksContainer & AddVolumeMounts(VolumeMountsT &&value)
EksContainer & AddCommand(CommandT &&value)
const Aws::String & GetName() const
AWS_BATCH_API EksContainer & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< EksContainerEnvironmentVariable > & GetEnv() const
const Aws::Vector< Aws::String > & GetArgs() const
EksContainer & WithVolumeMounts(VolumeMountsT &&value)
const EksContainerSecurityContext & GetSecurityContext() const
EksContainer & WithCommand(CommandT &&value)
const Aws::Vector< EksContainerVolumeMount > & GetVolumeMounts() const
void SetImage(ImageT &&value)
EksContainer & WithResources(ResourcesT &&value)
EksContainer & WithEnv(EnvT &&value)
const Aws::String & GetImagePullPolicy() const
void SetName(NameT &&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