AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AwsCodeBuildProjectEnvironment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails.h>
11#include <aws/securityhub/model/AwsCodeBuildProjectEnvironmentRegistryCredential.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub {
23namespace Model {
24
32 public:
33 AWS_SECURITYHUB_API AwsCodeBuildProjectEnvironment() = default;
36 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCertificate() const { return m_certificate; }
43 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
44 template <typename CertificateT = Aws::String>
45 void SetCertificate(CertificateT&& value) {
46 m_certificateHasBeenSet = true;
47 m_certificate = std::forward<CertificateT>(value);
48 }
49 template <typename CertificateT = Aws::String>
51 SetCertificate(std::forward<CertificateT>(value));
52 return *this;
53 }
55
57
62 return m_environmentVariables;
63 }
64 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
65 template <typename EnvironmentVariablesT = Aws::Vector<AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails>>
66 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
67 m_environmentVariablesHasBeenSet = true;
68 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
69 }
70 template <typename EnvironmentVariablesT = Aws::Vector<AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails>>
72 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
73 return *this;
74 }
75 template <typename EnvironmentVariablesT = AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails>
77 m_environmentVariablesHasBeenSet = true;
78 m_environmentVariables.emplace_back(std::forward<EnvironmentVariablesT>(value));
79 return *this;
80 }
82
84
88 inline bool GetPrivilegedMode() const { return m_privilegedMode; }
89 inline bool PrivilegedModeHasBeenSet() const { return m_privilegedModeHasBeenSet; }
90 inline void SetPrivilegedMode(bool value) {
91 m_privilegedModeHasBeenSet = true;
92 m_privilegedMode = value;
93 }
95 SetPrivilegedMode(value);
96 return *this;
97 }
99
101
111 inline const Aws::String& GetImagePullCredentialsType() const { return m_imagePullCredentialsType; }
112 inline bool ImagePullCredentialsTypeHasBeenSet() const { return m_imagePullCredentialsTypeHasBeenSet; }
113 template <typename ImagePullCredentialsTypeT = Aws::String>
114 void SetImagePullCredentialsType(ImagePullCredentialsTypeT&& value) {
115 m_imagePullCredentialsTypeHasBeenSet = true;
116 m_imagePullCredentialsType = std::forward<ImagePullCredentialsTypeT>(value);
117 }
118 template <typename ImagePullCredentialsTypeT = Aws::String>
120 SetImagePullCredentialsType(std::forward<ImagePullCredentialsTypeT>(value));
121 return *this;
122 }
124
126
129 inline const AwsCodeBuildProjectEnvironmentRegistryCredential& GetRegistryCredential() const { return m_registryCredential; }
130 inline bool RegistryCredentialHasBeenSet() const { return m_registryCredentialHasBeenSet; }
131 template <typename RegistryCredentialT = AwsCodeBuildProjectEnvironmentRegistryCredential>
132 void SetRegistryCredential(RegistryCredentialT&& value) {
133 m_registryCredentialHasBeenSet = true;
134 m_registryCredential = std::forward<RegistryCredentialT>(value);
135 }
136 template <typename RegistryCredentialT = AwsCodeBuildProjectEnvironmentRegistryCredential>
138 SetRegistryCredential(std::forward<RegistryCredentialT>(value));
139 return *this;
140 }
142
144
163 inline const Aws::String& GetType() const { return m_type; }
164 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
165 template <typename TypeT = Aws::String>
166 void SetType(TypeT&& value) {
167 m_typeHasBeenSet = true;
168 m_type = std::forward<TypeT>(value);
169 }
170 template <typename TypeT = Aws::String>
172 SetType(std::forward<TypeT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_certificate;
178
180
181 bool m_privilegedMode{false};
182
183 Aws::String m_imagePullCredentialsType;
184
185 AwsCodeBuildProjectEnvironmentRegistryCredential m_registryCredential;
186
187 Aws::String m_type;
188 bool m_certificateHasBeenSet = false;
189 bool m_environmentVariablesHasBeenSet = false;
190 bool m_privilegedModeHasBeenSet = false;
191 bool m_imagePullCredentialsTypeHasBeenSet = false;
192 bool m_registryCredentialHasBeenSet = false;
193 bool m_typeHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace SecurityHub
198} // namespace Aws
const AwsCodeBuildProjectEnvironmentRegistryCredential & GetRegistryCredential() const
AWS_SECURITYHUB_API AwsCodeBuildProjectEnvironment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsCodeBuildProjectEnvironment(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails > & GetEnvironmentVariables() const
AWS_SECURITYHUB_API AwsCodeBuildProjectEnvironment()=default
AwsCodeBuildProjectEnvironment & AddEnvironmentVariables(EnvironmentVariablesT &&value)
AwsCodeBuildProjectEnvironment & WithEnvironmentVariables(EnvironmentVariablesT &&value)
AwsCodeBuildProjectEnvironment & WithImagePullCredentialsType(ImagePullCredentialsTypeT &&value)
AwsCodeBuildProjectEnvironment & WithPrivilegedMode(bool value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsCodeBuildProjectEnvironment & WithCertificate(CertificateT &&value)
AwsCodeBuildProjectEnvironment & WithRegistryCredential(RegistryCredentialT &&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