AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsCodeBuildProjectEnvironment.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsCodeBuildProjectEnvironmentRegistryCredential.h>
11#include <aws/securityhub/model/AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SECURITYHUB_API AwsCodeBuildProjectEnvironment();
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetCertificate() const{ return m_certificate; }
49 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
50 inline void SetCertificate(const Aws::String& value) { m_certificateHasBeenSet = true; m_certificate = value; }
51 inline void SetCertificate(Aws::String&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); }
52 inline void SetCertificate(const char* value) { m_certificateHasBeenSet = true; m_certificate.assign(value); }
53 inline AwsCodeBuildProjectEnvironment& WithCertificate(const Aws::String& value) { SetCertificate(value); return *this;}
54 inline AwsCodeBuildProjectEnvironment& WithCertificate(Aws::String&& value) { SetCertificate(std::move(value)); return *this;}
55 inline AwsCodeBuildProjectEnvironment& WithCertificate(const char* value) { SetCertificate(value); return *this;}
57
59
64 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
65 inline void SetEnvironmentVariables(const Aws::Vector<AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails>& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = value; }
66 inline void SetEnvironmentVariables(Aws::Vector<AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails>&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::move(value); }
69 inline AwsCodeBuildProjectEnvironment& AddEnvironmentVariables(const AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.push_back(value); return *this; }
70 inline AwsCodeBuildProjectEnvironment& AddEnvironmentVariables(AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.push_back(std::move(value)); return *this; }
72
74
78 inline bool GetPrivilegedMode() const{ return m_privilegedMode; }
79 inline bool PrivilegedModeHasBeenSet() const { return m_privilegedModeHasBeenSet; }
80 inline void SetPrivilegedMode(bool value) { m_privilegedModeHasBeenSet = true; m_privilegedMode = value; }
81 inline AwsCodeBuildProjectEnvironment& WithPrivilegedMode(bool value) { SetPrivilegedMode(value); return *this;}
83
85
95 inline const Aws::String& GetImagePullCredentialsType() const{ return m_imagePullCredentialsType; }
96 inline bool ImagePullCredentialsTypeHasBeenSet() const { return m_imagePullCredentialsTypeHasBeenSet; }
97 inline void SetImagePullCredentialsType(const Aws::String& value) { m_imagePullCredentialsTypeHasBeenSet = true; m_imagePullCredentialsType = value; }
98 inline void SetImagePullCredentialsType(Aws::String&& value) { m_imagePullCredentialsTypeHasBeenSet = true; m_imagePullCredentialsType = std::move(value); }
99 inline void SetImagePullCredentialsType(const char* value) { m_imagePullCredentialsTypeHasBeenSet = true; m_imagePullCredentialsType.assign(value); }
104
106
109 inline const AwsCodeBuildProjectEnvironmentRegistryCredential& GetRegistryCredential() const{ return m_registryCredential; }
110 inline bool RegistryCredentialHasBeenSet() const { return m_registryCredentialHasBeenSet; }
111 inline void SetRegistryCredential(const AwsCodeBuildProjectEnvironmentRegistryCredential& value) { m_registryCredentialHasBeenSet = true; m_registryCredential = value; }
112 inline void SetRegistryCredential(AwsCodeBuildProjectEnvironmentRegistryCredential&& value) { m_registryCredentialHasBeenSet = true; m_registryCredential = std::move(value); }
116
118
137 inline const Aws::String& GetType() const{ return m_type; }
138 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
139 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
140 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
141 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
142 inline AwsCodeBuildProjectEnvironment& WithType(const Aws::String& value) { SetType(value); return *this;}
143 inline AwsCodeBuildProjectEnvironment& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
144 inline AwsCodeBuildProjectEnvironment& WithType(const char* value) { SetType(value); return *this;}
146 private:
147
148 Aws::String m_certificate;
149 bool m_certificateHasBeenSet = false;
150
152 bool m_environmentVariablesHasBeenSet = false;
153
154 bool m_privilegedMode;
155 bool m_privilegedModeHasBeenSet = false;
156
157 Aws::String m_imagePullCredentialsType;
158 bool m_imagePullCredentialsTypeHasBeenSet = false;
159
161 bool m_registryCredentialHasBeenSet = false;
162
163 Aws::String m_type;
164 bool m_typeHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace SecurityHub
169} // namespace Aws
AwsCodeBuildProjectEnvironment & WithType(const Aws::String &value)
const AwsCodeBuildProjectEnvironmentRegistryCredential & GetRegistryCredential() const
AwsCodeBuildProjectEnvironment & AddEnvironmentVariables(const AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails &value)
AwsCodeBuildProjectEnvironment & WithType(const char *value)
AWS_SECURITYHUB_API AwsCodeBuildProjectEnvironment & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsCodeBuildProjectEnvironment & WithCertificate(const char *value)
AwsCodeBuildProjectEnvironment & WithCertificate(Aws::String &&value)
AwsCodeBuildProjectEnvironment & AddEnvironmentVariables(AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails &&value)
AWS_SECURITYHUB_API AwsCodeBuildProjectEnvironment(Aws::Utils::Json::JsonView jsonValue)
AwsCodeBuildProjectEnvironment & WithCertificate(const Aws::String &value)
AwsCodeBuildProjectEnvironment & WithImagePullCredentialsType(const Aws::String &value)
AwsCodeBuildProjectEnvironment & WithEnvironmentVariables(const Aws::Vector< AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails > &value)
AwsCodeBuildProjectEnvironment & WithRegistryCredential(const AwsCodeBuildProjectEnvironmentRegistryCredential &value)
const Aws::Vector< AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails > & GetEnvironmentVariables() const
AwsCodeBuildProjectEnvironment & WithImagePullCredentialsType(const char *value)
void SetEnvironmentVariables(Aws::Vector< AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails > &&value)
void SetRegistryCredential(AwsCodeBuildProjectEnvironmentRegistryCredential &&value)
AwsCodeBuildProjectEnvironment & WithType(Aws::String &&value)
void SetEnvironmentVariables(const Aws::Vector< AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails > &value)
AwsCodeBuildProjectEnvironment & WithEnvironmentVariables(Aws::Vector< AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails > &&value)
AwsCodeBuildProjectEnvironment & WithPrivilegedMode(bool value)
void SetRegistryCredential(const AwsCodeBuildProjectEnvironmentRegistryCredential &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsCodeBuildProjectEnvironment & WithImagePullCredentialsType(Aws::String &&value)
AwsCodeBuildProjectEnvironment & WithRegistryCredential(AwsCodeBuildProjectEnvironmentRegistryCredential &&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