AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 SourceType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(SourceType value) { m_typeHasBeenSet = true; m_type = value; }
65 inline ProjectSource& WithType(SourceType value) { SetType(value); return *this;}
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) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
126 template<typename LocationT = Aws::String>
127 ProjectSource& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
129
131
134 inline int GetGitCloneDepth() const { return m_gitCloneDepth; }
135 inline bool GitCloneDepthHasBeenSet() const { return m_gitCloneDepthHasBeenSet; }
136 inline void SetGitCloneDepth(int value) { m_gitCloneDepthHasBeenSet = true; m_gitCloneDepth = value; }
137 inline ProjectSource& WithGitCloneDepth(int value) { SetGitCloneDepth(value); return *this;}
139
141
145 inline const GitSubmodulesConfig& GetGitSubmodulesConfig() const { return m_gitSubmodulesConfig; }
146 inline bool GitSubmodulesConfigHasBeenSet() const { return m_gitSubmodulesConfigHasBeenSet; }
147 template<typename GitSubmodulesConfigT = GitSubmodulesConfig>
148 void SetGitSubmodulesConfig(GitSubmodulesConfigT&& value) { m_gitSubmodulesConfigHasBeenSet = true; m_gitSubmodulesConfig = std::forward<GitSubmodulesConfigT>(value); }
149 template<typename GitSubmodulesConfigT = GitSubmodulesConfig>
150 ProjectSource& WithGitSubmodulesConfig(GitSubmodulesConfigT&& value) { SetGitSubmodulesConfig(std::forward<GitSubmodulesConfigT>(value)); return *this;}
152
154
167 inline const Aws::String& GetBuildspec() const { return m_buildspec; }
168 inline bool BuildspecHasBeenSet() const { return m_buildspecHasBeenSet; }
169 template<typename BuildspecT = Aws::String>
170 void SetBuildspec(BuildspecT&& value) { m_buildspecHasBeenSet = true; m_buildspec = std::forward<BuildspecT>(value); }
171 template<typename BuildspecT = Aws::String>
172 ProjectSource& WithBuildspec(BuildspecT&& value) { SetBuildspec(std::forward<BuildspecT>(value)); return *this;}
174
176
180 inline const SourceAuth& GetAuth() const { return m_auth; }
181 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
182 template<typename AuthT = SourceAuth>
183 void SetAuth(AuthT&& value) { m_authHasBeenSet = true; m_auth = std::forward<AuthT>(value); }
184 template<typename AuthT = SourceAuth>
185 ProjectSource& WithAuth(AuthT&& value) { SetAuth(std::forward<AuthT>(value)); return *this;}
187
189
204 inline bool GetReportBuildStatus() const { return m_reportBuildStatus; }
205 inline bool ReportBuildStatusHasBeenSet() const { return m_reportBuildStatusHasBeenSet; }
206 inline void SetReportBuildStatus(bool value) { m_reportBuildStatusHasBeenSet = true; m_reportBuildStatus = value; }
207 inline ProjectSource& WithReportBuildStatus(bool value) { SetReportBuildStatus(value); return *this;}
209
211
217 inline const BuildStatusConfig& GetBuildStatusConfig() const { return m_buildStatusConfig; }
218 inline bool BuildStatusConfigHasBeenSet() const { return m_buildStatusConfigHasBeenSet; }
219 template<typename BuildStatusConfigT = BuildStatusConfig>
220 void SetBuildStatusConfig(BuildStatusConfigT&& value) { m_buildStatusConfigHasBeenSet = true; m_buildStatusConfig = std::forward<BuildStatusConfigT>(value); }
221 template<typename BuildStatusConfigT = BuildStatusConfig>
222 ProjectSource& WithBuildStatusConfig(BuildStatusConfigT&& value) { SetBuildStatusConfig(std::forward<BuildStatusConfigT>(value)); return *this;}
224
226
230 inline bool GetInsecureSsl() const { return m_insecureSsl; }
231 inline bool InsecureSslHasBeenSet() const { return m_insecureSslHasBeenSet; }
232 inline void SetInsecureSsl(bool value) { m_insecureSslHasBeenSet = true; m_insecureSsl = value; }
233 inline ProjectSource& WithInsecureSsl(bool value) { SetInsecureSsl(value); return *this;}
235
237
242 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
243 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
244 template<typename SourceIdentifierT = Aws::String>
245 void SetSourceIdentifier(SourceIdentifierT&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::forward<SourceIdentifierT>(value); }
246 template<typename SourceIdentifierT = Aws::String>
247 ProjectSource& WithSourceIdentifier(SourceIdentifierT&& value) { SetSourceIdentifier(std::forward<SourceIdentifierT>(value)); return *this;}
249 private:
250
252 bool m_typeHasBeenSet = false;
253
254 Aws::String m_location;
255 bool m_locationHasBeenSet = false;
256
257 int m_gitCloneDepth{0};
258 bool m_gitCloneDepthHasBeenSet = false;
259
260 GitSubmodulesConfig m_gitSubmodulesConfig;
261 bool m_gitSubmodulesConfigHasBeenSet = false;
262
263 Aws::String m_buildspec;
264 bool m_buildspecHasBeenSet = false;
265
266 SourceAuth m_auth;
267 bool m_authHasBeenSet = false;
268
269 bool m_reportBuildStatus{false};
270 bool m_reportBuildStatusHasBeenSet = false;
271
272 BuildStatusConfig m_buildStatusConfig;
273 bool m_buildStatusConfigHasBeenSet = false;
274
275 bool m_insecureSsl{false};
276 bool m_insecureSslHasBeenSet = false;
277
278 Aws::String m_sourceIdentifier;
279 bool m_sourceIdentifierHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace CodeBuild
284} // 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