AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBranchRequest.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/AmplifyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/amplify/model/Stage.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/amplify/model/Backend.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Amplify
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_AMPLIFY_API CreateBranchRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateBranch"; }
38
39 AWS_AMPLIFY_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetAppId() const { return m_appId; }
47 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
48 template<typename AppIdT = Aws::String>
49 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
50 template<typename AppIdT = Aws::String>
51 CreateBranchRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetBranchName() const { return m_branchName; }
59 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
60 template<typename BranchNameT = Aws::String>
61 void SetBranchName(BranchNameT&& value) { m_branchNameHasBeenSet = true; m_branchName = std::forward<BranchNameT>(value); }
62 template<typename BranchNameT = Aws::String>
63 CreateBranchRequest& WithBranchName(BranchNameT&& value) { SetBranchName(std::forward<BranchNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 CreateBranchRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline Stage GetStage() const { return m_stage; }
83 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
84 inline void SetStage(Stage value) { m_stageHasBeenSet = true; m_stage = value; }
85 inline CreateBranchRequest& WithStage(Stage value) { SetStage(value); return *this;}
87
89
92 inline const Aws::String& GetFramework() const { return m_framework; }
93 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
94 template<typename FrameworkT = Aws::String>
95 void SetFramework(FrameworkT&& value) { m_frameworkHasBeenSet = true; m_framework = std::forward<FrameworkT>(value); }
96 template<typename FrameworkT = Aws::String>
97 CreateBranchRequest& WithFramework(FrameworkT&& value) { SetFramework(std::forward<FrameworkT>(value)); return *this;}
99
101
104 inline bool GetEnableNotification() const { return m_enableNotification; }
105 inline bool EnableNotificationHasBeenSet() const { return m_enableNotificationHasBeenSet; }
106 inline void SetEnableNotification(bool value) { m_enableNotificationHasBeenSet = true; m_enableNotification = value; }
107 inline CreateBranchRequest& WithEnableNotification(bool value) { SetEnableNotification(value); return *this;}
109
111
114 inline bool GetEnableAutoBuild() const { return m_enableAutoBuild; }
115 inline bool EnableAutoBuildHasBeenSet() const { return m_enableAutoBuildHasBeenSet; }
116 inline void SetEnableAutoBuild(bool value) { m_enableAutoBuildHasBeenSet = true; m_enableAutoBuild = value; }
117 inline CreateBranchRequest& WithEnableAutoBuild(bool value) { SetEnableAutoBuild(value); return *this;}
119
121
131 inline bool GetEnableSkewProtection() const { return m_enableSkewProtection; }
132 inline bool EnableSkewProtectionHasBeenSet() const { return m_enableSkewProtectionHasBeenSet; }
133 inline void SetEnableSkewProtection(bool value) { m_enableSkewProtectionHasBeenSet = true; m_enableSkewProtection = value; }
134 inline CreateBranchRequest& WithEnableSkewProtection(bool value) { SetEnableSkewProtection(value); return *this;}
136
138
141 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
142 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
143 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
144 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
145 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
146 CreateBranchRequest& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
147 template<typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
148 CreateBranchRequest& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
149 m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value)); return *this;
150 }
152
154
159 inline const Aws::String& GetBasicAuthCredentials() const { return m_basicAuthCredentials; }
160 inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; }
161 template<typename BasicAuthCredentialsT = Aws::String>
162 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value); }
163 template<typename BasicAuthCredentialsT = Aws::String>
164 CreateBranchRequest& WithBasicAuthCredentials(BasicAuthCredentialsT&& value) { SetBasicAuthCredentials(std::forward<BasicAuthCredentialsT>(value)); return *this;}
166
168
171 inline bool GetEnableBasicAuth() const { return m_enableBasicAuth; }
172 inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; }
173 inline void SetEnableBasicAuth(bool value) { m_enableBasicAuthHasBeenSet = true; m_enableBasicAuth = value; }
174 inline CreateBranchRequest& WithEnableBasicAuth(bool value) { SetEnableBasicAuth(value); return *this;}
176
178
184 inline bool GetEnablePerformanceMode() const { return m_enablePerformanceMode; }
185 inline bool EnablePerformanceModeHasBeenSet() const { return m_enablePerformanceModeHasBeenSet; }
186 inline void SetEnablePerformanceMode(bool value) { m_enablePerformanceModeHasBeenSet = true; m_enablePerformanceMode = value; }
187 inline CreateBranchRequest& WithEnablePerformanceMode(bool value) { SetEnablePerformanceMode(value); return *this;}
189
191
194 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
195 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
196 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
198 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
199 CreateBranchRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
200 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
201 CreateBranchRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
202 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
203 }
205
207
210 inline const Aws::String& GetBuildSpec() const { return m_buildSpec; }
211 inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
212 template<typename BuildSpecT = Aws::String>
213 void SetBuildSpec(BuildSpecT&& value) { m_buildSpecHasBeenSet = true; m_buildSpec = std::forward<BuildSpecT>(value); }
214 template<typename BuildSpecT = Aws::String>
215 CreateBranchRequest& WithBuildSpec(BuildSpecT&& value) { SetBuildSpec(std::forward<BuildSpecT>(value)); return *this;}
217
219
222 inline const Aws::String& GetTtl() const { return m_ttl; }
223 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
224 template<typename TtlT = Aws::String>
225 void SetTtl(TtlT&& value) { m_ttlHasBeenSet = true; m_ttl = std::forward<TtlT>(value); }
226 template<typename TtlT = Aws::String>
227 CreateBranchRequest& WithTtl(TtlT&& value) { SetTtl(std::forward<TtlT>(value)); return *this;}
229
231
235 inline const Aws::String& GetDisplayName() const { return m_displayName; }
236 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
237 template<typename DisplayNameT = Aws::String>
238 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
239 template<typename DisplayNameT = Aws::String>
240 CreateBranchRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
242
244
247 inline bool GetEnablePullRequestPreview() const { return m_enablePullRequestPreview; }
248 inline bool EnablePullRequestPreviewHasBeenSet() const { return m_enablePullRequestPreviewHasBeenSet; }
249 inline void SetEnablePullRequestPreview(bool value) { m_enablePullRequestPreviewHasBeenSet = true; m_enablePullRequestPreview = value; }
252
254
257 inline const Aws::String& GetPullRequestEnvironmentName() const { return m_pullRequestEnvironmentName; }
258 inline bool PullRequestEnvironmentNameHasBeenSet() const { return m_pullRequestEnvironmentNameHasBeenSet; }
259 template<typename PullRequestEnvironmentNameT = Aws::String>
260 void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName = std::forward<PullRequestEnvironmentNameT>(value); }
261 template<typename PullRequestEnvironmentNameT = Aws::String>
262 CreateBranchRequest& WithPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) { SetPullRequestEnvironmentName(std::forward<PullRequestEnvironmentNameT>(value)); return *this;}
264
266
272 inline const Aws::String& GetBackendEnvironmentArn() const { return m_backendEnvironmentArn; }
273 inline bool BackendEnvironmentArnHasBeenSet() const { return m_backendEnvironmentArnHasBeenSet; }
274 template<typename BackendEnvironmentArnT = Aws::String>
275 void SetBackendEnvironmentArn(BackendEnvironmentArnT&& value) { m_backendEnvironmentArnHasBeenSet = true; m_backendEnvironmentArn = std::forward<BackendEnvironmentArnT>(value); }
276 template<typename BackendEnvironmentArnT = Aws::String>
277 CreateBranchRequest& WithBackendEnvironmentArn(BackendEnvironmentArnT&& value) { SetBackendEnvironmentArn(std::forward<BackendEnvironmentArnT>(value)); return *this;}
279
281
287 inline const Backend& GetBackend() const { return m_backend; }
288 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
289 template<typename BackendT = Backend>
290 void SetBackend(BackendT&& value) { m_backendHasBeenSet = true; m_backend = std::forward<BackendT>(value); }
291 template<typename BackendT = Backend>
292 CreateBranchRequest& WithBackend(BackendT&& value) { SetBackend(std::forward<BackendT>(value)); return *this;}
294
296
304 inline const Aws::String& GetComputeRoleArn() const { return m_computeRoleArn; }
305 inline bool ComputeRoleArnHasBeenSet() const { return m_computeRoleArnHasBeenSet; }
306 template<typename ComputeRoleArnT = Aws::String>
307 void SetComputeRoleArn(ComputeRoleArnT&& value) { m_computeRoleArnHasBeenSet = true; m_computeRoleArn = std::forward<ComputeRoleArnT>(value); }
308 template<typename ComputeRoleArnT = Aws::String>
309 CreateBranchRequest& WithComputeRoleArn(ComputeRoleArnT&& value) { SetComputeRoleArn(std::forward<ComputeRoleArnT>(value)); return *this;}
311 private:
312
313 Aws::String m_appId;
314 bool m_appIdHasBeenSet = false;
315
316 Aws::String m_branchName;
317 bool m_branchNameHasBeenSet = false;
318
319 Aws::String m_description;
320 bool m_descriptionHasBeenSet = false;
321
322 Stage m_stage{Stage::NOT_SET};
323 bool m_stageHasBeenSet = false;
324
325 Aws::String m_framework;
326 bool m_frameworkHasBeenSet = false;
327
328 bool m_enableNotification{false};
329 bool m_enableNotificationHasBeenSet = false;
330
331 bool m_enableAutoBuild{false};
332 bool m_enableAutoBuildHasBeenSet = false;
333
334 bool m_enableSkewProtection{false};
335 bool m_enableSkewProtectionHasBeenSet = false;
336
337 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
338 bool m_environmentVariablesHasBeenSet = false;
339
340 Aws::String m_basicAuthCredentials;
341 bool m_basicAuthCredentialsHasBeenSet = false;
342
343 bool m_enableBasicAuth{false};
344 bool m_enableBasicAuthHasBeenSet = false;
345
346 bool m_enablePerformanceMode{false};
347 bool m_enablePerformanceModeHasBeenSet = false;
348
350 bool m_tagsHasBeenSet = false;
351
352 Aws::String m_buildSpec;
353 bool m_buildSpecHasBeenSet = false;
354
355 Aws::String m_ttl;
356 bool m_ttlHasBeenSet = false;
357
358 Aws::String m_displayName;
359 bool m_displayNameHasBeenSet = false;
360
361 bool m_enablePullRequestPreview{false};
362 bool m_enablePullRequestPreviewHasBeenSet = false;
363
364 Aws::String m_pullRequestEnvironmentName;
365 bool m_pullRequestEnvironmentNameHasBeenSet = false;
366
367 Aws::String m_backendEnvironmentArn;
368 bool m_backendEnvironmentArnHasBeenSet = false;
369
370 Backend m_backend;
371 bool m_backendHasBeenSet = false;
372
373 Aws::String m_computeRoleArn;
374 bool m_computeRoleArnHasBeenSet = false;
375 };
376
377} // namespace Model
378} // namespace Amplify
379} // namespace Aws
const Aws::String & GetBackendEnvironmentArn() const
CreateBranchRequest & WithBuildSpec(BuildSpecT &&value)
void SetComputeRoleArn(ComputeRoleArnT &&value)
CreateBranchRequest & WithBackend(BackendT &&value)
CreateBranchRequest & WithBranchName(BranchNameT &&value)
CreateBranchRequest & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
void SetBackendEnvironmentArn(BackendEnvironmentArnT &&value)
CreateBranchRequest & WithDisplayName(DisplayNameT &&value)
CreateBranchRequest & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
CreateBranchRequest & WithBackendEnvironmentArn(BackendEnvironmentArnT &&value)
CreateBranchRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateBranchRequest & WithEnablePerformanceMode(bool value)
CreateBranchRequest & WithTags(TagsT &&value)
CreateBranchRequest & WithEnablePullRequestPreview(bool value)
CreateBranchRequest & WithDescription(DescriptionT &&value)
CreateBranchRequest & WithEnableBasicAuth(bool value)
AWS_AMPLIFY_API CreateBranchRequest()=default
const Aws::String & GetPullRequestEnvironmentName() const
AWS_AMPLIFY_API Aws::String SerializePayload() const override
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
CreateBranchRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
CreateBranchRequest & WithEnableAutoBuild(bool value)
CreateBranchRequest & WithEnableNotification(bool value)
CreateBranchRequest & WithAppId(AppIdT &&value)
CreateBranchRequest & WithFramework(FrameworkT &&value)
CreateBranchRequest & WithEnableSkewProtection(bool value)
CreateBranchRequest & WithTtl(TtlT &&value)
const Aws::String & GetComputeRoleArn() const
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
CreateBranchRequest & WithStage(Stage value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
const Aws::String & GetBasicAuthCredentials() const
virtual const char * GetServiceRequestName() const override
CreateBranchRequest & WithComputeRoleArn(ComputeRoleArnT &&value)
CreateBranchRequest & WithPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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