AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EksPodProperties.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/EksContainer.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 EksPodProperties();
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); }
62 inline EksPodProperties& WithServiceAccountName(const Aws::String& value) { SetServiceAccountName(value); return *this;}
63 inline EksPodProperties& WithServiceAccountName(Aws::String&& value) { SetServiceAccountName(std::move(value)); return *this;}
64 inline EksPodProperties& 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 EksPodProperties& WithHostNetwork(bool value) { SetHostNetwork(value); return *this;}
84
86
98 inline const Aws::String& GetDnsPolicy() const{ return m_dnsPolicy; }
99 inline bool DnsPolicyHasBeenSet() const { return m_dnsPolicyHasBeenSet; }
100 inline void SetDnsPolicy(const Aws::String& value) { m_dnsPolicyHasBeenSet = true; m_dnsPolicy = value; }
101 inline void SetDnsPolicy(Aws::String&& value) { m_dnsPolicyHasBeenSet = true; m_dnsPolicy = std::move(value); }
102 inline void SetDnsPolicy(const char* value) { m_dnsPolicyHasBeenSet = true; m_dnsPolicy.assign(value); }
103 inline EksPodProperties& WithDnsPolicy(const Aws::String& value) { SetDnsPolicy(value); return *this;}
104 inline EksPodProperties& WithDnsPolicy(Aws::String&& value) { SetDnsPolicy(std::move(value)); return *this;}
105 inline EksPodProperties& WithDnsPolicy(const char* value) { SetDnsPolicy(value); return *this;}
107
109
114 inline const Aws::Vector<ImagePullSecret>& GetImagePullSecrets() const{ return m_imagePullSecrets; }
115 inline bool ImagePullSecretsHasBeenSet() const { return m_imagePullSecretsHasBeenSet; }
116 inline void SetImagePullSecrets(const Aws::Vector<ImagePullSecret>& value) { m_imagePullSecretsHasBeenSet = true; m_imagePullSecrets = value; }
117 inline void SetImagePullSecrets(Aws::Vector<ImagePullSecret>&& value) { m_imagePullSecretsHasBeenSet = true; m_imagePullSecrets = std::move(value); }
120 inline EksPodProperties& AddImagePullSecrets(const ImagePullSecret& value) { m_imagePullSecretsHasBeenSet = true; m_imagePullSecrets.push_back(value); return *this; }
121 inline EksPodProperties& AddImagePullSecrets(ImagePullSecret&& value) { m_imagePullSecretsHasBeenSet = true; m_imagePullSecrets.push_back(std::move(value)); return *this; }
123
125
129 inline const Aws::Vector<EksContainer>& GetContainers() const{ return m_containers; }
130 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
131 inline void SetContainers(const Aws::Vector<EksContainer>& value) { m_containersHasBeenSet = true; m_containers = value; }
132 inline void SetContainers(Aws::Vector<EksContainer>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
133 inline EksPodProperties& WithContainers(const Aws::Vector<EksContainer>& value) { SetContainers(value); return *this;}
134 inline EksPodProperties& WithContainers(Aws::Vector<EksContainer>&& value) { SetContainers(std::move(value)); return *this;}
135 inline EksPodProperties& AddContainers(const EksContainer& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
136 inline EksPodProperties& AddContainers(EksContainer&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
138
140
150 inline const Aws::Vector<EksContainer>& GetInitContainers() const{ return m_initContainers; }
151 inline bool InitContainersHasBeenSet() const { return m_initContainersHasBeenSet; }
152 inline void SetInitContainers(const Aws::Vector<EksContainer>& value) { m_initContainersHasBeenSet = true; m_initContainers = value; }
153 inline void SetInitContainers(Aws::Vector<EksContainer>&& value) { m_initContainersHasBeenSet = true; m_initContainers = std::move(value); }
155 inline EksPodProperties& WithInitContainers(Aws::Vector<EksContainer>&& value) { SetInitContainers(std::move(value)); return *this;}
156 inline EksPodProperties& AddInitContainers(const EksContainer& value) { m_initContainersHasBeenSet = true; m_initContainers.push_back(value); return *this; }
157 inline EksPodProperties& AddInitContainers(EksContainer&& value) { m_initContainersHasBeenSet = true; m_initContainers.push_back(std::move(value)); return *this; }
159
161
165 inline const Aws::Vector<EksVolume>& GetVolumes() const{ return m_volumes; }
166 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
167 inline void SetVolumes(const Aws::Vector<EksVolume>& value) { m_volumesHasBeenSet = true; m_volumes = value; }
168 inline void SetVolumes(Aws::Vector<EksVolume>&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); }
169 inline EksPodProperties& WithVolumes(const Aws::Vector<EksVolume>& value) { SetVolumes(value); return *this;}
170 inline EksPodProperties& WithVolumes(Aws::Vector<EksVolume>&& value) { SetVolumes(std::move(value)); return *this;}
171 inline EksPodProperties& AddVolumes(const EksVolume& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; }
172 inline EksPodProperties& AddVolumes(EksVolume&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; }
174
176
181 inline const EksMetadata& GetMetadata() const{ return m_metadata; }
182 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
183 inline void SetMetadata(const EksMetadata& value) { m_metadataHasBeenSet = true; m_metadata = value; }
184 inline void SetMetadata(EksMetadata&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
185 inline EksPodProperties& WithMetadata(const EksMetadata& value) { SetMetadata(value); return *this;}
186 inline EksPodProperties& WithMetadata(EksMetadata&& value) { SetMetadata(std::move(value)); return *this;}
188
190
196 inline bool GetShareProcessNamespace() const{ return m_shareProcessNamespace; }
197 inline bool ShareProcessNamespaceHasBeenSet() const { return m_shareProcessNamespaceHasBeenSet; }
198 inline void SetShareProcessNamespace(bool value) { m_shareProcessNamespaceHasBeenSet = true; m_shareProcessNamespace = value; }
199 inline EksPodProperties& WithShareProcessNamespace(bool value) { SetShareProcessNamespace(value); return *this;}
201 private:
202
203 Aws::String m_serviceAccountName;
204 bool m_serviceAccountNameHasBeenSet = false;
205
206 bool m_hostNetwork;
207 bool m_hostNetworkHasBeenSet = false;
208
209 Aws::String m_dnsPolicy;
210 bool m_dnsPolicyHasBeenSet = false;
211
212 Aws::Vector<ImagePullSecret> m_imagePullSecrets;
213 bool m_imagePullSecretsHasBeenSet = false;
214
215 Aws::Vector<EksContainer> m_containers;
216 bool m_containersHasBeenSet = false;
217
218 Aws::Vector<EksContainer> m_initContainers;
219 bool m_initContainersHasBeenSet = false;
220
221 Aws::Vector<EksVolume> m_volumes;
222 bool m_volumesHasBeenSet = false;
223
224 EksMetadata m_metadata;
225 bool m_metadataHasBeenSet = false;
226
227 bool m_shareProcessNamespace;
228 bool m_shareProcessNamespaceHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace Batch
233} // namespace Aws
const Aws::String & GetDnsPolicy() const
EksPodProperties & WithHostNetwork(bool value)
EksPodProperties & AddInitContainers(const EksContainer &value)
EksPodProperties & WithServiceAccountName(Aws::String &&value)
void SetVolumes(Aws::Vector< EksVolume > &&value)
void SetInitContainers(const Aws::Vector< EksContainer > &value)
AWS_BATCH_API EksPodProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
EksPodProperties & WithInitContainers(Aws::Vector< EksContainer > &&value)
void SetServiceAccountName(Aws::String &&value)
EksPodProperties & WithDnsPolicy(const char *value)
EksPodProperties & AddVolumes(EksVolume &&value)
void SetInitContainers(Aws::Vector< EksContainer > &&value)
EksPodProperties & AddVolumes(const EksVolume &value)
const EksMetadata & GetMetadata() const
EksPodProperties & WithMetadata(const EksMetadata &value)
void SetServiceAccountName(const Aws::String &value)
void SetImagePullSecrets(Aws::Vector< ImagePullSecret > &&value)
EksPodProperties & WithMetadata(EksMetadata &&value)
const Aws::String & GetServiceAccountName() const
EksPodProperties & WithVolumes(const Aws::Vector< EksVolume > &value)
void SetMetadata(const EksMetadata &value)
EksPodProperties & WithImagePullSecrets(Aws::Vector< ImagePullSecret > &&value)
EksPodProperties & AddContainers(const EksContainer &value)
void SetMetadata(EksMetadata &&value)
EksPodProperties & WithContainers(const Aws::Vector< EksContainer > &value)
void SetContainers(const Aws::Vector< EksContainer > &value)
void SetVolumes(const Aws::Vector< EksVolume > &value)
void SetImagePullSecrets(const Aws::Vector< ImagePullSecret > &value)
void SetServiceAccountName(const char *value)
EksPodProperties & AddContainers(EksContainer &&value)
EksPodProperties & AddInitContainers(EksContainer &&value)
EksPodProperties & AddImagePullSecrets(const ImagePullSecret &value)
void SetContainers(Aws::Vector< EksContainer > &&value)
AWS_BATCH_API EksPodProperties(Aws::Utils::Json::JsonView jsonValue)
EksPodProperties & WithVolumes(Aws::Vector< EksVolume > &&value)
EksPodProperties & WithInitContainers(const Aws::Vector< EksContainer > &value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< EksContainer > & GetInitContainers() const
EksPodProperties & WithDnsPolicy(Aws::String &&value)
EksPodProperties & WithImagePullSecrets(const Aws::Vector< ImagePullSecret > &value)
const Aws::Vector< EksContainer > & GetContainers() const
EksPodProperties & WithServiceAccountName(const char *value)
const Aws::Vector< ImagePullSecret > & GetImagePullSecrets() const
const Aws::Vector< EksVolume > & GetVolumes() const
void SetDnsPolicy(Aws::String &&value)
EksPodProperties & WithContainers(Aws::Vector< EksContainer > &&value)
EksPodProperties & WithServiceAccountName(const Aws::String &value)
EksPodProperties & WithDnsPolicy(const Aws::String &value)
EksPodProperties & AddImagePullSecrets(ImagePullSecret &&value)
void SetDnsPolicy(const Aws::String &value)
EksPodProperties & WithShareProcessNamespace(bool 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