AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ProjectSource.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/BuildStatusConfig.h>
9#include <aws/codebuild/model/GitSubmodulesConfig.h>
10#include <aws/codebuild/model/SourceAuth.h>
11#include <aws/codebuild/model/SourceType.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeBuild {
24namespace Model {
25
33 public:
34 AWS_CODEBUILD_API ProjectSource() = default;
35 AWS_CODEBUILD_API ProjectSource(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEBUILD_API ProjectSource& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
56 inline SourceType GetType() const { return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 inline void SetType(SourceType value) {
59 m_typeHasBeenSet = true;
60 m_type = value;
61 }
63 SetType(value);
64 return *this;
65 }
67
69
122 inline const Aws::String& GetLocation() const { return m_location; }
123 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
124 template <typename LocationT = Aws::String>
125 void SetLocation(LocationT&& value) {
126 m_locationHasBeenSet = true;
127 m_location = std::forward<LocationT>(value);
128 }
129 template <typename LocationT = Aws::String>
130 ProjectSource& WithLocation(LocationT&& value) {
131 SetLocation(std::forward<LocationT>(value));
132 return *this;
133 }
135
137
140 inline int GetGitCloneDepth() const { return m_gitCloneDepth; }
141 inline bool GitCloneDepthHasBeenSet() const { return m_gitCloneDepthHasBeenSet; }
142 inline void SetGitCloneDepth(int value) {
143 m_gitCloneDepthHasBeenSet = true;
144 m_gitCloneDepth = value;
145 }
146 inline ProjectSource& WithGitCloneDepth(int value) {
147 SetGitCloneDepth(value);
148 return *this;
149 }
151
153
157 inline const GitSubmodulesConfig& GetGitSubmodulesConfig() const { return m_gitSubmodulesConfig; }
158 inline bool GitSubmodulesConfigHasBeenSet() const { return m_gitSubmodulesConfigHasBeenSet; }
159 template <typename GitSubmodulesConfigT = GitSubmodulesConfig>
160 void SetGitSubmodulesConfig(GitSubmodulesConfigT&& value) {
161 m_gitSubmodulesConfigHasBeenSet = true;
162 m_gitSubmodulesConfig = std::forward<GitSubmodulesConfigT>(value);
163 }
164 template <typename GitSubmodulesConfigT = GitSubmodulesConfig>
165 ProjectSource& WithGitSubmodulesConfig(GitSubmodulesConfigT&& value) {
166 SetGitSubmodulesConfig(std::forward<GitSubmodulesConfigT>(value));
167 return *this;
168 }
170
172
185 inline const Aws::String& GetBuildspec() const { return m_buildspec; }
186 inline bool BuildspecHasBeenSet() const { return m_buildspecHasBeenSet; }
187 template <typename BuildspecT = Aws::String>
188 void SetBuildspec(BuildspecT&& value) {
189 m_buildspecHasBeenSet = true;
190 m_buildspec = std::forward<BuildspecT>(value);
191 }
192 template <typename BuildspecT = Aws::String>
193 ProjectSource& WithBuildspec(BuildspecT&& value) {
194 SetBuildspec(std::forward<BuildspecT>(value));
195 return *this;
196 }
198
200
204 inline const SourceAuth& GetAuth() const { return m_auth; }
205 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
206 template <typename AuthT = SourceAuth>
207 void SetAuth(AuthT&& value) {
208 m_authHasBeenSet = true;
209 m_auth = std::forward<AuthT>(value);
210 }
211 template <typename AuthT = SourceAuth>
212 ProjectSource& WithAuth(AuthT&& value) {
213 SetAuth(std::forward<AuthT>(value));
214 return *this;
215 }
217
219
234 inline bool GetReportBuildStatus() const { return m_reportBuildStatus; }
235 inline bool ReportBuildStatusHasBeenSet() const { return m_reportBuildStatusHasBeenSet; }
236 inline void SetReportBuildStatus(bool value) {
237 m_reportBuildStatusHasBeenSet = true;
238 m_reportBuildStatus = value;
239 }
242 return *this;
243 }
245
247
253 inline const BuildStatusConfig& GetBuildStatusConfig() const { return m_buildStatusConfig; }
254 inline bool BuildStatusConfigHasBeenSet() const { return m_buildStatusConfigHasBeenSet; }
255 template <typename BuildStatusConfigT = BuildStatusConfig>
256 void SetBuildStatusConfig(BuildStatusConfigT&& value) {
257 m_buildStatusConfigHasBeenSet = true;
258 m_buildStatusConfig = std::forward<BuildStatusConfigT>(value);
259 }
260 template <typename BuildStatusConfigT = BuildStatusConfig>
261 ProjectSource& WithBuildStatusConfig(BuildStatusConfigT&& value) {
262 SetBuildStatusConfig(std::forward<BuildStatusConfigT>(value));
263 return *this;
264 }
266
268
272 inline bool GetInsecureSsl() const { return m_insecureSsl; }
273 inline bool InsecureSslHasBeenSet() const { return m_insecureSslHasBeenSet; }
274 inline void SetInsecureSsl(bool value) {
275 m_insecureSslHasBeenSet = true;
276 m_insecureSsl = value;
277 }
278 inline ProjectSource& WithInsecureSsl(bool value) {
279 SetInsecureSsl(value);
280 return *this;
281 }
283
285
290 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
291 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
292 template <typename SourceIdentifierT = Aws::String>
293 void SetSourceIdentifier(SourceIdentifierT&& value) {
294 m_sourceIdentifierHasBeenSet = true;
295 m_sourceIdentifier = std::forward<SourceIdentifierT>(value);
296 }
297 template <typename SourceIdentifierT = Aws::String>
298 ProjectSource& WithSourceIdentifier(SourceIdentifierT&& value) {
299 SetSourceIdentifier(std::forward<SourceIdentifierT>(value));
300 return *this;
301 }
303 private:
305
306 Aws::String m_location;
307
308 int m_gitCloneDepth{0};
309
310 GitSubmodulesConfig m_gitSubmodulesConfig;
311
312 Aws::String m_buildspec;
313
314 SourceAuth m_auth;
315
316 bool m_reportBuildStatus{false};
317
318 BuildStatusConfig m_buildStatusConfig;
319
320 bool m_insecureSsl{false};
321
322 Aws::String m_sourceIdentifier;
323 bool m_typeHasBeenSet = false;
324 bool m_locationHasBeenSet = false;
325 bool m_gitCloneDepthHasBeenSet = false;
326 bool m_gitSubmodulesConfigHasBeenSet = false;
327 bool m_buildspecHasBeenSet = false;
328 bool m_authHasBeenSet = false;
329 bool m_reportBuildStatusHasBeenSet = false;
330 bool m_buildStatusConfigHasBeenSet = false;
331 bool m_insecureSslHasBeenSet = false;
332 bool m_sourceIdentifierHasBeenSet = false;
333};
334
335} // namespace Model
336} // namespace CodeBuild
337} // namespace Aws
ProjectSource & WithInsecureSsl(bool value)
AWS_CODEBUILD_API ProjectSource & operator=(Aws::Utils::Json::JsonView jsonValue)
ProjectSource & WithType(SourceType value)
ProjectSource & WithGitCloneDepth(int value)
AWS_CODEBUILD_API ProjectSource(Aws::Utils::Json::JsonView jsonValue)
ProjectSource & WithLocation(LocationT &&value)
ProjectSource & WithBuildStatusConfig(BuildStatusConfigT &&value)
const Aws::String & GetLocation() const
const SourceAuth & GetAuth() const
ProjectSource & WithBuildspec(BuildspecT &&value)
const Aws::String & GetSourceIdentifier() const
void SetGitSubmodulesConfig(GitSubmodulesConfigT &&value)
void SetBuildspec(BuildspecT &&value)
ProjectSource & WithGitSubmodulesConfig(GitSubmodulesConfigT &&value)
ProjectSource & WithReportBuildStatus(bool value)
const BuildStatusConfig & GetBuildStatusConfig() const
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLocation(LocationT &&value)
AWS_CODEBUILD_API ProjectSource()=default
void SetBuildStatusConfig(BuildStatusConfigT &&value)
const Aws::String & GetBuildspec() const
ProjectSource & WithAuth(AuthT &&value)
void SetSourceIdentifier(SourceIdentifierT &&value)
const GitSubmodulesConfig & GetGitSubmodulesConfig() const
ProjectSource & WithSourceIdentifier(SourceIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue