AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EksContainer.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
40 {
41 public:
42 AWS_BATCH_API EksContainer();
43 AWS_BATCH_API EksContainer(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
54 inline const Aws::String& GetName() const{ return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
59 inline EksContainer& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline EksContainer& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline EksContainer& WithName(const char* value) { SetName(value); return *this;}
63
65
68 inline const Aws::String& GetImage() const{ return m_image; }
69 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
70 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
71 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
72 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
73 inline EksContainer& WithImage(const Aws::String& value) { SetImage(value); return *this;}
74 inline EksContainer& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
75 inline EksContainer& WithImage(const char* value) { SetImage(value); return *this;}
77
79
88 inline const Aws::String& GetImagePullPolicy() const{ return m_imagePullPolicy; }
89 inline bool ImagePullPolicyHasBeenSet() const { return m_imagePullPolicyHasBeenSet; }
90 inline void SetImagePullPolicy(const Aws::String& value) { m_imagePullPolicyHasBeenSet = true; m_imagePullPolicy = value; }
91 inline void SetImagePullPolicy(Aws::String&& value) { m_imagePullPolicyHasBeenSet = true; m_imagePullPolicy = std::move(value); }
92 inline void SetImagePullPolicy(const char* value) { m_imagePullPolicyHasBeenSet = true; m_imagePullPolicy.assign(value); }
93 inline EksContainer& WithImagePullPolicy(const Aws::String& value) { SetImagePullPolicy(value); return *this;}
94 inline EksContainer& WithImagePullPolicy(Aws::String&& value) { SetImagePullPolicy(std::move(value)); return *this;}
95 inline EksContainer& WithImagePullPolicy(const char* value) { SetImagePullPolicy(value); return *this;}
97
99
118 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
119 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
120 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
121 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
122 inline EksContainer& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
123 inline EksContainer& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
124 inline EksContainer& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
125 inline EksContainer& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
126 inline EksContainer& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
128
130
152 inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
153 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
154 inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
155 inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
156 inline EksContainer& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
157 inline EksContainer& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(std::move(value)); return *this;}
158 inline EksContainer& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
159 inline EksContainer& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; }
160 inline EksContainer& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
162
164
169 inline const Aws::Vector<EksContainerEnvironmentVariable>& GetEnv() const{ return m_env; }
170 inline bool EnvHasBeenSet() const { return m_envHasBeenSet; }
171 inline void SetEnv(const Aws::Vector<EksContainerEnvironmentVariable>& value) { m_envHasBeenSet = true; m_env = value; }
172 inline void SetEnv(Aws::Vector<EksContainerEnvironmentVariable>&& value) { m_envHasBeenSet = true; m_env = std::move(value); }
173 inline EksContainer& WithEnv(const Aws::Vector<EksContainerEnvironmentVariable>& value) { SetEnv(value); return *this;}
174 inline EksContainer& WithEnv(Aws::Vector<EksContainerEnvironmentVariable>&& value) { SetEnv(std::move(value)); return *this;}
175 inline EksContainer& AddEnv(const EksContainerEnvironmentVariable& value) { m_envHasBeenSet = true; m_env.push_back(value); return *this; }
176 inline EksContainer& AddEnv(EksContainerEnvironmentVariable&& value) { m_envHasBeenSet = true; m_env.push_back(std::move(value)); return *this; }
178
180
188 inline const EksContainerResourceRequirements& GetResources() const{ return m_resources; }
189 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
190 inline void SetResources(const EksContainerResourceRequirements& value) { m_resourcesHasBeenSet = true; m_resources = value; }
191 inline void SetResources(EksContainerResourceRequirements&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
192 inline EksContainer& WithResources(const EksContainerResourceRequirements& value) { SetResources(value); return *this;}
193 inline EksContainer& WithResources(EksContainerResourceRequirements&& value) { SetResources(std::move(value)); return *this;}
195
197
204 inline const Aws::Vector<EksContainerVolumeMount>& GetVolumeMounts() const{ return m_volumeMounts; }
205 inline bool VolumeMountsHasBeenSet() const { return m_volumeMountsHasBeenSet; }
206 inline void SetVolumeMounts(const Aws::Vector<EksContainerVolumeMount>& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts = value; }
207 inline void SetVolumeMounts(Aws::Vector<EksContainerVolumeMount>&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts = std::move(value); }
209 inline EksContainer& WithVolumeMounts(Aws::Vector<EksContainerVolumeMount>&& value) { SetVolumeMounts(std::move(value)); return *this;}
210 inline EksContainer& AddVolumeMounts(const EksContainerVolumeMount& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts.push_back(value); return *this; }
211 inline EksContainer& AddVolumeMounts(EksContainerVolumeMount&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts.push_back(std::move(value)); return *this; }
213
215
221 inline const EksContainerSecurityContext& GetSecurityContext() const{ return m_securityContext; }
222 inline bool SecurityContextHasBeenSet() const { return m_securityContextHasBeenSet; }
223 inline void SetSecurityContext(const EksContainerSecurityContext& value) { m_securityContextHasBeenSet = true; m_securityContext = value; }
224 inline void SetSecurityContext(EksContainerSecurityContext&& value) { m_securityContextHasBeenSet = true; m_securityContext = std::move(value); }
226 inline EksContainer& WithSecurityContext(EksContainerSecurityContext&& value) { SetSecurityContext(std::move(value)); return *this;}
228 private:
229
230 Aws::String m_name;
231 bool m_nameHasBeenSet = false;
232
233 Aws::String m_image;
234 bool m_imageHasBeenSet = false;
235
236 Aws::String m_imagePullPolicy;
237 bool m_imagePullPolicyHasBeenSet = false;
238
239 Aws::Vector<Aws::String> m_command;
240 bool m_commandHasBeenSet = false;
241
243 bool m_argsHasBeenSet = false;
244
246 bool m_envHasBeenSet = false;
247
249 bool m_resourcesHasBeenSet = false;
250
252 bool m_volumeMountsHasBeenSet = false;
253
254 EksContainerSecurityContext m_securityContext;
255 bool m_securityContextHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace Batch
260} // namespace Aws
void SetCommand(Aws::Vector< Aws::String > &&value)
EksContainer & WithImagePullPolicy(Aws::String &&value)
EksContainer & WithArgs(const Aws::Vector< Aws::String > &value)
EksContainer & AddArgs(Aws::String &&value)
EksContainer & WithName(const char *value)
AWS_BATCH_API EksContainer(Aws::Utils::Json::JsonView jsonValue)
void SetCommand(const Aws::Vector< Aws::String > &value)
void SetVolumeMounts(const Aws::Vector< EksContainerVolumeMount > &value)
void SetVolumeMounts(Aws::Vector< EksContainerVolumeMount > &&value)
void SetArgs(Aws::Vector< Aws::String > &&value)
void SetSecurityContext(const EksContainerSecurityContext &value)
EksContainer & WithImage(const char *value)
EksContainer & WithResources(const EksContainerResourceRequirements &value)
EksContainer & WithImagePullPolicy(const char *value)
void SetName(const Aws::String &value)
void SetSecurityContext(EksContainerSecurityContext &&value)
EksContainer & WithVolumeMounts(const Aws::Vector< EksContainerVolumeMount > &value)
const Aws::String & GetImage() const
const EksContainerResourceRequirements & GetResources() const
EksContainer & AddArgs(const char *value)
const Aws::Vector< Aws::String > & GetCommand() const
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EksContainer & WithEnv(const Aws::Vector< EksContainerEnvironmentVariable > &value)
void SetImagePullPolicy(const char *value)
EksContainer & AddArgs(const Aws::String &value)
EksContainer & WithArgs(Aws::Vector< Aws::String > &&value)
EksContainer & WithImage(Aws::String &&value)
void SetImage(const Aws::String &value)
EksContainer & AddEnv(EksContainerEnvironmentVariable &&value)
EksContainer & AddVolumeMounts(EksContainerVolumeMount &&value)
void SetName(const char *value)
const Aws::String & GetName() const
void SetName(Aws::String &&value)
EksContainer & WithResources(EksContainerResourceRequirements &&value)
void SetImage(Aws::String &&value)
void SetResources(const EksContainerResourceRequirements &value)
AWS_BATCH_API EksContainer & operator=(Aws::Utils::Json::JsonView jsonValue)
EksContainer & AddVolumeMounts(const EksContainerVolumeMount &value)
void SetImagePullPolicy(Aws::String &&value)
const Aws::Vector< EksContainerEnvironmentVariable > & GetEnv() const
EksContainer & AddEnv(const EksContainerEnvironmentVariable &value)
const Aws::Vector< Aws::String > & GetArgs() const
void SetEnv(Aws::Vector< EksContainerEnvironmentVariable > &&value)
void SetEnv(const Aws::Vector< EksContainerEnvironmentVariable > &value)
EksContainer & AddCommand(const char *value)
const EksContainerSecurityContext & GetSecurityContext() const
EksContainer & WithCommand(const Aws::Vector< Aws::String > &value)
const Aws::Vector< EksContainerVolumeMount > & GetVolumeMounts() const
EksContainer & WithSecurityContext(EksContainerSecurityContext &&value)
EksContainer & WithSecurityContext(const EksContainerSecurityContext &value)
EksContainer & AddCommand(Aws::String &&value)
EksContainer & WithImage(const Aws::String &value)
void SetImagePullPolicy(const Aws::String &value)
EksContainer & AddCommand(const Aws::String &value)
EksContainer & WithEnv(Aws::Vector< EksContainerEnvironmentVariable > &&value)
void SetResources(EksContainerResourceRequirements &&value)
EksContainer & WithVolumeMounts(Aws::Vector< EksContainerVolumeMount > &&value)
const Aws::String & GetImagePullPolicy() const
EksContainer & WithCommand(Aws::Vector< Aws::String > &&value)
EksContainer & WithName(const Aws::String &value)
EksContainer & WithName(Aws::String &&value)
void SetArgs(const Aws::Vector< Aws::String > &value)
EksContainer & WithImagePullPolicy(const Aws::String &value)
void SetImage(const char *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