AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RevisionLocation.h
Go to the documentation of this file.
1
6#pragma once
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 CodeDeploy
26{
27namespace Model
28{
29
37 {
38 public:
43
44
54 inline const RevisionLocationType& GetRevisionType() const{ return m_revisionType; }
55
65 inline bool RevisionTypeHasBeenSet() const { return m_revisionTypeHasBeenSet; }
66
76 inline void SetRevisionType(const RevisionLocationType& value) { m_revisionTypeHasBeenSet = true; m_revisionType = value; }
77
87 inline void SetRevisionType(RevisionLocationType&& value) { m_revisionTypeHasBeenSet = true; m_revisionType = std::move(value); }
88
98 inline RevisionLocation& WithRevisionType(const RevisionLocationType& value) { SetRevisionType(value); return *this;}
99
109 inline RevisionLocation& WithRevisionType(RevisionLocationType&& value) { SetRevisionType(std::move(value)); return *this;}
110
111
115 inline const S3Location& GetS3Location() const{ return m_s3Location; }
116
120 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
121
125 inline void SetS3Location(const S3Location& value) { m_s3LocationHasBeenSet = true; m_s3Location = value; }
126
130 inline void SetS3Location(S3Location&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::move(value); }
131
135 inline RevisionLocation& WithS3Location(const S3Location& value) { SetS3Location(value); return *this;}
136
140 inline RevisionLocation& WithS3Location(S3Location&& value) { SetS3Location(std::move(value)); return *this;}
141
142
146 inline const GitHubLocation& GetGitHubLocation() const{ return m_gitHubLocation; }
147
151 inline bool GitHubLocationHasBeenSet() const { return m_gitHubLocationHasBeenSet; }
152
156 inline void SetGitHubLocation(const GitHubLocation& value) { m_gitHubLocationHasBeenSet = true; m_gitHubLocation = value; }
157
161 inline void SetGitHubLocation(GitHubLocation&& value) { m_gitHubLocationHasBeenSet = true; m_gitHubLocation = std::move(value); }
162
166 inline RevisionLocation& WithGitHubLocation(const GitHubLocation& value) { SetGitHubLocation(value); return *this;}
167
171 inline RevisionLocation& WithGitHubLocation(GitHubLocation&& value) { SetGitHubLocation(std::move(value)); return *this;}
172
173
178 inline const RawString& GetString() const{ return m_string; }
179
184 inline bool StringHasBeenSet() const { return m_stringHasBeenSet; }
185
190 inline void SetString(const RawString& value) { m_stringHasBeenSet = true; m_string = value; }
191
196 inline void SetString(RawString&& value) { m_stringHasBeenSet = true; m_string = std::move(value); }
197
202 inline RevisionLocation& WithString(const RawString& value) { SetString(value); return *this;}
203
208 inline RevisionLocation& WithString(RawString&& value) { SetString(std::move(value)); return *this;}
209
210
215 inline const AppSpecContent& GetAppSpecContent() const{ return m_appSpecContent; }
216
221 inline bool AppSpecContentHasBeenSet() const { return m_appSpecContentHasBeenSet; }
222
227 inline void SetAppSpecContent(const AppSpecContent& value) { m_appSpecContentHasBeenSet = true; m_appSpecContent = value; }
228
233 inline void SetAppSpecContent(AppSpecContent&& value) { m_appSpecContentHasBeenSet = true; m_appSpecContent = std::move(value); }
234
239 inline RevisionLocation& WithAppSpecContent(const AppSpecContent& value) { SetAppSpecContent(value); return *this;}
240
245 inline RevisionLocation& WithAppSpecContent(AppSpecContent&& value) { SetAppSpecContent(std::move(value)); return *this;}
246
247 private:
248
249 RevisionLocationType m_revisionType;
250 bool m_revisionTypeHasBeenSet = false;
251
252 S3Location m_s3Location;
253 bool m_s3LocationHasBeenSet = false;
254
255 GitHubLocation m_gitHubLocation;
256 bool m_gitHubLocationHasBeenSet = false;
257
258 RawString m_string;
259 bool m_stringHasBeenSet = false;
260
261 AppSpecContent m_appSpecContent;
262 bool m_appSpecContentHasBeenSet = false;
263 };
264
265} // namespace Model
266} // namespace CodeDeploy
267} // namespace Aws
#define AWS_CODEDEPLOY_API
void SetS3Location(const S3Location &value)
const S3Location & GetS3Location() const
RevisionLocation & WithGitHubLocation(GitHubLocation &&value)
void SetAppSpecContent(AppSpecContent &&value)
RevisionLocation & WithString(const RawString &value)
void SetGitHubLocation(const GitHubLocation &value)
RevisionLocation & WithRevisionType(RevisionLocationType &&value)
const GitHubLocation & GetGitHubLocation() const
RevisionLocation & WithAppSpecContent(AppSpecContent &&value)
void SetRevisionType(const RevisionLocationType &value)
RevisionLocation & WithRevisionType(const RevisionLocationType &value)
RevisionLocation & WithS3Location(S3Location &&value)
AWS_CODEDEPLOY_API RevisionLocation(Aws::Utils::Json::JsonView jsonValue)
void SetAppSpecContent(const AppSpecContent &value)
RevisionLocation & WithAppSpecContent(const AppSpecContent &value)
const RevisionLocationType & GetRevisionType() const
RevisionLocation & WithString(RawString &&value)
void SetString(const RawString &value)
AWS_CODEDEPLOY_API RevisionLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
RevisionLocation & WithS3Location(const S3Location &value)
void SetRevisionType(RevisionLocationType &&value)
void SetGitHubLocation(GitHubLocation &&value)
RevisionLocation & WithGitHubLocation(const GitHubLocation &value)
const AppSpecContent & GetAppSpecContent() const