AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AwsCodeBuildProjectDetails.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/AwsCodeBuildProjectArtifactsDetails.h>
11#include <aws/securityhub/model/AwsCodeBuildProjectEnvironment.h>
12#include <aws/securityhub/model/AwsCodeBuildProjectLogsConfigDetails.h>
13#include <aws/securityhub/model/AwsCodeBuildProjectSource.h>
14#include <aws/securityhub/model/AwsCodeBuildProjectVpcConfig.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub {
26namespace Model {
27
34 public:
35 AWS_SECURITYHUB_API AwsCodeBuildProjectDetails() = default;
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
47 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
48 template <typename EncryptionKeyT = Aws::String>
49 void SetEncryptionKey(EncryptionKeyT&& value) {
50 m_encryptionKeyHasBeenSet = true;
51 m_encryptionKey = std::forward<EncryptionKeyT>(value);
52 }
53 template <typename EncryptionKeyT = Aws::String>
55 SetEncryptionKey(std::forward<EncryptionKeyT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<AwsCodeBuildProjectArtifactsDetails>& GetArtifacts() const { return m_artifacts; }
65 inline bool ArtifactsHasBeenSet() const { return m_artifactsHasBeenSet; }
66 template <typename ArtifactsT = Aws::Vector<AwsCodeBuildProjectArtifactsDetails>>
67 void SetArtifacts(ArtifactsT&& value) {
68 m_artifactsHasBeenSet = true;
69 m_artifacts = std::forward<ArtifactsT>(value);
70 }
71 template <typename ArtifactsT = Aws::Vector<AwsCodeBuildProjectArtifactsDetails>>
73 SetArtifacts(std::forward<ArtifactsT>(value));
74 return *this;
75 }
76 template <typename ArtifactsT = AwsCodeBuildProjectArtifactsDetails>
78 m_artifactsHasBeenSet = true;
79 m_artifacts.emplace_back(std::forward<ArtifactsT>(value));
80 return *this;
81 }
83
85
88 inline const AwsCodeBuildProjectEnvironment& GetEnvironment() const { return m_environment; }
89 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
90 template <typename EnvironmentT = AwsCodeBuildProjectEnvironment>
91 void SetEnvironment(EnvironmentT&& value) {
92 m_environmentHasBeenSet = true;
93 m_environment = std::forward<EnvironmentT>(value);
94 }
95 template <typename EnvironmentT = AwsCodeBuildProjectEnvironment>
97 SetEnvironment(std::forward<EnvironmentT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetName() const { return m_name; }
107 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
108 template <typename NameT = Aws::String>
109 void SetName(NameT&& value) {
110 m_nameHasBeenSet = true;
111 m_name = std::forward<NameT>(value);
112 }
113 template <typename NameT = Aws::String>
115 SetName(std::forward<NameT>(value));
116 return *this;
117 }
119
121
124 inline const AwsCodeBuildProjectSource& GetSource() const { return m_source; }
125 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
126 template <typename SourceT = AwsCodeBuildProjectSource>
127 void SetSource(SourceT&& value) {
128 m_sourceHasBeenSet = true;
129 m_source = std::forward<SourceT>(value);
130 }
131 template <typename SourceT = AwsCodeBuildProjectSource>
133 SetSource(std::forward<SourceT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
144 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
145 template <typename ServiceRoleT = Aws::String>
146 void SetServiceRole(ServiceRoleT&& value) {
147 m_serviceRoleHasBeenSet = true;
148 m_serviceRole = std::forward<ServiceRoleT>(value);
149 }
150 template <typename ServiceRoleT = Aws::String>
152 SetServiceRole(std::forward<ServiceRoleT>(value));
153 return *this;
154 }
156
158
161 inline const AwsCodeBuildProjectLogsConfigDetails& GetLogsConfig() const { return m_logsConfig; }
162 inline bool LogsConfigHasBeenSet() const { return m_logsConfigHasBeenSet; }
163 template <typename LogsConfigT = AwsCodeBuildProjectLogsConfigDetails>
164 void SetLogsConfig(LogsConfigT&& value) {
165 m_logsConfigHasBeenSet = true;
166 m_logsConfig = std::forward<LogsConfigT>(value);
167 }
168 template <typename LogsConfigT = AwsCodeBuildProjectLogsConfigDetails>
170 SetLogsConfig(std::forward<LogsConfigT>(value));
171 return *this;
172 }
174
176
179 inline const AwsCodeBuildProjectVpcConfig& GetVpcConfig() const { return m_vpcConfig; }
180 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
181 template <typename VpcConfigT = AwsCodeBuildProjectVpcConfig>
182 void SetVpcConfig(VpcConfigT&& value) {
183 m_vpcConfigHasBeenSet = true;
184 m_vpcConfig = std::forward<VpcConfigT>(value);
185 }
186 template <typename VpcConfigT = AwsCodeBuildProjectVpcConfig>
188 SetVpcConfig(std::forward<VpcConfigT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::Vector<AwsCodeBuildProjectArtifactsDetails>& GetSecondaryArtifacts() const { return m_secondaryArtifacts; }
198 inline bool SecondaryArtifactsHasBeenSet() const { return m_secondaryArtifactsHasBeenSet; }
199 template <typename SecondaryArtifactsT = Aws::Vector<AwsCodeBuildProjectArtifactsDetails>>
200 void SetSecondaryArtifacts(SecondaryArtifactsT&& value) {
201 m_secondaryArtifactsHasBeenSet = true;
202 m_secondaryArtifacts = std::forward<SecondaryArtifactsT>(value);
203 }
204 template <typename SecondaryArtifactsT = Aws::Vector<AwsCodeBuildProjectArtifactsDetails>>
206 SetSecondaryArtifacts(std::forward<SecondaryArtifactsT>(value));
207 return *this;
208 }
209 template <typename SecondaryArtifactsT = AwsCodeBuildProjectArtifactsDetails>
210 AwsCodeBuildProjectDetails& AddSecondaryArtifacts(SecondaryArtifactsT&& value) {
211 m_secondaryArtifactsHasBeenSet = true;
212 m_secondaryArtifacts.emplace_back(std::forward<SecondaryArtifactsT>(value));
213 return *this;
214 }
216 private:
217 Aws::String m_encryptionKey;
218
220
221 AwsCodeBuildProjectEnvironment m_environment;
222
223 Aws::String m_name;
224
226
227 Aws::String m_serviceRole;
228
230
232
234 bool m_encryptionKeyHasBeenSet = false;
235 bool m_artifactsHasBeenSet = false;
236 bool m_environmentHasBeenSet = false;
237 bool m_nameHasBeenSet = false;
238 bool m_sourceHasBeenSet = false;
239 bool m_serviceRoleHasBeenSet = false;
240 bool m_logsConfigHasBeenSet = false;
241 bool m_vpcConfigHasBeenSet = false;
242 bool m_secondaryArtifactsHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace SecurityHub
247} // namespace Aws
AWS_SECURITYHUB_API AwsCodeBuildProjectDetails()=default
const AwsCodeBuildProjectEnvironment & GetEnvironment() const
AwsCodeBuildProjectDetails & AddSecondaryArtifacts(SecondaryArtifactsT &&value)
AwsCodeBuildProjectDetails & WithName(NameT &&value)
AwsCodeBuildProjectDetails & WithEnvironment(EnvironmentT &&value)
const Aws::Vector< AwsCodeBuildProjectArtifactsDetails > & GetSecondaryArtifacts() const
const Aws::Vector< AwsCodeBuildProjectArtifactsDetails > & GetArtifacts() const
AwsCodeBuildProjectDetails & WithArtifacts(ArtifactsT &&value)
const AwsCodeBuildProjectVpcConfig & GetVpcConfig() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const AwsCodeBuildProjectLogsConfigDetails & GetLogsConfig() const
AwsCodeBuildProjectDetails & WithLogsConfig(LogsConfigT &&value)
AWS_SECURITYHUB_API AwsCodeBuildProjectDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsCodeBuildProjectDetails & WithSecondaryArtifacts(SecondaryArtifactsT &&value)
AwsCodeBuildProjectDetails & WithServiceRole(ServiceRoleT &&value)
AwsCodeBuildProjectDetails & WithSource(SourceT &&value)
AwsCodeBuildProjectDetails & WithVpcConfig(VpcConfigT &&value)
AwsCodeBuildProjectDetails & WithEncryptionKey(EncryptionKeyT &&value)
AwsCodeBuildProjectDetails & AddArtifacts(ArtifactsT &&value)
AWS_SECURITYHUB_API AwsCodeBuildProjectDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue