AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 EksContainerDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
69 template<typename ImageT = Aws::String>
70 EksContainerDetail& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
72
74
82 inline const Aws::String& GetImagePullPolicy() const { return m_imagePullPolicy; }
83 inline bool ImagePullPolicyHasBeenSet() const { return m_imagePullPolicyHasBeenSet; }
84 template<typename ImagePullPolicyT = Aws::String>
85 void SetImagePullPolicy(ImagePullPolicyT&& value) { m_imagePullPolicyHasBeenSet = true; m_imagePullPolicy = std::forward<ImagePullPolicyT>(value); }
86 template<typename ImagePullPolicyT = Aws::String>
87 EksContainerDetail& WithImagePullPolicy(ImagePullPolicyT&& value) { SetImagePullPolicy(std::forward<ImagePullPolicyT>(value)); return *this;}
89
91
96 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
97 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
98 template<typename CommandT = Aws::Vector<Aws::String>>
99 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
100 template<typename CommandT = Aws::Vector<Aws::String>>
101 EksContainerDetail& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
102 template<typename CommandT = Aws::String>
103 EksContainerDetail& AddCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command.emplace_back(std::forward<CommandT>(value)); return *this; }
105
107
129 inline const Aws::Vector<Aws::String>& GetArgs() const { return m_args; }
130 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
131 template<typename ArgsT = Aws::Vector<Aws::String>>
132 void SetArgs(ArgsT&& value) { m_argsHasBeenSet = true; m_args = std::forward<ArgsT>(value); }
133 template<typename ArgsT = Aws::Vector<Aws::String>>
134 EksContainerDetail& WithArgs(ArgsT&& value) { SetArgs(std::forward<ArgsT>(value)); return *this;}
135 template<typename ArgsT = Aws::String>
136 EksContainerDetail& AddArgs(ArgsT&& value) { m_argsHasBeenSet = true; m_args.emplace_back(std::forward<ArgsT>(value)); return *this; }
138
140
145 inline const Aws::Vector<EksContainerEnvironmentVariable>& GetEnv() const { return m_env; }
146 inline bool EnvHasBeenSet() const { return m_envHasBeenSet; }
147 template<typename EnvT = Aws::Vector<EksContainerEnvironmentVariable>>
148 void SetEnv(EnvT&& value) { m_envHasBeenSet = true; m_env = std::forward<EnvT>(value); }
149 template<typename EnvT = Aws::Vector<EksContainerEnvironmentVariable>>
150 EksContainerDetail& WithEnv(EnvT&& value) { SetEnv(std::forward<EnvT>(value)); return *this;}
151 template<typename EnvT = EksContainerEnvironmentVariable>
152 EksContainerDetail& AddEnv(EnvT&& value) { m_envHasBeenSet = true; m_env.emplace_back(std::forward<EnvT>(value)); return *this; }
154
156
164 inline const EksContainerResourceRequirements& GetResources() const { return m_resources; }
165 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
166 template<typename ResourcesT = EksContainerResourceRequirements>
167 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
168 template<typename ResourcesT = EksContainerResourceRequirements>
169 EksContainerDetail& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
171
173
177 inline int GetExitCode() const { return m_exitCode; }
178 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
179 inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
180 inline EksContainerDetail& WithExitCode(int value) { SetExitCode(value); return *this;}
182
184
188 inline const Aws::String& GetReason() const { return m_reason; }
189 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
190 template<typename ReasonT = Aws::String>
191 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
192 template<typename ReasonT = Aws::String>
193 EksContainerDetail& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(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 template<typename VolumeMountsT = Aws::Vector<EksContainerVolumeMount>>
207 void SetVolumeMounts(VolumeMountsT&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts = std::forward<VolumeMountsT>(value); }
208 template<typename VolumeMountsT = Aws::Vector<EksContainerVolumeMount>>
209 EksContainerDetail& WithVolumeMounts(VolumeMountsT&& value) { SetVolumeMounts(std::forward<VolumeMountsT>(value)); return *this;}
210 template<typename VolumeMountsT = EksContainerVolumeMount>
211 EksContainerDetail& AddVolumeMounts(VolumeMountsT&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts.emplace_back(std::forward<VolumeMountsT>(value)); return *this; }
213
215
221 inline const EksContainerSecurityContext& GetSecurityContext() const { return m_securityContext; }
222 inline bool SecurityContextHasBeenSet() const { return m_securityContextHasBeenSet; }
223 template<typename SecurityContextT = EksContainerSecurityContext>
224 void SetSecurityContext(SecurityContextT&& value) { m_securityContextHasBeenSet = true; m_securityContext = std::forward<SecurityContextT>(value); }
225 template<typename SecurityContextT = EksContainerSecurityContext>
226 EksContainerDetail& WithSecurityContext(SecurityContextT&& value) { SetSecurityContext(std::forward<SecurityContextT>(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
251 int m_exitCode{0};
252 bool m_exitCodeHasBeenSet = false;
253
254 Aws::String m_reason;
255 bool m_reasonHasBeenSet = false;
256
258 bool m_volumeMountsHasBeenSet = false;
259
260 EksContainerSecurityContext m_securityContext;
261 bool m_securityContextHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace Batch
266} // 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