AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateBranchRequest.h
1
6#pragma once
7#include <aws/amplify/AmplifyRequest.h>
8#include <aws/amplify/Amplify_EXPORTS.h>
9#include <aws/amplify/model/Backend.h>
10#include <aws/amplify/model/Stage.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Amplify {
18namespace Model {
19
27 public:
28 AWS_AMPLIFY_API CreateBranchRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateBranch"; }
35
36 AWS_AMPLIFY_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetAppId() const { return m_appId; }
43 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
44 template <typename AppIdT = Aws::String>
45 void SetAppId(AppIdT&& value) {
46 m_appIdHasBeenSet = true;
47 m_appId = std::forward<AppIdT>(value);
48 }
49 template <typename AppIdT = Aws::String>
50 CreateBranchRequest& WithAppId(AppIdT&& value) {
51 SetAppId(std::forward<AppIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetBranchName() const { return m_branchName; }
61 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
62 template <typename BranchNameT = Aws::String>
63 void SetBranchName(BranchNameT&& value) {
64 m_branchNameHasBeenSet = true;
65 m_branchName = std::forward<BranchNameT>(value);
66 }
67 template <typename BranchNameT = Aws::String>
68 CreateBranchRequest& WithBranchName(BranchNameT&& value) {
69 SetBranchName(std::forward<BranchNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 CreateBranchRequest& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline Stage GetStage() const { return m_stage; }
97 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
98 inline void SetStage(Stage value) {
99 m_stageHasBeenSet = true;
100 m_stage = value;
101 }
103 SetStage(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetFramework() const { return m_framework; }
113 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
114 template <typename FrameworkT = Aws::String>
115 void SetFramework(FrameworkT&& value) {
116 m_frameworkHasBeenSet = true;
117 m_framework = std::forward<FrameworkT>(value);
118 }
119 template <typename FrameworkT = Aws::String>
120 CreateBranchRequest& WithFramework(FrameworkT&& value) {
121 SetFramework(std::forward<FrameworkT>(value));
122 return *this;
123 }
125
127
130 inline bool GetEnableNotification() const { return m_enableNotification; }
131 inline bool EnableNotificationHasBeenSet() const { return m_enableNotificationHasBeenSet; }
132 inline void SetEnableNotification(bool value) {
133 m_enableNotificationHasBeenSet = true;
134 m_enableNotification = value;
135 }
138 return *this;
139 }
141
143
146 inline bool GetEnableAutoBuild() const { return m_enableAutoBuild; }
147 inline bool EnableAutoBuildHasBeenSet() const { return m_enableAutoBuildHasBeenSet; }
148 inline void SetEnableAutoBuild(bool value) {
149 m_enableAutoBuildHasBeenSet = true;
150 m_enableAutoBuild = value;
151 }
153 SetEnableAutoBuild(value);
154 return *this;
155 }
157
159
169 inline bool GetEnableSkewProtection() const { return m_enableSkewProtection; }
170 inline bool EnableSkewProtectionHasBeenSet() const { return m_enableSkewProtectionHasBeenSet; }
171 inline void SetEnableSkewProtection(bool value) {
172 m_enableSkewProtectionHasBeenSet = true;
173 m_enableSkewProtection = value;
174 }
177 return *this;
178 }
180
182
185 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
186 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
187 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
188 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
189 m_environmentVariablesHasBeenSet = true;
190 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
191 }
192 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
193 CreateBranchRequest& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
194 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
195 return *this;
196 }
197 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
198 CreateBranchRequest& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
199 m_environmentVariablesHasBeenSet = true;
200 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
201 return *this;
202 }
204
206
211 inline const Aws::String& GetBasicAuthCredentials() const { return m_basicAuthCredentials; }
212 inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; }
213 template <typename BasicAuthCredentialsT = Aws::String>
214 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) {
215 m_basicAuthCredentialsHasBeenSet = true;
216 m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value);
217 }
218 template <typename BasicAuthCredentialsT = Aws::String>
219 CreateBranchRequest& WithBasicAuthCredentials(BasicAuthCredentialsT&& value) {
220 SetBasicAuthCredentials(std::forward<BasicAuthCredentialsT>(value));
221 return *this;
222 }
224
226
229 inline bool GetEnableBasicAuth() const { return m_enableBasicAuth; }
230 inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; }
231 inline void SetEnableBasicAuth(bool value) {
232 m_enableBasicAuthHasBeenSet = true;
233 m_enableBasicAuth = value;
234 }
236 SetEnableBasicAuth(value);
237 return *this;
238 }
240
242
248 inline bool GetEnablePerformanceMode() const { return m_enablePerformanceMode; }
249 inline bool EnablePerformanceModeHasBeenSet() const { return m_enablePerformanceModeHasBeenSet; }
250 inline void SetEnablePerformanceMode(bool value) {
251 m_enablePerformanceModeHasBeenSet = true;
252 m_enablePerformanceMode = value;
253 }
256 return *this;
257 }
259
261
264 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
265 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
266 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
267 void SetTags(TagsT&& value) {
268 m_tagsHasBeenSet = true;
269 m_tags = std::forward<TagsT>(value);
270 }
271 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
273 SetTags(std::forward<TagsT>(value));
274 return *this;
275 }
276 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
277 CreateBranchRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
278 m_tagsHasBeenSet = true;
279 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
280 return *this;
281 }
283
285
288 inline const Aws::String& GetBuildSpec() const { return m_buildSpec; }
289 inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
290 template <typename BuildSpecT = Aws::String>
291 void SetBuildSpec(BuildSpecT&& value) {
292 m_buildSpecHasBeenSet = true;
293 m_buildSpec = std::forward<BuildSpecT>(value);
294 }
295 template <typename BuildSpecT = Aws::String>
296 CreateBranchRequest& WithBuildSpec(BuildSpecT&& value) {
297 SetBuildSpec(std::forward<BuildSpecT>(value));
298 return *this;
299 }
301
303
306 inline const Aws::String& GetTtl() const { return m_ttl; }
307 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
308 template <typename TtlT = Aws::String>
309 void SetTtl(TtlT&& value) {
310 m_ttlHasBeenSet = true;
311 m_ttl = std::forward<TtlT>(value);
312 }
313 template <typename TtlT = Aws::String>
315 SetTtl(std::forward<TtlT>(value));
316 return *this;
317 }
319
321
325 inline const Aws::String& GetDisplayName() const { return m_displayName; }
326 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
327 template <typename DisplayNameT = Aws::String>
328 void SetDisplayName(DisplayNameT&& value) {
329 m_displayNameHasBeenSet = true;
330 m_displayName = std::forward<DisplayNameT>(value);
331 }
332 template <typename DisplayNameT = Aws::String>
333 CreateBranchRequest& WithDisplayName(DisplayNameT&& value) {
334 SetDisplayName(std::forward<DisplayNameT>(value));
335 return *this;
336 }
338
340
343 inline bool GetEnablePullRequestPreview() const { return m_enablePullRequestPreview; }
344 inline bool EnablePullRequestPreviewHasBeenSet() const { return m_enablePullRequestPreviewHasBeenSet; }
345 inline void SetEnablePullRequestPreview(bool value) {
346 m_enablePullRequestPreviewHasBeenSet = true;
347 m_enablePullRequestPreview = value;
348 }
351 return *this;
352 }
354
356
359 inline const Aws::String& GetPullRequestEnvironmentName() const { return m_pullRequestEnvironmentName; }
360 inline bool PullRequestEnvironmentNameHasBeenSet() const { return m_pullRequestEnvironmentNameHasBeenSet; }
361 template <typename PullRequestEnvironmentNameT = Aws::String>
362 void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) {
363 m_pullRequestEnvironmentNameHasBeenSet = true;
364 m_pullRequestEnvironmentName = std::forward<PullRequestEnvironmentNameT>(value);
365 }
366 template <typename PullRequestEnvironmentNameT = Aws::String>
367 CreateBranchRequest& WithPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) {
368 SetPullRequestEnvironmentName(std::forward<PullRequestEnvironmentNameT>(value));
369 return *this;
370 }
372
374
380 inline const Aws::String& GetBackendEnvironmentArn() const { return m_backendEnvironmentArn; }
381 inline bool BackendEnvironmentArnHasBeenSet() const { return m_backendEnvironmentArnHasBeenSet; }
382 template <typename BackendEnvironmentArnT = Aws::String>
383 void SetBackendEnvironmentArn(BackendEnvironmentArnT&& value) {
384 m_backendEnvironmentArnHasBeenSet = true;
385 m_backendEnvironmentArn = std::forward<BackendEnvironmentArnT>(value);
386 }
387 template <typename BackendEnvironmentArnT = Aws::String>
388 CreateBranchRequest& WithBackendEnvironmentArn(BackendEnvironmentArnT&& value) {
389 SetBackendEnvironmentArn(std::forward<BackendEnvironmentArnT>(value));
390 return *this;
391 }
393
395
401 inline const Backend& GetBackend() const { return m_backend; }
402 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
403 template <typename BackendT = Backend>
404 void SetBackend(BackendT&& value) {
405 m_backendHasBeenSet = true;
406 m_backend = std::forward<BackendT>(value);
407 }
408 template <typename BackendT = Backend>
409 CreateBranchRequest& WithBackend(BackendT&& value) {
410 SetBackend(std::forward<BackendT>(value));
411 return *this;
412 }
414
416
424 inline const Aws::String& GetComputeRoleArn() const { return m_computeRoleArn; }
425 inline bool ComputeRoleArnHasBeenSet() const { return m_computeRoleArnHasBeenSet; }
426 template <typename ComputeRoleArnT = Aws::String>
427 void SetComputeRoleArn(ComputeRoleArnT&& value) {
428 m_computeRoleArnHasBeenSet = true;
429 m_computeRoleArn = std::forward<ComputeRoleArnT>(value);
430 }
431 template <typename ComputeRoleArnT = Aws::String>
432 CreateBranchRequest& WithComputeRoleArn(ComputeRoleArnT&& value) {
433 SetComputeRoleArn(std::forward<ComputeRoleArnT>(value));
434 return *this;
435 }
437 private:
438 Aws::String m_appId;
439
440 Aws::String m_branchName;
441
442 Aws::String m_description;
443
444 Stage m_stage{Stage::NOT_SET};
445
446 Aws::String m_framework;
447
448 bool m_enableNotification{false};
449
450 bool m_enableAutoBuild{false};
451
452 bool m_enableSkewProtection{false};
453
454 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
455
456 Aws::String m_basicAuthCredentials;
457
458 bool m_enableBasicAuth{false};
459
460 bool m_enablePerformanceMode{false};
461
463
464 Aws::String m_buildSpec;
465
466 Aws::String m_ttl;
467
468 Aws::String m_displayName;
469
470 bool m_enablePullRequestPreview{false};
471
472 Aws::String m_pullRequestEnvironmentName;
473
474 Aws::String m_backendEnvironmentArn;
475
476 Backend m_backend;
477
478 Aws::String m_computeRoleArn;
479 bool m_appIdHasBeenSet = false;
480 bool m_branchNameHasBeenSet = false;
481 bool m_descriptionHasBeenSet = false;
482 bool m_stageHasBeenSet = false;
483 bool m_frameworkHasBeenSet = false;
484 bool m_enableNotificationHasBeenSet = false;
485 bool m_enableAutoBuildHasBeenSet = false;
486 bool m_enableSkewProtectionHasBeenSet = false;
487 bool m_environmentVariablesHasBeenSet = false;
488 bool m_basicAuthCredentialsHasBeenSet = false;
489 bool m_enableBasicAuthHasBeenSet = false;
490 bool m_enablePerformanceModeHasBeenSet = false;
491 bool m_tagsHasBeenSet = false;
492 bool m_buildSpecHasBeenSet = false;
493 bool m_ttlHasBeenSet = false;
494 bool m_displayNameHasBeenSet = false;
495 bool m_enablePullRequestPreviewHasBeenSet = false;
496 bool m_pullRequestEnvironmentNameHasBeenSet = false;
497 bool m_backendEnvironmentArnHasBeenSet = false;
498 bool m_backendHasBeenSet = false;
499 bool m_computeRoleArnHasBeenSet = false;
500};
501
502} // namespace Model
503} // namespace Amplify
504} // 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