AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EksPodPropertiesDetail.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/EksMetadata.h>
11#include <aws/batch/model/ImagePullSecret.h>
12#include <aws/batch/model/EksContainerDetail.h>
13#include <aws/batch/model/EksVolume.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
37 {
38 public:
39 AWS_BATCH_API EksPodPropertiesDetail();
42 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
57 inline const Aws::String& GetServiceAccountName() const{ return m_serviceAccountName; }
58 inline bool ServiceAccountNameHasBeenSet() const { return m_serviceAccountNameHasBeenSet; }
59 inline void SetServiceAccountName(const Aws::String& value) { m_serviceAccountNameHasBeenSet = true; m_serviceAccountName = value; }
60 inline void SetServiceAccountName(Aws::String&& value) { m_serviceAccountNameHasBeenSet = true; m_serviceAccountName = std::move(value); }
61 inline void SetServiceAccountName(const char* value) { m_serviceAccountNameHasBeenSet = true; m_serviceAccountName.assign(value); }
63 inline EksPodPropertiesDetail& WithServiceAccountName(Aws::String&& value) { SetServiceAccountName(std::move(value)); return *this;}
64 inline EksPodPropertiesDetail& WithServiceAccountName(const char* value) { SetServiceAccountName(value); return *this;}
66
68
79 inline bool GetHostNetwork() const{ return m_hostNetwork; }
80 inline bool HostNetworkHasBeenSet() const { return m_hostNetworkHasBeenSet; }
81 inline void SetHostNetwork(bool value) { m_hostNetworkHasBeenSet = true; m_hostNetwork = value; }
82 inline EksPodPropertiesDetail& WithHostNetwork(bool value) { SetHostNetwork(value); return *this;}
84
86
108 inline const Aws::String& GetDnsPolicy() const{ return m_dnsPolicy; }
109 inline bool DnsPolicyHasBeenSet() const { return m_dnsPolicyHasBeenSet; }
110 inline void SetDnsPolicy(const Aws::String& value) { m_dnsPolicyHasBeenSet = true; m_dnsPolicy = value; }
111 inline void SetDnsPolicy(Aws::String&& value) { m_dnsPolicyHasBeenSet = true; m_dnsPolicy = std::move(value); }
112 inline void SetDnsPolicy(const char* value) { m_dnsPolicyHasBeenSet = true; m_dnsPolicy.assign(value); }
113 inline EksPodPropertiesDetail& WithDnsPolicy(const Aws::String& value) { SetDnsPolicy(value); return *this;}
114 inline EksPodPropertiesDetail& WithDnsPolicy(Aws::String&& value) { SetDnsPolicy(std::move(value)); return *this;}
115 inline EksPodPropertiesDetail& WithDnsPolicy(const char* value) { SetDnsPolicy(value); return *this;}
117
119
123 inline const Aws::Vector<ImagePullSecret>& GetImagePullSecrets() const{ return m_imagePullSecrets; }
124 inline bool ImagePullSecretsHasBeenSet() const { return m_imagePullSecretsHasBeenSet; }
125 inline void SetImagePullSecrets(const Aws::Vector<ImagePullSecret>& value) { m_imagePullSecretsHasBeenSet = true; m_imagePullSecrets = value; }
126 inline void SetImagePullSecrets(Aws::Vector<ImagePullSecret>&& value) { m_imagePullSecretsHasBeenSet = true; m_imagePullSecrets = std::move(value); }
129 inline EksPodPropertiesDetail& AddImagePullSecrets(const ImagePullSecret& value) { m_imagePullSecretsHasBeenSet = true; m_imagePullSecrets.push_back(value); return *this; }
130 inline EksPodPropertiesDetail& AddImagePullSecrets(ImagePullSecret&& value) { m_imagePullSecretsHasBeenSet = true; m_imagePullSecrets.push_back(std::move(value)); return *this; }
132
134
137 inline const Aws::Vector<EksContainerDetail>& GetContainers() const{ return m_containers; }
138 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
139 inline void SetContainers(const Aws::Vector<EksContainerDetail>& value) { m_containersHasBeenSet = true; m_containers = value; }
140 inline void SetContainers(Aws::Vector<EksContainerDetail>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
142 inline EksPodPropertiesDetail& WithContainers(Aws::Vector<EksContainerDetail>&& value) { SetContainers(std::move(value)); return *this;}
143 inline EksPodPropertiesDetail& AddContainers(const EksContainerDetail& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
144 inline EksPodPropertiesDetail& AddContainers(EksContainerDetail&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
146
148
152 inline const Aws::Vector<EksContainerDetail>& GetInitContainers() const{ return m_initContainers; }
153 inline bool InitContainersHasBeenSet() const { return m_initContainersHasBeenSet; }
154 inline void SetInitContainers(const Aws::Vector<EksContainerDetail>& value) { m_initContainersHasBeenSet = true; m_initContainers = value; }
155 inline void SetInitContainers(Aws::Vector<EksContainerDetail>&& value) { m_initContainersHasBeenSet = true; m_initContainers = std::move(value); }
158 inline EksPodPropertiesDetail& AddInitContainers(const EksContainerDetail& value) { m_initContainersHasBeenSet = true; m_initContainers.push_back(value); return *this; }
159 inline EksPodPropertiesDetail& AddInitContainers(EksContainerDetail&& value) { m_initContainersHasBeenSet = true; m_initContainers.push_back(std::move(value)); return *this; }
161
163
166 inline const Aws::Vector<EksVolume>& GetVolumes() const{ return m_volumes; }
167 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
168 inline void SetVolumes(const Aws::Vector<EksVolume>& value) { m_volumesHasBeenSet = true; m_volumes = value; }
169 inline void SetVolumes(Aws::Vector<EksVolume>&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); }
170 inline EksPodPropertiesDetail& WithVolumes(const Aws::Vector<EksVolume>& value) { SetVolumes(value); return *this;}
171 inline EksPodPropertiesDetail& WithVolumes(Aws::Vector<EksVolume>&& value) { SetVolumes(std::move(value)); return *this;}
172 inline EksPodPropertiesDetail& AddVolumes(const EksVolume& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; }
173 inline EksPodPropertiesDetail& AddVolumes(EksVolume&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; }
175
177
180 inline const Aws::String& GetPodName() const{ return m_podName; }
181 inline bool PodNameHasBeenSet() const { return m_podNameHasBeenSet; }
182 inline void SetPodName(const Aws::String& value) { m_podNameHasBeenSet = true; m_podName = value; }
183 inline void SetPodName(Aws::String&& value) { m_podNameHasBeenSet = true; m_podName = std::move(value); }
184 inline void SetPodName(const char* value) { m_podNameHasBeenSet = true; m_podName.assign(value); }
185 inline EksPodPropertiesDetail& WithPodName(const Aws::String& value) { SetPodName(value); return *this;}
186 inline EksPodPropertiesDetail& WithPodName(Aws::String&& value) { SetPodName(std::move(value)); return *this;}
187 inline EksPodPropertiesDetail& WithPodName(const char* value) { SetPodName(value); return *this;}
189
191
194 inline const Aws::String& GetNodeName() const{ return m_nodeName; }
195 inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; }
196 inline void SetNodeName(const Aws::String& value) { m_nodeNameHasBeenSet = true; m_nodeName = value; }
197 inline void SetNodeName(Aws::String&& value) { m_nodeNameHasBeenSet = true; m_nodeName = std::move(value); }
198 inline void SetNodeName(const char* value) { m_nodeNameHasBeenSet = true; m_nodeName.assign(value); }
199 inline EksPodPropertiesDetail& WithNodeName(const Aws::String& value) { SetNodeName(value); return *this;}
200 inline EksPodPropertiesDetail& WithNodeName(Aws::String&& value) { SetNodeName(std::move(value)); return *this;}
201 inline EksPodPropertiesDetail& WithNodeName(const char* value) { SetNodeName(value); return *this;}
203
205
212 inline const EksMetadata& GetMetadata() const{ return m_metadata; }
213 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
214 inline void SetMetadata(const EksMetadata& value) { m_metadataHasBeenSet = true; m_metadata = value; }
215 inline void SetMetadata(EksMetadata&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
216 inline EksPodPropertiesDetail& WithMetadata(const EksMetadata& value) { SetMetadata(value); return *this;}
217 inline EksPodPropertiesDetail& WithMetadata(EksMetadata&& value) { SetMetadata(std::move(value)); return *this;}
219
221
227 inline bool GetShareProcessNamespace() const{ return m_shareProcessNamespace; }
228 inline bool ShareProcessNamespaceHasBeenSet() const { return m_shareProcessNamespaceHasBeenSet; }
229 inline void SetShareProcessNamespace(bool value) { m_shareProcessNamespaceHasBeenSet = true; m_shareProcessNamespace = value; }
232 private:
233
234 Aws::String m_serviceAccountName;
235 bool m_serviceAccountNameHasBeenSet = false;
236
237 bool m_hostNetwork;
238 bool m_hostNetworkHasBeenSet = false;
239
240 Aws::String m_dnsPolicy;
241 bool m_dnsPolicyHasBeenSet = false;
242
243 Aws::Vector<ImagePullSecret> m_imagePullSecrets;
244 bool m_imagePullSecretsHasBeenSet = false;
245
247 bool m_containersHasBeenSet = false;
248
249 Aws::Vector<EksContainerDetail> m_initContainers;
250 bool m_initContainersHasBeenSet = false;
251
252 Aws::Vector<EksVolume> m_volumes;
253 bool m_volumesHasBeenSet = false;
254
255 Aws::String m_podName;
256 bool m_podNameHasBeenSet = false;
257
258 Aws::String m_nodeName;
259 bool m_nodeNameHasBeenSet = false;
260
261 EksMetadata m_metadata;
262 bool m_metadataHasBeenSet = false;
263
264 bool m_shareProcessNamespace;
265 bool m_shareProcessNamespaceHasBeenSet = false;
266 };
267
268} // namespace Model
269} // namespace Batch
270} // namespace Aws
void SetServiceAccountName(const Aws::String &value)
EksPodPropertiesDetail & WithPodName(const char *value)
AWS_BATCH_API EksPodPropertiesDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
EksPodPropertiesDetail & WithServiceAccountName(const Aws::String &value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EksPodPropertiesDetail & WithVolumes(Aws::Vector< EksVolume > &&value)
void SetVolumes(const Aws::Vector< EksVolume > &value)
const Aws::Vector< EksContainerDetail > & GetInitContainers() const
EksPodPropertiesDetail & WithInitContainers(Aws::Vector< EksContainerDetail > &&value)
EksPodPropertiesDetail & AddContainers(EksContainerDetail &&value)
EksPodPropertiesDetail & WithImagePullSecrets(Aws::Vector< ImagePullSecret > &&value)
EksPodPropertiesDetail & WithMetadata(EksMetadata &&value)
EksPodPropertiesDetail & WithNodeName(const Aws::String &value)
void SetContainers(Aws::Vector< EksContainerDetail > &&value)
EksPodPropertiesDetail & WithMetadata(const EksMetadata &value)
void SetInitContainers(const Aws::Vector< EksContainerDetail > &value)
EksPodPropertiesDetail & AddImagePullSecrets(const ImagePullSecret &value)
EksPodPropertiesDetail & WithNodeName(Aws::String &&value)
EksPodPropertiesDetail & AddInitContainers(EksContainerDetail &&value)
EksPodPropertiesDetail & AddVolumes(EksVolume &&value)
void SetImagePullSecrets(const Aws::Vector< ImagePullSecret > &value)
EksPodPropertiesDetail & WithImagePullSecrets(const Aws::Vector< ImagePullSecret > &value)
EksPodPropertiesDetail & WithDnsPolicy(const char *value)
EksPodPropertiesDetail & WithNodeName(const char *value)
void SetContainers(const Aws::Vector< EksContainerDetail > &value)
EksPodPropertiesDetail & WithShareProcessNamespace(bool value)
EksPodPropertiesDetail & WithInitContainers(const Aws::Vector< EksContainerDetail > &value)
EksPodPropertiesDetail & WithDnsPolicy(const Aws::String &value)
const Aws::Vector< EksContainerDetail > & GetContainers() const
EksPodPropertiesDetail & WithPodName(const Aws::String &value)
EksPodPropertiesDetail & WithContainers(Aws::Vector< EksContainerDetail > &&value)
EksPodPropertiesDetail & WithDnsPolicy(Aws::String &&value)
EksPodPropertiesDetail & WithContainers(const Aws::Vector< EksContainerDetail > &value)
EksPodPropertiesDetail & WithServiceAccountName(Aws::String &&value)
EksPodPropertiesDetail & AddInitContainers(const EksContainerDetail &value)
EksPodPropertiesDetail & WithVolumes(const Aws::Vector< EksVolume > &value)
EksPodPropertiesDetail & WithServiceAccountName(const char *value)
EksPodPropertiesDetail & AddVolumes(const EksVolume &value)
EksPodPropertiesDetail & AddContainers(const EksContainerDetail &value)
AWS_BATCH_API EksPodPropertiesDetail(Aws::Utils::Json::JsonView jsonValue)
EksPodPropertiesDetail & WithPodName(Aws::String &&value)
EksPodPropertiesDetail & WithHostNetwork(bool value)
void SetImagePullSecrets(Aws::Vector< ImagePullSecret > &&value)
EksPodPropertiesDetail & AddImagePullSecrets(ImagePullSecret &&value)
const Aws::Vector< ImagePullSecret > & GetImagePullSecrets() const
void SetVolumes(Aws::Vector< EksVolume > &&value)
void SetInitContainers(Aws::Vector< EksContainerDetail > &&value)
const Aws::Vector< EksVolume > & GetVolumes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue