AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProjectEnvironment.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/EnvironmentType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codebuild/model/ComputeType.h>
11#include <aws/codebuild/model/ProjectFleet.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/codebuild/model/RegistryCredential.h>
14#include <aws/codebuild/model/ImagePullCredentialsType.h>
15#include <aws/codebuild/model/EnvironmentVariable.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace CodeBuild
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_CODEBUILD_API ProjectEnvironment();
43 AWS_CODEBUILD_API ProjectEnvironment(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
77 inline const EnvironmentType& GetType() const{ return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(const EnvironmentType& value) { m_typeHasBeenSet = true; m_type = value; }
80 inline void SetType(EnvironmentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
81 inline ProjectEnvironment& WithType(const EnvironmentType& value) { SetType(value); return *this;}
82 inline ProjectEnvironment& WithType(EnvironmentType&& value) { SetType(std::move(value)); return *this;}
84
86
100 inline const Aws::String& GetImage() const{ return m_image; }
101 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
102 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
103 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
104 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
105 inline ProjectEnvironment& WithImage(const Aws::String& value) { SetImage(value); return *this;}
106 inline ProjectEnvironment& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
107 inline ProjectEnvironment& WithImage(const char* value) { SetImage(value); return *this;}
109
111
156 inline const ComputeType& GetComputeType() const{ return m_computeType; }
157 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
158 inline void SetComputeType(const ComputeType& value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
159 inline void SetComputeType(ComputeType&& value) { m_computeTypeHasBeenSet = true; m_computeType = std::move(value); }
160 inline ProjectEnvironment& WithComputeType(const ComputeType& value) { SetComputeType(value); return *this;}
161 inline ProjectEnvironment& WithComputeType(ComputeType&& value) { SetComputeType(std::move(value)); return *this;}
163
165
168 inline const ProjectFleet& GetFleet() const{ return m_fleet; }
169 inline bool FleetHasBeenSet() const { return m_fleetHasBeenSet; }
170 inline void SetFleet(const ProjectFleet& value) { m_fleetHasBeenSet = true; m_fleet = value; }
171 inline void SetFleet(ProjectFleet&& value) { m_fleetHasBeenSet = true; m_fleet = std::move(value); }
172 inline ProjectEnvironment& WithFleet(const ProjectFleet& value) { SetFleet(value); return *this;}
173 inline ProjectEnvironment& WithFleet(ProjectFleet&& value) { SetFleet(std::move(value)); return *this;}
175
177
181 inline const Aws::Vector<EnvironmentVariable>& GetEnvironmentVariables() const{ return m_environmentVariables; }
182 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
183 inline void SetEnvironmentVariables(const Aws::Vector<EnvironmentVariable>& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = value; }
184 inline void SetEnvironmentVariables(Aws::Vector<EnvironmentVariable>&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::move(value); }
187 inline ProjectEnvironment& AddEnvironmentVariables(const EnvironmentVariable& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.push_back(value); return *this; }
188 inline ProjectEnvironment& AddEnvironmentVariables(EnvironmentVariable&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.push_back(std::move(value)); return *this; }
190
192
209 inline bool GetPrivilegedMode() const{ return m_privilegedMode; }
210 inline bool PrivilegedModeHasBeenSet() const { return m_privilegedModeHasBeenSet; }
211 inline void SetPrivilegedMode(bool value) { m_privilegedModeHasBeenSet = true; m_privilegedMode = value; }
212 inline ProjectEnvironment& WithPrivilegedMode(bool value) { SetPrivilegedMode(value); return *this;}
214
216
222 inline const Aws::String& GetCertificate() const{ return m_certificate; }
223 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
224 inline void SetCertificate(const Aws::String& value) { m_certificateHasBeenSet = true; m_certificate = value; }
225 inline void SetCertificate(Aws::String&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); }
226 inline void SetCertificate(const char* value) { m_certificateHasBeenSet = true; m_certificate.assign(value); }
227 inline ProjectEnvironment& WithCertificate(const Aws::String& value) { SetCertificate(value); return *this;}
228 inline ProjectEnvironment& WithCertificate(Aws::String&& value) { SetCertificate(std::move(value)); return *this;}
229 inline ProjectEnvironment& WithCertificate(const char* value) { SetCertificate(value); return *this;}
231
233
236 inline const RegistryCredential& GetRegistryCredential() const{ return m_registryCredential; }
237 inline bool RegistryCredentialHasBeenSet() const { return m_registryCredentialHasBeenSet; }
238 inline void SetRegistryCredential(const RegistryCredential& value) { m_registryCredentialHasBeenSet = true; m_registryCredential = value; }
239 inline void SetRegistryCredential(RegistryCredential&& value) { m_registryCredentialHasBeenSet = true; m_registryCredential = std::move(value); }
241 inline ProjectEnvironment& WithRegistryCredential(RegistryCredential&& value) { SetRegistryCredential(std::move(value)); return *this;}
243
245
255 inline const ImagePullCredentialsType& GetImagePullCredentialsType() const{ return m_imagePullCredentialsType; }
256 inline bool ImagePullCredentialsTypeHasBeenSet() const { return m_imagePullCredentialsTypeHasBeenSet; }
257 inline void SetImagePullCredentialsType(const ImagePullCredentialsType& value) { m_imagePullCredentialsTypeHasBeenSet = true; m_imagePullCredentialsType = value; }
258 inline void SetImagePullCredentialsType(ImagePullCredentialsType&& value) { m_imagePullCredentialsTypeHasBeenSet = true; m_imagePullCredentialsType = std::move(value); }
262 private:
263
264 EnvironmentType m_type;
265 bool m_typeHasBeenSet = false;
266
267 Aws::String m_image;
268 bool m_imageHasBeenSet = false;
269
270 ComputeType m_computeType;
271 bool m_computeTypeHasBeenSet = false;
272
273 ProjectFleet m_fleet;
274 bool m_fleetHasBeenSet = false;
275
276 Aws::Vector<EnvironmentVariable> m_environmentVariables;
277 bool m_environmentVariablesHasBeenSet = false;
278
279 bool m_privilegedMode;
280 bool m_privilegedModeHasBeenSet = false;
281
282 Aws::String m_certificate;
283 bool m_certificateHasBeenSet = false;
284
285 RegistryCredential m_registryCredential;
286 bool m_registryCredentialHasBeenSet = false;
287
288 ImagePullCredentialsType m_imagePullCredentialsType;
289 bool m_imagePullCredentialsTypeHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace CodeBuild
294} // namespace Aws
ProjectEnvironment & WithImage(const char *value)
ProjectEnvironment & WithRegistryCredential(RegistryCredential &&value)
void SetRegistryCredential(const RegistryCredential &value)
void SetImagePullCredentialsType(const ImagePullCredentialsType &value)
const RegistryCredential & GetRegistryCredential() const
void SetImagePullCredentialsType(ImagePullCredentialsType &&value)
ProjectEnvironment & WithCertificate(const Aws::String &value)
void SetImage(const Aws::String &value)
ProjectEnvironment & WithCertificate(Aws::String &&value)
ProjectEnvironment & AddEnvironmentVariables(const EnvironmentVariable &value)
const Aws::Vector< EnvironmentVariable > & GetEnvironmentVariables() const
ProjectEnvironment & WithComputeType(ComputeType &&value)
ProjectEnvironment & WithEnvironmentVariables(Aws::Vector< EnvironmentVariable > &&value)
void SetFleet(const ProjectFleet &value)
ProjectEnvironment & WithFleet(const ProjectFleet &value)
ProjectEnvironment & WithCertificate(const char *value)
void SetEnvironmentVariables(const Aws::Vector< EnvironmentVariable > &value)
ProjectEnvironment & WithType(EnvironmentType &&value)
void SetCertificate(const Aws::String &value)
AWS_CODEBUILD_API ProjectEnvironment(Aws::Utils::Json::JsonView jsonValue)
ProjectEnvironment & WithComputeType(const ComputeType &value)
ProjectEnvironment & WithFleet(ProjectFleet &&value)
ProjectEnvironment & WithImagePullCredentialsType(ImagePullCredentialsType &&value)
AWS_CODEBUILD_API ProjectEnvironment & operator=(Aws::Utils::Json::JsonView jsonValue)
ProjectEnvironment & WithImage(Aws::String &&value)
ProjectEnvironment & WithImage(const Aws::String &value)
void SetRegistryCredential(RegistryCredential &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
ProjectEnvironment & WithPrivilegedMode(bool value)
void SetEnvironmentVariables(Aws::Vector< EnvironmentVariable > &&value)
void SetComputeType(const ComputeType &value)
const ImagePullCredentialsType & GetImagePullCredentialsType() const
ProjectEnvironment & WithEnvironmentVariables(const Aws::Vector< EnvironmentVariable > &value)
ProjectEnvironment & WithImagePullCredentialsType(const ImagePullCredentialsType &value)
ProjectEnvironment & WithType(const EnvironmentType &value)
ProjectEnvironment & AddEnvironmentVariables(EnvironmentVariable &&value)
const EnvironmentType & GetType() const
void SetType(const EnvironmentType &value)
ProjectEnvironment & WithRegistryCredential(const RegistryCredential &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