AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
UpdateBranchRequest.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 UpdateBranchRequest() = 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 "UpdateBranch"; }
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 UpdateBranchRequest& 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 UpdateBranchRequest& 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 UpdateBranchRequest& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetFramework() const { return m_framework; }
97 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
98 template <typename FrameworkT = Aws::String>
99 void SetFramework(FrameworkT&& value) {
100 m_frameworkHasBeenSet = true;
101 m_framework = std::forward<FrameworkT>(value);
102 }
103 template <typename FrameworkT = Aws::String>
104 UpdateBranchRequest& WithFramework(FrameworkT&& value) {
105 SetFramework(std::forward<FrameworkT>(value));
106 return *this;
107 }
109
111
114 inline Stage GetStage() const { return m_stage; }
115 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
116 inline void SetStage(Stage value) {
117 m_stageHasBeenSet = true;
118 m_stage = value;
119 }
121 SetStage(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 UpdateBranchRequest& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
194 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
195 return *this;
196 }
197 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
198 UpdateBranchRequest& 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 UpdateBranchRequest& 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::String& GetBuildSpec() const { return m_buildSpec; }
265 inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
266 template <typename BuildSpecT = Aws::String>
267 void SetBuildSpec(BuildSpecT&& value) {
268 m_buildSpecHasBeenSet = true;
269 m_buildSpec = std::forward<BuildSpecT>(value);
270 }
271 template <typename BuildSpecT = Aws::String>
272 UpdateBranchRequest& WithBuildSpec(BuildSpecT&& value) {
273 SetBuildSpec(std::forward<BuildSpecT>(value));
274 return *this;
275 }
277
279
282 inline const Aws::String& GetTtl() const { return m_ttl; }
283 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
284 template <typename TtlT = Aws::String>
285 void SetTtl(TtlT&& value) {
286 m_ttlHasBeenSet = true;
287 m_ttl = std::forward<TtlT>(value);
288 }
289 template <typename TtlT = Aws::String>
291 SetTtl(std::forward<TtlT>(value));
292 return *this;
293 }
295
297
301 inline const Aws::String& GetDisplayName() const { return m_displayName; }
302 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
303 template <typename DisplayNameT = Aws::String>
304 void SetDisplayName(DisplayNameT&& value) {
305 m_displayNameHasBeenSet = true;
306 m_displayName = std::forward<DisplayNameT>(value);
307 }
308 template <typename DisplayNameT = Aws::String>
309 UpdateBranchRequest& WithDisplayName(DisplayNameT&& value) {
310 SetDisplayName(std::forward<DisplayNameT>(value));
311 return *this;
312 }
314
316
319 inline bool GetEnablePullRequestPreview() const { return m_enablePullRequestPreview; }
320 inline bool EnablePullRequestPreviewHasBeenSet() const { return m_enablePullRequestPreviewHasBeenSet; }
321 inline void SetEnablePullRequestPreview(bool value) {
322 m_enablePullRequestPreviewHasBeenSet = true;
323 m_enablePullRequestPreview = value;
324 }
327 return *this;
328 }
330
332
335 inline const Aws::String& GetPullRequestEnvironmentName() const { return m_pullRequestEnvironmentName; }
336 inline bool PullRequestEnvironmentNameHasBeenSet() const { return m_pullRequestEnvironmentNameHasBeenSet; }
337 template <typename PullRequestEnvironmentNameT = Aws::String>
338 void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) {
339 m_pullRequestEnvironmentNameHasBeenSet = true;
340 m_pullRequestEnvironmentName = std::forward<PullRequestEnvironmentNameT>(value);
341 }
342 template <typename PullRequestEnvironmentNameT = Aws::String>
343 UpdateBranchRequest& WithPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) {
344 SetPullRequestEnvironmentName(std::forward<PullRequestEnvironmentNameT>(value));
345 return *this;
346 }
348
350
356 inline const Aws::String& GetBackendEnvironmentArn() const { return m_backendEnvironmentArn; }
357 inline bool BackendEnvironmentArnHasBeenSet() const { return m_backendEnvironmentArnHasBeenSet; }
358 template <typename BackendEnvironmentArnT = Aws::String>
359 void SetBackendEnvironmentArn(BackendEnvironmentArnT&& value) {
360 m_backendEnvironmentArnHasBeenSet = true;
361 m_backendEnvironmentArn = std::forward<BackendEnvironmentArnT>(value);
362 }
363 template <typename BackendEnvironmentArnT = Aws::String>
364 UpdateBranchRequest& WithBackendEnvironmentArn(BackendEnvironmentArnT&& value) {
365 SetBackendEnvironmentArn(std::forward<BackendEnvironmentArnT>(value));
366 return *this;
367 }
369
371
377 inline const Backend& GetBackend() const { return m_backend; }
378 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
379 template <typename BackendT = Backend>
380 void SetBackend(BackendT&& value) {
381 m_backendHasBeenSet = true;
382 m_backend = std::forward<BackendT>(value);
383 }
384 template <typename BackendT = Backend>
385 UpdateBranchRequest& WithBackend(BackendT&& value) {
386 SetBackend(std::forward<BackendT>(value));
387 return *this;
388 }
390
392
400 inline const Aws::String& GetComputeRoleArn() const { return m_computeRoleArn; }
401 inline bool ComputeRoleArnHasBeenSet() const { return m_computeRoleArnHasBeenSet; }
402 template <typename ComputeRoleArnT = Aws::String>
403 void SetComputeRoleArn(ComputeRoleArnT&& value) {
404 m_computeRoleArnHasBeenSet = true;
405 m_computeRoleArn = std::forward<ComputeRoleArnT>(value);
406 }
407 template <typename ComputeRoleArnT = Aws::String>
408 UpdateBranchRequest& WithComputeRoleArn(ComputeRoleArnT&& value) {
409 SetComputeRoleArn(std::forward<ComputeRoleArnT>(value));
410 return *this;
411 }
413 private:
414 Aws::String m_appId;
415 bool m_appIdHasBeenSet = false;
416
417 Aws::String m_branchName;
418 bool m_branchNameHasBeenSet = false;
419
420 Aws::String m_description;
421 bool m_descriptionHasBeenSet = false;
422
423 Aws::String m_framework;
424 bool m_frameworkHasBeenSet = false;
425
426 Stage m_stage{Stage::NOT_SET};
427 bool m_stageHasBeenSet = false;
428
429 bool m_enableNotification{false};
430 bool m_enableNotificationHasBeenSet = false;
431
432 bool m_enableAutoBuild{false};
433 bool m_enableAutoBuildHasBeenSet = false;
434
435 bool m_enableSkewProtection{false};
436 bool m_enableSkewProtectionHasBeenSet = false;
437
438 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
439 bool m_environmentVariablesHasBeenSet = false;
440
441 Aws::String m_basicAuthCredentials;
442 bool m_basicAuthCredentialsHasBeenSet = false;
443
444 bool m_enableBasicAuth{false};
445 bool m_enableBasicAuthHasBeenSet = false;
446
447 bool m_enablePerformanceMode{false};
448 bool m_enablePerformanceModeHasBeenSet = false;
449
450 Aws::String m_buildSpec;
451 bool m_buildSpecHasBeenSet = false;
452
453 Aws::String m_ttl;
454 bool m_ttlHasBeenSet = false;
455
456 Aws::String m_displayName;
457 bool m_displayNameHasBeenSet = false;
458
459 bool m_enablePullRequestPreview{false};
460 bool m_enablePullRequestPreviewHasBeenSet = false;
461
462 Aws::String m_pullRequestEnvironmentName;
463 bool m_pullRequestEnvironmentNameHasBeenSet = false;
464
465 Aws::String m_backendEnvironmentArn;
466 bool m_backendEnvironmentArnHasBeenSet = false;
467
468 Backend m_backend;
469 bool m_backendHasBeenSet = false;
470
471 Aws::String m_computeRoleArn;
472 bool m_computeRoleArnHasBeenSet = false;
473};
474
475} // namespace Model
476} // namespace Amplify
477} // namespace Aws
UpdateBranchRequest & WithFramework(FrameworkT &&value)
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
UpdateBranchRequest & WithAppId(AppIdT &&value)
void SetComputeRoleArn(ComputeRoleArnT &&value)
UpdateBranchRequest & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
UpdateBranchRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
UpdateBranchRequest & WithTtl(TtlT &&value)
const Aws::String & GetBackendEnvironmentArn() const
UpdateBranchRequest & WithBuildSpec(BuildSpecT &&value)
UpdateBranchRequest & WithPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
const Aws::String & GetBasicAuthCredentials() const
UpdateBranchRequest & WithDisplayName(DisplayNameT &&value)
UpdateBranchRequest & WithEnableBasicAuth(bool value)
const Aws::String & GetComputeRoleArn() const
UpdateBranchRequest & WithComputeRoleArn(ComputeRoleArnT &&value)
UpdateBranchRequest & WithEnableAutoBuild(bool value)
UpdateBranchRequest & WithBackendEnvironmentArn(BackendEnvironmentArnT &&value)
void SetBackendEnvironmentArn(BackendEnvironmentArnT &&value)
virtual const char * GetServiceRequestName() const override
UpdateBranchRequest & WithStage(Stage value)
UpdateBranchRequest & WithEnableNotification(bool value)
UpdateBranchRequest & WithBackend(BackendT &&value)
UpdateBranchRequest & WithEnablePerformanceMode(bool value)
UpdateBranchRequest & WithEnableSkewProtection(bool value)
UpdateBranchRequest & WithEnablePullRequestPreview(bool value)
AWS_AMPLIFY_API Aws::String SerializePayload() const override
AWS_AMPLIFY_API UpdateBranchRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
const Aws::String & GetPullRequestEnvironmentName() const
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
UpdateBranchRequest & WithBranchName(BranchNameT &&value)
UpdateBranchRequest & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
UpdateBranchRequest & WithDescription(DescriptionT &&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