AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 EksContainer& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
70 template<typename ImageT = Aws::String>
71 EksContainer& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
73
75
84 inline const Aws::String& GetImagePullPolicy() const { return m_imagePullPolicy; }
85 inline bool ImagePullPolicyHasBeenSet() const { return m_imagePullPolicyHasBeenSet; }
86 template<typename ImagePullPolicyT = Aws::String>
87 void SetImagePullPolicy(ImagePullPolicyT&& value) { m_imagePullPolicyHasBeenSet = true; m_imagePullPolicy = std::forward<ImagePullPolicyT>(value); }
88 template<typename ImagePullPolicyT = Aws::String>
89 EksContainer& WithImagePullPolicy(ImagePullPolicyT&& value) { SetImagePullPolicy(std::forward<ImagePullPolicyT>(value)); return *this;}
91
93
112 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
113 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
114 template<typename CommandT = Aws::Vector<Aws::String>>
115 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
116 template<typename CommandT = Aws::Vector<Aws::String>>
117 EksContainer& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
118 template<typename CommandT = Aws::String>
119 EksContainer& AddCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command.emplace_back(std::forward<CommandT>(value)); return *this; }
121
123
145 inline const Aws::Vector<Aws::String>& GetArgs() const { return m_args; }
146 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
147 template<typename ArgsT = Aws::Vector<Aws::String>>
148 void SetArgs(ArgsT&& value) { m_argsHasBeenSet = true; m_args = std::forward<ArgsT>(value); }
149 template<typename ArgsT = Aws::Vector<Aws::String>>
150 EksContainer& WithArgs(ArgsT&& value) { SetArgs(std::forward<ArgsT>(value)); return *this;}
151 template<typename ArgsT = Aws::String>
152 EksContainer& AddArgs(ArgsT&& value) { m_argsHasBeenSet = true; m_args.emplace_back(std::forward<ArgsT>(value)); return *this; }
154
156
161 inline const Aws::Vector<EksContainerEnvironmentVariable>& GetEnv() const { return m_env; }
162 inline bool EnvHasBeenSet() const { return m_envHasBeenSet; }
163 template<typename EnvT = Aws::Vector<EksContainerEnvironmentVariable>>
164 void SetEnv(EnvT&& value) { m_envHasBeenSet = true; m_env = std::forward<EnvT>(value); }
165 template<typename EnvT = Aws::Vector<EksContainerEnvironmentVariable>>
166 EksContainer& WithEnv(EnvT&& value) { SetEnv(std::forward<EnvT>(value)); return *this;}
167 template<typename EnvT = EksContainerEnvironmentVariable>
168 EksContainer& AddEnv(EnvT&& value) { m_envHasBeenSet = true; m_env.emplace_back(std::forward<EnvT>(value)); return *this; }
170
172
180 inline const EksContainerResourceRequirements& GetResources() const { return m_resources; }
181 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
182 template<typename ResourcesT = EksContainerResourceRequirements>
183 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
184 template<typename ResourcesT = EksContainerResourceRequirements>
185 EksContainer& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
187
189
196 inline const Aws::Vector<EksContainerVolumeMount>& GetVolumeMounts() const { return m_volumeMounts; }
197 inline bool VolumeMountsHasBeenSet() const { return m_volumeMountsHasBeenSet; }
198 template<typename VolumeMountsT = Aws::Vector<EksContainerVolumeMount>>
199 void SetVolumeMounts(VolumeMountsT&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts = std::forward<VolumeMountsT>(value); }
200 template<typename VolumeMountsT = Aws::Vector<EksContainerVolumeMount>>
201 EksContainer& WithVolumeMounts(VolumeMountsT&& value) { SetVolumeMounts(std::forward<VolumeMountsT>(value)); return *this;}
202 template<typename VolumeMountsT = EksContainerVolumeMount>
203 EksContainer& AddVolumeMounts(VolumeMountsT&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts.emplace_back(std::forward<VolumeMountsT>(value)); return *this; }
205
207
213 inline const EksContainerSecurityContext& GetSecurityContext() const { return m_securityContext; }
214 inline bool SecurityContextHasBeenSet() const { return m_securityContextHasBeenSet; }
215 template<typename SecurityContextT = EksContainerSecurityContext>
216 void SetSecurityContext(SecurityContextT&& value) { m_securityContextHasBeenSet = true; m_securityContext = std::forward<SecurityContextT>(value); }
217 template<typename SecurityContextT = EksContainerSecurityContext>
218 EksContainer& WithSecurityContext(SecurityContextT&& value) { SetSecurityContext(std::forward<SecurityContextT>(value)); return *this;}
220 private:
221
222 Aws::String m_name;
223 bool m_nameHasBeenSet = false;
224
225 Aws::String m_image;
226 bool m_imageHasBeenSet = false;
227
228 Aws::String m_imagePullPolicy;
229 bool m_imagePullPolicyHasBeenSet = false;
230
231 Aws::Vector<Aws::String> m_command;
232 bool m_commandHasBeenSet = false;
233
235 bool m_argsHasBeenSet = false;
236
238 bool m_envHasBeenSet = false;
239
241 bool m_resourcesHasBeenSet = false;
242
244 bool m_volumeMountsHasBeenSet = false;
245
246 EksContainerSecurityContext m_securityContext;
247 bool m_securityContextHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace Batch
252} // 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