AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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/ImagePullCredentialsType.h>
14#include <aws/codebuild/model/ProjectFleet.h>
15#include <aws/codebuild/model/RegistryCredential.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace CodeBuild {
29namespace Model {
30
38 public:
39 AWS_CODEBUILD_API ProjectEnvironment() = default;
40 AWS_CODEBUILD_API ProjectEnvironment(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
52 inline EnvironmentType GetType() const { return m_type; }
53 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
54 inline void SetType(EnvironmentType value) {
55 m_typeHasBeenSet = true;
56 m_type = value;
57 }
59 SetType(value);
60 return *this;
61 }
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) {
83 m_imageHasBeenSet = true;
84 m_image = std::forward<ImageT>(value);
85 }
86 template <typename ImageT = Aws::String>
87 ProjectEnvironment& WithImage(ImageT&& value) {
88 SetImage(std::forward<ImageT>(value));
89 return *this;
90 }
92
94
144 inline ComputeType GetComputeType() const { return m_computeType; }
145 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
146 inline void SetComputeType(ComputeType value) {
147 m_computeTypeHasBeenSet = true;
148 m_computeType = value;
149 }
151 SetComputeType(value);
152 return *this;
153 }
155
157
161 inline const ComputeConfiguration& GetComputeConfiguration() const { return m_computeConfiguration; }
162 inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; }
163 template <typename ComputeConfigurationT = ComputeConfiguration>
164 void SetComputeConfiguration(ComputeConfigurationT&& value) {
165 m_computeConfigurationHasBeenSet = true;
166 m_computeConfiguration = std::forward<ComputeConfigurationT>(value);
167 }
168 template <typename ComputeConfigurationT = ComputeConfiguration>
169 ProjectEnvironment& WithComputeConfiguration(ComputeConfigurationT&& value) {
170 SetComputeConfiguration(std::forward<ComputeConfigurationT>(value));
171 return *this;
172 }
174
176
179 inline const ProjectFleet& GetFleet() const { return m_fleet; }
180 inline bool FleetHasBeenSet() const { return m_fleetHasBeenSet; }
181 template <typename FleetT = ProjectFleet>
182 void SetFleet(FleetT&& value) {
183 m_fleetHasBeenSet = true;
184 m_fleet = std::forward<FleetT>(value);
185 }
186 template <typename FleetT = ProjectFleet>
187 ProjectEnvironment& WithFleet(FleetT&& value) {
188 SetFleet(std::forward<FleetT>(value));
189 return *this;
190 }
192
194
198 inline const Aws::Vector<EnvironmentVariable>& GetEnvironmentVariables() const { return m_environmentVariables; }
199 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
200 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
201 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
202 m_environmentVariablesHasBeenSet = true;
203 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
204 }
205 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
206 ProjectEnvironment& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
207 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
208 return *this;
209 }
210 template <typename EnvironmentVariablesT = EnvironmentVariable>
211 ProjectEnvironment& AddEnvironmentVariables(EnvironmentVariablesT&& value) {
212 m_environmentVariablesHasBeenSet = true;
213 m_environmentVariables.emplace_back(std::forward<EnvironmentVariablesT>(value));
214 return *this;
215 }
217
219
236 inline bool GetPrivilegedMode() const { return m_privilegedMode; }
237 inline bool PrivilegedModeHasBeenSet() const { return m_privilegedModeHasBeenSet; }
238 inline void SetPrivilegedMode(bool value) {
239 m_privilegedModeHasBeenSet = true;
240 m_privilegedMode = value;
241 }
243 SetPrivilegedMode(value);
244 return *this;
245 }
247
249
255 inline const Aws::String& GetCertificate() const { return m_certificate; }
256 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
257 template <typename CertificateT = Aws::String>
258 void SetCertificate(CertificateT&& value) {
259 m_certificateHasBeenSet = true;
260 m_certificate = std::forward<CertificateT>(value);
261 }
262 template <typename CertificateT = Aws::String>
263 ProjectEnvironment& WithCertificate(CertificateT&& value) {
264 SetCertificate(std::forward<CertificateT>(value));
265 return *this;
266 }
268
270
273 inline const RegistryCredential& GetRegistryCredential() const { return m_registryCredential; }
274 inline bool RegistryCredentialHasBeenSet() const { return m_registryCredentialHasBeenSet; }
275 template <typename RegistryCredentialT = RegistryCredential>
276 void SetRegistryCredential(RegistryCredentialT&& value) {
277 m_registryCredentialHasBeenSet = true;
278 m_registryCredential = std::forward<RegistryCredentialT>(value);
279 }
280 template <typename RegistryCredentialT = RegistryCredential>
281 ProjectEnvironment& WithRegistryCredential(RegistryCredentialT&& value) {
282 SetRegistryCredential(std::forward<RegistryCredentialT>(value));
283 return *this;
284 }
286
288
298 inline ImagePullCredentialsType GetImagePullCredentialsType() const { return m_imagePullCredentialsType; }
299 inline bool ImagePullCredentialsTypeHasBeenSet() const { return m_imagePullCredentialsTypeHasBeenSet; }
301 m_imagePullCredentialsTypeHasBeenSet = true;
302 m_imagePullCredentialsType = value;
303 }
306 return *this;
307 }
309
311
314 inline const DockerServer& GetDockerServer() const { return m_dockerServer; }
315 inline bool DockerServerHasBeenSet() const { return m_dockerServerHasBeenSet; }
316 template <typename DockerServerT = DockerServer>
317 void SetDockerServer(DockerServerT&& value) {
318 m_dockerServerHasBeenSet = true;
319 m_dockerServer = std::forward<DockerServerT>(value);
320 }
321 template <typename DockerServerT = DockerServer>
322 ProjectEnvironment& WithDockerServer(DockerServerT&& value) {
323 SetDockerServer(std::forward<DockerServerT>(value));
324 return *this;
325 }
327 private:
329 bool m_typeHasBeenSet = false;
330
331 Aws::String m_image;
332 bool m_imageHasBeenSet = false;
333
334 ComputeType m_computeType{ComputeType::NOT_SET};
335 bool m_computeTypeHasBeenSet = false;
336
337 ComputeConfiguration m_computeConfiguration;
338 bool m_computeConfigurationHasBeenSet = false;
339
340 ProjectFleet m_fleet;
341 bool m_fleetHasBeenSet = false;
342
343 Aws::Vector<EnvironmentVariable> m_environmentVariables;
344 bool m_environmentVariablesHasBeenSet = false;
345
346 bool m_privilegedMode{false};
347 bool m_privilegedModeHasBeenSet = false;
348
349 Aws::String m_certificate;
350 bool m_certificateHasBeenSet = false;
351
352 RegistryCredential m_registryCredential;
353 bool m_registryCredentialHasBeenSet = false;
354
356 bool m_imagePullCredentialsTypeHasBeenSet = false;
357
358 DockerServer m_dockerServer;
359 bool m_dockerServerHasBeenSet = false;
360};
361
362} // namespace Model
363} // namespace CodeBuild
364} // 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