AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AutoBranchCreationConfig.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/model/Stage.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Amplify {
22namespace Model {
23
31 public:
32 AWS_AMPLIFY_API AutoBranchCreationConfig() = default;
35 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline Stage GetStage() const { return m_stage; }
42 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
43 inline void SetStage(Stage value) {
44 m_stageHasBeenSet = true;
45 m_stage = value;
46 }
48 SetStage(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetFramework() const { return m_framework; }
58 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
59 template <typename FrameworkT = Aws::String>
60 void SetFramework(FrameworkT&& value) {
61 m_frameworkHasBeenSet = true;
62 m_framework = std::forward<FrameworkT>(value);
63 }
64 template <typename FrameworkT = Aws::String>
66 SetFramework(std::forward<FrameworkT>(value));
67 return *this;
68 }
70
72
75 inline bool GetEnableAutoBuild() const { return m_enableAutoBuild; }
76 inline bool EnableAutoBuildHasBeenSet() const { return m_enableAutoBuildHasBeenSet; }
77 inline void SetEnableAutoBuild(bool value) {
78 m_enableAutoBuildHasBeenSet = true;
79 m_enableAutoBuild = value;
80 }
82 SetEnableAutoBuild(value);
83 return *this;
84 }
86
88
91 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
92 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
93 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
94 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
95 m_environmentVariablesHasBeenSet = true;
96 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
97 }
98 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
99 AutoBranchCreationConfig& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
100 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
101 return *this;
102 }
103 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
104 AutoBranchCreationConfig& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
105 m_environmentVariablesHasBeenSet = true;
106 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::String& GetBasicAuthCredentials() const { return m_basicAuthCredentials; }
118 inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; }
119 template <typename BasicAuthCredentialsT = Aws::String>
120 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) {
121 m_basicAuthCredentialsHasBeenSet = true;
122 m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value);
123 }
124 template <typename BasicAuthCredentialsT = Aws::String>
125 AutoBranchCreationConfig& WithBasicAuthCredentials(BasicAuthCredentialsT&& value) {
126 SetBasicAuthCredentials(std::forward<BasicAuthCredentialsT>(value));
127 return *this;
128 }
130
132
135 inline bool GetEnableBasicAuth() const { return m_enableBasicAuth; }
136 inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; }
137 inline void SetEnableBasicAuth(bool value) {
138 m_enableBasicAuthHasBeenSet = true;
139 m_enableBasicAuth = value;
140 }
142 SetEnableBasicAuth(value);
143 return *this;
144 }
146
148
154 inline bool GetEnablePerformanceMode() const { return m_enablePerformanceMode; }
155 inline bool EnablePerformanceModeHasBeenSet() const { return m_enablePerformanceModeHasBeenSet; }
156 inline void SetEnablePerformanceMode(bool value) {
157 m_enablePerformanceModeHasBeenSet = true;
158 m_enablePerformanceMode = value;
159 }
162 return *this;
163 }
165
167
170 inline const Aws::String& GetBuildSpec() const { return m_buildSpec; }
171 inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
172 template <typename BuildSpecT = Aws::String>
173 void SetBuildSpec(BuildSpecT&& value) {
174 m_buildSpecHasBeenSet = true;
175 m_buildSpec = std::forward<BuildSpecT>(value);
176 }
177 template <typename BuildSpecT = Aws::String>
179 SetBuildSpec(std::forward<BuildSpecT>(value));
180 return *this;
181 }
183
185
188 inline bool GetEnablePullRequestPreview() const { return m_enablePullRequestPreview; }
189 inline bool EnablePullRequestPreviewHasBeenSet() const { return m_enablePullRequestPreviewHasBeenSet; }
190 inline void SetEnablePullRequestPreview(bool value) {
191 m_enablePullRequestPreviewHasBeenSet = true;
192 m_enablePullRequestPreview = value;
193 }
196 return *this;
197 }
199
201
204 inline const Aws::String& GetPullRequestEnvironmentName() const { return m_pullRequestEnvironmentName; }
205 inline bool PullRequestEnvironmentNameHasBeenSet() const { return m_pullRequestEnvironmentNameHasBeenSet; }
206 template <typename PullRequestEnvironmentNameT = Aws::String>
207 void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) {
208 m_pullRequestEnvironmentNameHasBeenSet = true;
209 m_pullRequestEnvironmentName = std::forward<PullRequestEnvironmentNameT>(value);
210 }
211 template <typename PullRequestEnvironmentNameT = Aws::String>
212 AutoBranchCreationConfig& WithPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) {
213 SetPullRequestEnvironmentName(std::forward<PullRequestEnvironmentNameT>(value));
214 return *this;
215 }
217 private:
218 Stage m_stage{Stage::NOT_SET};
219
220 Aws::String m_framework;
221
222 bool m_enableAutoBuild{false};
223
224 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
225
226 Aws::String m_basicAuthCredentials;
227
228 bool m_enableBasicAuth{false};
229
230 bool m_enablePerformanceMode{false};
231
232 Aws::String m_buildSpec;
233
234 bool m_enablePullRequestPreview{false};
235
236 Aws::String m_pullRequestEnvironmentName;
237 bool m_stageHasBeenSet = false;
238 bool m_frameworkHasBeenSet = false;
239 bool m_enableAutoBuildHasBeenSet = false;
240 bool m_environmentVariablesHasBeenSet = false;
241 bool m_basicAuthCredentialsHasBeenSet = false;
242 bool m_enableBasicAuthHasBeenSet = false;
243 bool m_enablePerformanceModeHasBeenSet = false;
244 bool m_buildSpecHasBeenSet = false;
245 bool m_enablePullRequestPreviewHasBeenSet = false;
246 bool m_pullRequestEnvironmentNameHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace Amplify
251} // namespace Aws
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFY_API AutoBranchCreationConfig()=default
AutoBranchCreationConfig & WithEnableBasicAuth(bool value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
AutoBranchCreationConfig & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
AutoBranchCreationConfig & WithFramework(FrameworkT &&value)
AWS_AMPLIFY_API AutoBranchCreationConfig(Aws::Utils::Json::JsonView jsonValue)
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
AutoBranchCreationConfig & WithEnablePullRequestPreview(bool value)
AutoBranchCreationConfig & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
AutoBranchCreationConfig & WithEnablePerformanceMode(bool value)
AutoBranchCreationConfig & WithBuildSpec(BuildSpecT &&value)
AWS_AMPLIFY_API AutoBranchCreationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoBranchCreationConfig & WithPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
AutoBranchCreationConfig & WithEnableAutoBuild(bool value)
AutoBranchCreationConfig & WithEnvironmentVariables(EnvironmentVariablesT &&value)
AutoBranchCreationConfig & WithStage(Stage value)
void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue