AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/ComputeConfiguration.h>
12#include <aws/codebuild/model/ProjectFleet.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/codebuild/model/RegistryCredential.h>
15#include <aws/codebuild/model/ImagePullCredentialsType.h>
16#include <aws/codebuild/model/DockerServer.h>
17#include <aws/codebuild/model/EnvironmentVariable.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace CodeBuild
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_CODEBUILD_API ProjectEnvironment() = default;
45 AWS_CODEBUILD_API ProjectEnvironment(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
58 inline EnvironmentType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(EnvironmentType value) { m_typeHasBeenSet = true; m_type = value; }
61 inline ProjectEnvironment& WithType(EnvironmentType value) { SetType(value); return *this;}
63
65
79 inline const Aws::String& GetImage() const { return m_image; }
80 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
81 template<typename ImageT = Aws::String>
82 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
83 template<typename ImageT = Aws::String>
84 ProjectEnvironment& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
86
88
138 inline ComputeType GetComputeType() const { return m_computeType; }
139 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
140 inline void SetComputeType(ComputeType value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
141 inline ProjectEnvironment& WithComputeType(ComputeType value) { SetComputeType(value); return *this;}
143
145
149 inline const ComputeConfiguration& GetComputeConfiguration() const { return m_computeConfiguration; }
150 inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; }
151 template<typename ComputeConfigurationT = ComputeConfiguration>
152 void SetComputeConfiguration(ComputeConfigurationT&& value) { m_computeConfigurationHasBeenSet = true; m_computeConfiguration = std::forward<ComputeConfigurationT>(value); }
153 template<typename ComputeConfigurationT = ComputeConfiguration>
154 ProjectEnvironment& WithComputeConfiguration(ComputeConfigurationT&& value) { SetComputeConfiguration(std::forward<ComputeConfigurationT>(value)); return *this;}
156
158
161 inline const ProjectFleet& GetFleet() const { return m_fleet; }
162 inline bool FleetHasBeenSet() const { return m_fleetHasBeenSet; }
163 template<typename FleetT = ProjectFleet>
164 void SetFleet(FleetT&& value) { m_fleetHasBeenSet = true; m_fleet = std::forward<FleetT>(value); }
165 template<typename FleetT = ProjectFleet>
166 ProjectEnvironment& WithFleet(FleetT&& value) { SetFleet(std::forward<FleetT>(value)); return *this;}
168
170
174 inline const Aws::Vector<EnvironmentVariable>& GetEnvironmentVariables() const { return m_environmentVariables; }
175 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
176 template<typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
177 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
178 template<typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
179 ProjectEnvironment& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
180 template<typename EnvironmentVariablesT = EnvironmentVariable>
181 ProjectEnvironment& AddEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace_back(std::forward<EnvironmentVariablesT>(value)); return *this; }
183
185
202 inline bool GetPrivilegedMode() const { return m_privilegedMode; }
203 inline bool PrivilegedModeHasBeenSet() const { return m_privilegedModeHasBeenSet; }
204 inline void SetPrivilegedMode(bool value) { m_privilegedModeHasBeenSet = true; m_privilegedMode = value; }
205 inline ProjectEnvironment& WithPrivilegedMode(bool value) { SetPrivilegedMode(value); return *this;}
207
209
215 inline const Aws::String& GetCertificate() const { return m_certificate; }
216 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
217 template<typename CertificateT = Aws::String>
218 void SetCertificate(CertificateT&& value) { m_certificateHasBeenSet = true; m_certificate = std::forward<CertificateT>(value); }
219 template<typename CertificateT = Aws::String>
220 ProjectEnvironment& WithCertificate(CertificateT&& value) { SetCertificate(std::forward<CertificateT>(value)); return *this;}
222
224
227 inline const RegistryCredential& GetRegistryCredential() const { return m_registryCredential; }
228 inline bool RegistryCredentialHasBeenSet() const { return m_registryCredentialHasBeenSet; }
229 template<typename RegistryCredentialT = RegistryCredential>
230 void SetRegistryCredential(RegistryCredentialT&& value) { m_registryCredentialHasBeenSet = true; m_registryCredential = std::forward<RegistryCredentialT>(value); }
231 template<typename RegistryCredentialT = RegistryCredential>
232 ProjectEnvironment& WithRegistryCredential(RegistryCredentialT&& value) { SetRegistryCredential(std::forward<RegistryCredentialT>(value)); return *this;}
234
236
246 inline ImagePullCredentialsType GetImagePullCredentialsType() const { return m_imagePullCredentialsType; }
247 inline bool ImagePullCredentialsTypeHasBeenSet() const { return m_imagePullCredentialsTypeHasBeenSet; }
248 inline void SetImagePullCredentialsType(ImagePullCredentialsType value) { m_imagePullCredentialsTypeHasBeenSet = true; m_imagePullCredentialsType = value; }
251
253
256 inline const DockerServer& GetDockerServer() const { return m_dockerServer; }
257 inline bool DockerServerHasBeenSet() const { return m_dockerServerHasBeenSet; }
258 template<typename DockerServerT = DockerServer>
259 void SetDockerServer(DockerServerT&& value) { m_dockerServerHasBeenSet = true; m_dockerServer = std::forward<DockerServerT>(value); }
260 template<typename DockerServerT = DockerServer>
261 ProjectEnvironment& WithDockerServer(DockerServerT&& value) { SetDockerServer(std::forward<DockerServerT>(value)); return *this;}
263 private:
264
266 bool m_typeHasBeenSet = false;
267
268 Aws::String m_image;
269 bool m_imageHasBeenSet = false;
270
271 ComputeType m_computeType{ComputeType::NOT_SET};
272 bool m_computeTypeHasBeenSet = false;
273
274 ComputeConfiguration m_computeConfiguration;
275 bool m_computeConfigurationHasBeenSet = false;
276
277 ProjectFleet m_fleet;
278 bool m_fleetHasBeenSet = false;
279
280 Aws::Vector<EnvironmentVariable> m_environmentVariables;
281 bool m_environmentVariablesHasBeenSet = false;
282
283 bool m_privilegedMode{false};
284 bool m_privilegedModeHasBeenSet = false;
285
286 Aws::String m_certificate;
287 bool m_certificateHasBeenSet = false;
288
289 RegistryCredential m_registryCredential;
290 bool m_registryCredentialHasBeenSet = false;
291
293 bool m_imagePullCredentialsTypeHasBeenSet = false;
294
295 DockerServer m_dockerServer;
296 bool m_dockerServerHasBeenSet = false;
297 };
298
299} // namespace Model
300} // namespace CodeBuild
301} // 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 & 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