AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RevisionLocation.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/AppSpecContent.h>
9#include <aws/codedeploy/model/GitHubLocation.h>
10#include <aws/codedeploy/model/RawString.h>
11#include <aws/codedeploy/model/RevisionLocationType.h>
12#include <aws/codedeploy/model/S3Location.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeDeploy {
24namespace Model {
25
33 public:
34 AWS_CODEDEPLOY_API RevisionLocation() = default;
35 AWS_CODEDEPLOY_API RevisionLocation(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
49 inline RevisionLocationType GetRevisionType() const { return m_revisionType; }
50 inline bool RevisionTypeHasBeenSet() const { return m_revisionTypeHasBeenSet; }
52 m_revisionTypeHasBeenSet = true;
53 m_revisionType = value;
54 }
56 SetRevisionType(value);
57 return *this;
58 }
60
62
65 inline const S3Location& GetS3Location() const { return m_s3Location; }
66 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
67 template <typename S3LocationT = S3Location>
68 void SetS3Location(S3LocationT&& value) {
69 m_s3LocationHasBeenSet = true;
70 m_s3Location = std::forward<S3LocationT>(value);
71 }
72 template <typename S3LocationT = S3Location>
73 RevisionLocation& WithS3Location(S3LocationT&& value) {
74 SetS3Location(std::forward<S3LocationT>(value));
75 return *this;
76 }
78
80
83 inline const GitHubLocation& GetGitHubLocation() const { return m_gitHubLocation; }
84 inline bool GitHubLocationHasBeenSet() const { return m_gitHubLocationHasBeenSet; }
85 template <typename GitHubLocationT = GitHubLocation>
86 void SetGitHubLocation(GitHubLocationT&& value) {
87 m_gitHubLocationHasBeenSet = true;
88 m_gitHubLocation = std::forward<GitHubLocationT>(value);
89 }
90 template <typename GitHubLocationT = GitHubLocation>
91 RevisionLocation& WithGitHubLocation(GitHubLocationT&& value) {
92 SetGitHubLocation(std::forward<GitHubLocationT>(value));
93 return *this;
94 }
96
98
102 inline const RawString& GetString() const { return m_string; }
103 inline bool StringHasBeenSet() const { return m_stringHasBeenSet; }
104 template <typename StringT = RawString>
105 void SetString(StringT&& value) {
106 m_stringHasBeenSet = true;
107 m_string = std::forward<StringT>(value);
108 }
109 template <typename StringT = RawString>
110 RevisionLocation& WithString(StringT&& value) {
111 SetString(std::forward<StringT>(value));
112 return *this;
113 }
115
117
121 inline const AppSpecContent& GetAppSpecContent() const { return m_appSpecContent; }
122 inline bool AppSpecContentHasBeenSet() const { return m_appSpecContentHasBeenSet; }
123 template <typename AppSpecContentT = AppSpecContent>
124 void SetAppSpecContent(AppSpecContentT&& value) {
125 m_appSpecContentHasBeenSet = true;
126 m_appSpecContent = std::forward<AppSpecContentT>(value);
127 }
128 template <typename AppSpecContentT = AppSpecContent>
129 RevisionLocation& WithAppSpecContent(AppSpecContentT&& value) {
130 SetAppSpecContent(std::forward<AppSpecContentT>(value));
131 return *this;
132 }
134 private:
136
137 S3Location m_s3Location;
138
139 GitHubLocation m_gitHubLocation;
140
141 RawString m_string;
142
143 AppSpecContent m_appSpecContent;
144 bool m_revisionTypeHasBeenSet = false;
145 bool m_s3LocationHasBeenSet = false;
146 bool m_gitHubLocationHasBeenSet = false;
147 bool m_stringHasBeenSet = false;
148 bool m_appSpecContentHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace CodeDeploy
153} // namespace Aws
RevisionLocation & WithS3Location(S3LocationT &&value)
const S3Location & GetS3Location() const
AWS_CODEDEPLOY_API RevisionLocation()=default
const GitHubLocation & GetGitHubLocation() const
void SetAppSpecContent(AppSpecContentT &&value)
RevisionLocation & WithRevisionType(RevisionLocationType value)
RevisionLocationType GetRevisionType() const
AWS_CODEDEPLOY_API RevisionLocation(Aws::Utils::Json::JsonView jsonValue)
RevisionLocation & WithString(StringT &&value)
RevisionLocation & WithGitHubLocation(GitHubLocationT &&value)
AWS_CODEDEPLOY_API RevisionLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRevisionType(RevisionLocationType value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
RevisionLocation & WithAppSpecContent(AppSpecContentT &&value)
const AppSpecContent & GetAppSpecContent() const
void SetGitHubLocation(GitHubLocationT &&value)
Aws::Utils::Json::JsonValue JsonValue