AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProjectSource.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/SourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codebuild/model/GitSubmodulesConfig.h>
11#include <aws/codebuild/model/SourceAuth.h>
12#include <aws/codebuild/model/BuildStatusConfig.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeBuild
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CODEBUILD_API ProjectSource();
40 AWS_CODEBUILD_API ProjectSource(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEBUILD_API ProjectSource& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
62 inline const SourceType& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const SourceType& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(SourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline ProjectSource& WithType(const SourceType& value) { SetType(value); return *this;}
67 inline ProjectSource& WithType(SourceType&& value) { SetType(std::move(value)); return *this;}
69
71
124 inline const Aws::String& GetLocation() const{ return m_location; }
125 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
126 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
127 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
128 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
129 inline ProjectSource& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
130 inline ProjectSource& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
131 inline ProjectSource& WithLocation(const char* value) { SetLocation(value); return *this;}
133
135
138 inline int GetGitCloneDepth() const{ return m_gitCloneDepth; }
139 inline bool GitCloneDepthHasBeenSet() const { return m_gitCloneDepthHasBeenSet; }
140 inline void SetGitCloneDepth(int value) { m_gitCloneDepthHasBeenSet = true; m_gitCloneDepth = value; }
141 inline ProjectSource& WithGitCloneDepth(int value) { SetGitCloneDepth(value); return *this;}
143
145
149 inline const GitSubmodulesConfig& GetGitSubmodulesConfig() const{ return m_gitSubmodulesConfig; }
150 inline bool GitSubmodulesConfigHasBeenSet() const { return m_gitSubmodulesConfigHasBeenSet; }
151 inline void SetGitSubmodulesConfig(const GitSubmodulesConfig& value) { m_gitSubmodulesConfigHasBeenSet = true; m_gitSubmodulesConfig = value; }
152 inline void SetGitSubmodulesConfig(GitSubmodulesConfig&& value) { m_gitSubmodulesConfigHasBeenSet = true; m_gitSubmodulesConfig = std::move(value); }
154 inline ProjectSource& WithGitSubmodulesConfig(GitSubmodulesConfig&& value) { SetGitSubmodulesConfig(std::move(value)); return *this;}
156
158
171 inline const Aws::String& GetBuildspec() const{ return m_buildspec; }
172 inline bool BuildspecHasBeenSet() const { return m_buildspecHasBeenSet; }
173 inline void SetBuildspec(const Aws::String& value) { m_buildspecHasBeenSet = true; m_buildspec = value; }
174 inline void SetBuildspec(Aws::String&& value) { m_buildspecHasBeenSet = true; m_buildspec = std::move(value); }
175 inline void SetBuildspec(const char* value) { m_buildspecHasBeenSet = true; m_buildspec.assign(value); }
176 inline ProjectSource& WithBuildspec(const Aws::String& value) { SetBuildspec(value); return *this;}
177 inline ProjectSource& WithBuildspec(Aws::String&& value) { SetBuildspec(std::move(value)); return *this;}
178 inline ProjectSource& WithBuildspec(const char* value) { SetBuildspec(value); return *this;}
180
182
186 inline const SourceAuth& GetAuth() const{ return m_auth; }
187 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
188 inline void SetAuth(const SourceAuth& value) { m_authHasBeenSet = true; m_auth = value; }
189 inline void SetAuth(SourceAuth&& value) { m_authHasBeenSet = true; m_auth = std::move(value); }
190 inline ProjectSource& WithAuth(const SourceAuth& value) { SetAuth(value); return *this;}
191 inline ProjectSource& WithAuth(SourceAuth&& value) { SetAuth(std::move(value)); return *this;}
193
195
210 inline bool GetReportBuildStatus() const{ return m_reportBuildStatus; }
211 inline bool ReportBuildStatusHasBeenSet() const { return m_reportBuildStatusHasBeenSet; }
212 inline void SetReportBuildStatus(bool value) { m_reportBuildStatusHasBeenSet = true; m_reportBuildStatus = value; }
213 inline ProjectSource& WithReportBuildStatus(bool value) { SetReportBuildStatus(value); return *this;}
215
217
223 inline const BuildStatusConfig& GetBuildStatusConfig() const{ return m_buildStatusConfig; }
224 inline bool BuildStatusConfigHasBeenSet() const { return m_buildStatusConfigHasBeenSet; }
225 inline void SetBuildStatusConfig(const BuildStatusConfig& value) { m_buildStatusConfigHasBeenSet = true; m_buildStatusConfig = value; }
226 inline void SetBuildStatusConfig(BuildStatusConfig&& value) { m_buildStatusConfigHasBeenSet = true; m_buildStatusConfig = std::move(value); }
227 inline ProjectSource& WithBuildStatusConfig(const BuildStatusConfig& value) { SetBuildStatusConfig(value); return *this;}
228 inline ProjectSource& WithBuildStatusConfig(BuildStatusConfig&& value) { SetBuildStatusConfig(std::move(value)); return *this;}
230
232
236 inline bool GetInsecureSsl() const{ return m_insecureSsl; }
237 inline bool InsecureSslHasBeenSet() const { return m_insecureSslHasBeenSet; }
238 inline void SetInsecureSsl(bool value) { m_insecureSslHasBeenSet = true; m_insecureSsl = value; }
239 inline ProjectSource& WithInsecureSsl(bool value) { SetInsecureSsl(value); return *this;}
241
243
248 inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
249 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
250 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
251 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
252 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
253 inline ProjectSource& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
254 inline ProjectSource& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
255 inline ProjectSource& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
257 private:
258
259 SourceType m_type;
260 bool m_typeHasBeenSet = false;
261
262 Aws::String m_location;
263 bool m_locationHasBeenSet = false;
264
265 int m_gitCloneDepth;
266 bool m_gitCloneDepthHasBeenSet = false;
267
268 GitSubmodulesConfig m_gitSubmodulesConfig;
269 bool m_gitSubmodulesConfigHasBeenSet = false;
270
271 Aws::String m_buildspec;
272 bool m_buildspecHasBeenSet = false;
273
274 SourceAuth m_auth;
275 bool m_authHasBeenSet = false;
276
277 bool m_reportBuildStatus;
278 bool m_reportBuildStatusHasBeenSet = false;
279
280 BuildStatusConfig m_buildStatusConfig;
281 bool m_buildStatusConfigHasBeenSet = false;
282
283 bool m_insecureSsl;
284 bool m_insecureSslHasBeenSet = false;
285
286 Aws::String m_sourceIdentifier;
287 bool m_sourceIdentifierHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace CodeBuild
292} // namespace Aws
ProjectSource & WithInsecureSsl(bool value)
ProjectSource & WithBuildStatusConfig(BuildStatusConfig &&value)
AWS_CODEBUILD_API ProjectSource & operator=(Aws::Utils::Json::JsonView jsonValue)
ProjectSource & WithGitCloneDepth(int value)
ProjectSource & WithSourceIdentifier(Aws::String &&value)
void SetBuildStatusConfig(const BuildStatusConfig &value)
void SetAuth(const SourceAuth &value)
AWS_CODEBUILD_API ProjectSource(Aws::Utils::Json::JsonView jsonValue)
ProjectSource & WithBuildStatusConfig(const BuildStatusConfig &value)
ProjectSource & WithSourceIdentifier(const char *value)
ProjectSource & WithGitSubmodulesConfig(const GitSubmodulesConfig &value)
void SetSourceIdentifier(const char *value)
const Aws::String & GetLocation() const
const SourceAuth & GetAuth() const
ProjectSource & WithLocation(const char *value)
void SetBuildspec(Aws::String &&value)
void SetType(SourceType &&value)
const Aws::String & GetSourceIdentifier() const
const SourceType & GetType() const
void SetAuth(SourceAuth &&value)
void SetGitSubmodulesConfig(const GitSubmodulesConfig &value)
ProjectSource & WithLocation(const Aws::String &value)
ProjectSource & WithLocation(Aws::String &&value)
ProjectSource & WithBuildspec(const Aws::String &value)
ProjectSource & WithReportBuildStatus(bool value)
ProjectSource & WithSourceIdentifier(const Aws::String &value)
ProjectSource & WithType(SourceType &&value)
const BuildStatusConfig & GetBuildStatusConfig() const
ProjectSource & WithAuth(SourceAuth &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
ProjectSource & WithBuildspec(Aws::String &&value)
void SetLocation(const char *value)
ProjectSource & WithBuildspec(const char *value)
void SetBuildStatusConfig(BuildStatusConfig &&value)
void SetBuildspec(const char *value)
void SetType(const SourceType &value)
void SetSourceIdentifier(const Aws::String &value)
ProjectSource & WithType(const SourceType &value)
const Aws::String & GetBuildspec() const
ProjectSource & WithGitSubmodulesConfig(GitSubmodulesConfig &&value)
void SetLocation(Aws::String &&value)
void SetLocation(const Aws::String &value)
const GitSubmodulesConfig & GetGitSubmodulesConfig() const
void SetSourceIdentifier(Aws::String &&value)
ProjectSource & WithAuth(const SourceAuth &value)
void SetGitSubmodulesConfig(GitSubmodulesConfig &&value)
void SetBuildspec(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue