AWS SDK for C++

AWS SDK for C++ Version 1.11.838

Loading...
Searching...
No Matches
ProjectEnvironment.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/ComputeConfiguration.h>
9#include <aws/codebuild/model/ComputeType.h>
10#include <aws/codebuild/model/DockerServer.h>
11#include <aws/codebuild/model/EnvironmentType.h>
12#include <aws/codebuild/model/EnvironmentVariable.h>
13#include <aws/codebuild/model/HostKernel.h>
14#include <aws/codebuild/model/ImagePullCredentialsType.h>
15#include <aws/codebuild/model/ProjectFleet.h>
16#include <aws/codebuild/model/RegistryCredential.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace CodeBuild {
30namespace Model {
31
39 public:
40 AWS_CODEBUILD_API ProjectEnvironment() = default;
41 AWS_CODEBUILD_API ProjectEnvironment(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
53 inline EnvironmentType GetType() const { return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(EnvironmentType value) {
56 m_typeHasBeenSet = true;
57 m_type = value;
58 }
60 SetType(value);
61 return *this;
62 }
64
66
80 inline const Aws::String& GetImage() const { return m_image; }
81 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
82 template <typename ImageT = Aws::String>
83 void SetImage(ImageT&& value) {
84 m_imageHasBeenSet = true;
85 m_image = std::forward<ImageT>(value);
86 }
87 template <typename ImageT = Aws::String>
88 ProjectEnvironment& WithImage(ImageT&& value) {
89 SetImage(std::forward<ImageT>(value));
90 return *this;
91 }
93
95
145 inline ComputeType GetComputeType() const { return m_computeType; }
146 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
147 inline void SetComputeType(ComputeType value) {
148 m_computeTypeHasBeenSet = true;
149 m_computeType = value;
150 }
152 SetComputeType(value);
153 return *this;
154 }
156
158
162 inline const ComputeConfiguration& GetComputeConfiguration() const { return m_computeConfiguration; }
163 inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; }
164 template <typename ComputeConfigurationT = ComputeConfiguration>
165 void SetComputeConfiguration(ComputeConfigurationT&& value) {
166 m_computeConfigurationHasBeenSet = true;
167 m_computeConfiguration = std::forward<ComputeConfigurationT>(value);
168 }
169 template <typename ComputeConfigurationT = ComputeConfiguration>
170 ProjectEnvironment& WithComputeConfiguration(ComputeConfigurationT&& value) {
171 SetComputeConfiguration(std::forward<ComputeConfigurationT>(value));
172 return *this;
173 }
175
177
180 inline const ProjectFleet& GetFleet() const { return m_fleet; }
181 inline bool FleetHasBeenSet() const { return m_fleetHasBeenSet; }
182 template <typename FleetT = ProjectFleet>
183 void SetFleet(FleetT&& value) {
184 m_fleetHasBeenSet = true;
185 m_fleet = std::forward<FleetT>(value);
186 }
187 template <typename FleetT = ProjectFleet>
188 ProjectEnvironment& WithFleet(FleetT&& value) {
189 SetFleet(std::forward<FleetT>(value));
190 return *this;
191 }
193
195
199 inline const Aws::Vector<EnvironmentVariable>& GetEnvironmentVariables() const { return m_environmentVariables; }
200 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
201 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
202 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
203 m_environmentVariablesHasBeenSet = true;
204 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
205 }
206 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
207 ProjectEnvironment& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
208 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
209 return *this;
210 }
211 template <typename EnvironmentVariablesT = EnvironmentVariable>
212 ProjectEnvironment& AddEnvironmentVariables(EnvironmentVariablesT&& value) {
213 m_environmentVariablesHasBeenSet = true;
214 m_environmentVariables.emplace_back(std::forward<EnvironmentVariablesT>(value));
215 return *this;
216 }
218
220
237 inline bool GetPrivilegedMode() const { return m_privilegedMode; }
238 inline bool PrivilegedModeHasBeenSet() const { return m_privilegedModeHasBeenSet; }
239 inline void SetPrivilegedMode(bool value) {
240 m_privilegedModeHasBeenSet = true;
241 m_privilegedMode = value;
242 }
244 SetPrivilegedMode(value);
245 return *this;
246 }
248
250
256 inline const Aws::String& GetCertificate() const { return m_certificate; }
257 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
258 template <typename CertificateT = Aws::String>
259 void SetCertificate(CertificateT&& value) {
260 m_certificateHasBeenSet = true;
261 m_certificate = std::forward<CertificateT>(value);
262 }
263 template <typename CertificateT = Aws::String>
264 ProjectEnvironment& WithCertificate(CertificateT&& value) {
265 SetCertificate(std::forward<CertificateT>(value));
266 return *this;
267 }
269
271
274 inline const RegistryCredential& GetRegistryCredential() const { return m_registryCredential; }
275 inline bool RegistryCredentialHasBeenSet() const { return m_registryCredentialHasBeenSet; }
276 template <typename RegistryCredentialT = RegistryCredential>
277 void SetRegistryCredential(RegistryCredentialT&& value) {
278 m_registryCredentialHasBeenSet = true;
279 m_registryCredential = std::forward<RegistryCredentialT>(value);
280 }
281 template <typename RegistryCredentialT = RegistryCredential>
282 ProjectEnvironment& WithRegistryCredential(RegistryCredentialT&& value) {
283 SetRegistryCredential(std::forward<RegistryCredentialT>(value));
284 return *this;
285 }
287
289
299 inline ImagePullCredentialsType GetImagePullCredentialsType() const { return m_imagePullCredentialsType; }
300 inline bool ImagePullCredentialsTypeHasBeenSet() const { return m_imagePullCredentialsTypeHasBeenSet; }
302 m_imagePullCredentialsTypeHasBeenSet = true;
303 m_imagePullCredentialsType = value;
304 }
307 return *this;
308 }
310
312
315 inline const DockerServer& GetDockerServer() const { return m_dockerServer; }
316 inline bool DockerServerHasBeenSet() const { return m_dockerServerHasBeenSet; }
317 template <typename DockerServerT = DockerServer>
318 void SetDockerServer(DockerServerT&& value) {
319 m_dockerServerHasBeenSet = true;
320 m_dockerServer = std::forward<DockerServerT>(value);
321 }
322 template <typename DockerServerT = DockerServer>
323 ProjectEnvironment& WithDockerServer(DockerServerT&& value) {
324 SetDockerServer(std::forward<DockerServerT>(value));
325 return *this;
326 }
328
330
342 inline HostKernel GetHostKernel() const { return m_hostKernel; }
343 inline bool HostKernelHasBeenSet() const { return m_hostKernelHasBeenSet; }
344 inline void SetHostKernel(HostKernel value) {
345 m_hostKernelHasBeenSet = true;
346 m_hostKernel = value;
347 }
349 SetHostKernel(value);
350 return *this;
351 }
353 private:
355
356 Aws::String m_image;
357
358 ComputeType m_computeType{ComputeType::NOT_SET};
359
360 ComputeConfiguration m_computeConfiguration;
361
362 ProjectFleet m_fleet;
363
364 Aws::Vector<EnvironmentVariable> m_environmentVariables;
365
366 bool m_privilegedMode{false};
367
368 Aws::String m_certificate;
369
370 RegistryCredential m_registryCredential;
371
373
374 DockerServer m_dockerServer;
375
376 HostKernel m_hostKernel{HostKernel::NOT_SET};
377 bool m_typeHasBeenSet = false;
378 bool m_imageHasBeenSet = false;
379 bool m_computeTypeHasBeenSet = false;
380 bool m_computeConfigurationHasBeenSet = false;
381 bool m_fleetHasBeenSet = false;
382 bool m_environmentVariablesHasBeenSet = false;
383 bool m_privilegedModeHasBeenSet = false;
384 bool m_certificateHasBeenSet = false;
385 bool m_registryCredentialHasBeenSet = false;
386 bool m_imagePullCredentialsTypeHasBeenSet = false;
387 bool m_dockerServerHasBeenSet = false;
388 bool m_hostKernelHasBeenSet = false;
389};
390
391} // namespace Model
392} // namespace CodeBuild
393} // namespace Aws
ProjectEnvironment & WithImagePullCredentialsType(ImagePullCredentialsType value)
const RegistryCredential & GetRegistryCredential() const
ProjectEnvironment & WithImage(ImageT &&value)
void SetRegistryCredential(RegistryCredentialT &&value)
ProjectEnvironment & WithFleet(FleetT &&value)
const Aws::Vector< EnvironmentVariable > & GetEnvironmentVariables() const
ProjectEnvironment & WithDockerServer(DockerServerT &&value)
AWS_CODEBUILD_API ProjectEnvironment()=default
ProjectEnvironment & WithHostKernel(HostKernel value)
ProjectEnvironment & WithType(EnvironmentType value)
AWS_CODEBUILD_API ProjectEnvironment(Aws::Utils::Json::JsonView jsonValue)
void SetImagePullCredentialsType(ImagePullCredentialsType value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
ProjectEnvironment & WithRegistryCredential(RegistryCredentialT &&value)
ImagePullCredentialsType GetImagePullCredentialsType() const
ProjectEnvironment & AddEnvironmentVariables(EnvironmentVariablesT &&value)
void SetComputeConfiguration(ComputeConfigurationT &&value)
AWS_CODEBUILD_API ProjectEnvironment & operator=(Aws::Utils::Json::JsonView jsonValue)
ProjectEnvironment & WithEnvironmentVariables(EnvironmentVariablesT &&value)
const ComputeConfiguration & GetComputeConfiguration() const
ProjectEnvironment & WithComputeType(ComputeType value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
ProjectEnvironment & WithPrivilegedMode(bool value)
const DockerServer & GetDockerServer() const
ProjectEnvironment & WithCertificate(CertificateT &&value)
ProjectEnvironment & WithComputeConfiguration(ComputeConfigurationT &&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