AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateAppRequest.h
1
6#pragma once
7#include <aws/amplify/AmplifyRequest.h>
8#include <aws/amplify/Amplify_EXPORTS.h>
9#include <aws/amplify/model/AutoBranchCreationConfig.h>
10#include <aws/amplify/model/CacheConfig.h>
11#include <aws/amplify/model/CustomRule.h>
12#include <aws/amplify/model/JobConfig.h>
13#include <aws/amplify/model/Platform.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Amplify {
22namespace Model {
23
31 public:
32 AWS_AMPLIFY_API UpdateAppRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateApp"; }
39
40 AWS_AMPLIFY_API Aws::String SerializePayload() const override;
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) {
50 m_appIdHasBeenSet = true;
51 m_appId = std::forward<AppIdT>(value);
52 }
53 template <typename AppIdT = Aws::String>
54 UpdateAppRequest& WithAppId(AppIdT&& value) {
55 SetAppId(std::forward<AppIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 UpdateAppRequest& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template <typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) {
86 m_descriptionHasBeenSet = true;
87 m_description = std::forward<DescriptionT>(value);
88 }
89 template <typename DescriptionT = Aws::String>
90 UpdateAppRequest& WithDescription(DescriptionT&& value) {
91 SetDescription(std::forward<DescriptionT>(value));
92 return *this;
93 }
95
97
106 inline Platform GetPlatform() const { return m_platform; }
107 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
108 inline void SetPlatform(Platform value) {
109 m_platformHasBeenSet = true;
110 m_platform = value;
111 }
113 SetPlatform(value);
114 return *this;
115 }
117
119
127 inline const Aws::String& GetComputeRoleArn() const { return m_computeRoleArn; }
128 inline bool ComputeRoleArnHasBeenSet() const { return m_computeRoleArnHasBeenSet; }
129 template <typename ComputeRoleArnT = Aws::String>
130 void SetComputeRoleArn(ComputeRoleArnT&& value) {
131 m_computeRoleArnHasBeenSet = true;
132 m_computeRoleArn = std::forward<ComputeRoleArnT>(value);
133 }
134 template <typename ComputeRoleArnT = Aws::String>
135 UpdateAppRequest& WithComputeRoleArn(ComputeRoleArnT&& value) {
136 SetComputeRoleArn(std::forward<ComputeRoleArnT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::String& GetIamServiceRoleArn() const { return m_iamServiceRoleArn; }
147 inline bool IamServiceRoleArnHasBeenSet() const { return m_iamServiceRoleArnHasBeenSet; }
148 template <typename IamServiceRoleArnT = Aws::String>
149 void SetIamServiceRoleArn(IamServiceRoleArnT&& value) {
150 m_iamServiceRoleArnHasBeenSet = true;
151 m_iamServiceRoleArn = std::forward<IamServiceRoleArnT>(value);
152 }
153 template <typename IamServiceRoleArnT = Aws::String>
154 UpdateAppRequest& WithIamServiceRoleArn(IamServiceRoleArnT&& value) {
155 SetIamServiceRoleArn(std::forward<IamServiceRoleArnT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
165 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
166 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
167 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
168 m_environmentVariablesHasBeenSet = true;
169 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
170 }
171 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
172 UpdateAppRequest& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
173 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
174 return *this;
175 }
176 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
177 UpdateAppRequest& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
178 m_environmentVariablesHasBeenSet = true;
179 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
180 return *this;
181 }
183
185
188 inline bool GetEnableBranchAutoBuild() const { return m_enableBranchAutoBuild; }
189 inline bool EnableBranchAutoBuildHasBeenSet() const { return m_enableBranchAutoBuildHasBeenSet; }
190 inline void SetEnableBranchAutoBuild(bool value) {
191 m_enableBranchAutoBuildHasBeenSet = true;
192 m_enableBranchAutoBuild = value;
193 }
196 return *this;
197 }
199
201
205 inline bool GetEnableBranchAutoDeletion() const { return m_enableBranchAutoDeletion; }
206 inline bool EnableBranchAutoDeletionHasBeenSet() const { return m_enableBranchAutoDeletionHasBeenSet; }
207 inline void SetEnableBranchAutoDeletion(bool value) {
208 m_enableBranchAutoDeletionHasBeenSet = true;
209 m_enableBranchAutoDeletion = value;
210 }
213 return *this;
214 }
216
218
221 inline bool GetEnableBasicAuth() const { return m_enableBasicAuth; }
222 inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; }
223 inline void SetEnableBasicAuth(bool value) {
224 m_enableBasicAuthHasBeenSet = true;
225 m_enableBasicAuth = value;
226 }
228 SetEnableBasicAuth(value);
229 return *this;
230 }
232
234
239 inline const Aws::String& GetBasicAuthCredentials() const { return m_basicAuthCredentials; }
240 inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; }
241 template <typename BasicAuthCredentialsT = Aws::String>
242 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) {
243 m_basicAuthCredentialsHasBeenSet = true;
244 m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value);
245 }
246 template <typename BasicAuthCredentialsT = Aws::String>
247 UpdateAppRequest& WithBasicAuthCredentials(BasicAuthCredentialsT&& value) {
248 SetBasicAuthCredentials(std::forward<BasicAuthCredentialsT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::Vector<CustomRule>& GetCustomRules() const { return m_customRules; }
258 inline bool CustomRulesHasBeenSet() const { return m_customRulesHasBeenSet; }
259 template <typename CustomRulesT = Aws::Vector<CustomRule>>
260 void SetCustomRules(CustomRulesT&& value) {
261 m_customRulesHasBeenSet = true;
262 m_customRules = std::forward<CustomRulesT>(value);
263 }
264 template <typename CustomRulesT = Aws::Vector<CustomRule>>
265 UpdateAppRequest& WithCustomRules(CustomRulesT&& value) {
266 SetCustomRules(std::forward<CustomRulesT>(value));
267 return *this;
268 }
269 template <typename CustomRulesT = CustomRule>
270 UpdateAppRequest& AddCustomRules(CustomRulesT&& value) {
271 m_customRulesHasBeenSet = true;
272 m_customRules.emplace_back(std::forward<CustomRulesT>(value));
273 return *this;
274 }
276
278
281 inline const Aws::String& GetBuildSpec() const { return m_buildSpec; }
282 inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
283 template <typename BuildSpecT = Aws::String>
284 void SetBuildSpec(BuildSpecT&& value) {
285 m_buildSpecHasBeenSet = true;
286 m_buildSpec = std::forward<BuildSpecT>(value);
287 }
288 template <typename BuildSpecT = Aws::String>
289 UpdateAppRequest& WithBuildSpec(BuildSpecT&& value) {
290 SetBuildSpec(std::forward<BuildSpecT>(value));
291 return *this;
292 }
294
296
299 inline const Aws::String& GetCustomHeaders() const { return m_customHeaders; }
300 inline bool CustomHeadersHasBeenSet() const { return m_customHeadersHasBeenSet; }
301 template <typename CustomHeadersT = Aws::String>
302 void SetCustomHeaders(CustomHeadersT&& value) {
303 m_customHeadersHasBeenSet = true;
304 m_customHeaders = std::forward<CustomHeadersT>(value);
305 }
306 template <typename CustomHeadersT = Aws::String>
307 UpdateAppRequest& WithCustomHeaders(CustomHeadersT&& value) {
308 SetCustomHeaders(std::forward<CustomHeadersT>(value));
309 return *this;
310 }
312
314
317 inline bool GetEnableAutoBranchCreation() const { return m_enableAutoBranchCreation; }
318 inline bool EnableAutoBranchCreationHasBeenSet() const { return m_enableAutoBranchCreationHasBeenSet; }
319 inline void SetEnableAutoBranchCreation(bool value) {
320 m_enableAutoBranchCreationHasBeenSet = true;
321 m_enableAutoBranchCreation = value;
322 }
325 return *this;
326 }
328
330
334 inline const Aws::Vector<Aws::String>& GetAutoBranchCreationPatterns() const { return m_autoBranchCreationPatterns; }
335 inline bool AutoBranchCreationPatternsHasBeenSet() const { return m_autoBranchCreationPatternsHasBeenSet; }
336 template <typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
337 void SetAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) {
338 m_autoBranchCreationPatternsHasBeenSet = true;
339 m_autoBranchCreationPatterns = std::forward<AutoBranchCreationPatternsT>(value);
340 }
341 template <typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
342 UpdateAppRequest& WithAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) {
343 SetAutoBranchCreationPatterns(std::forward<AutoBranchCreationPatternsT>(value));
344 return *this;
345 }
346 template <typename AutoBranchCreationPatternsT = Aws::String>
347 UpdateAppRequest& AddAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) {
348 m_autoBranchCreationPatternsHasBeenSet = true;
349 m_autoBranchCreationPatterns.emplace_back(std::forward<AutoBranchCreationPatternsT>(value));
350 return *this;
351 }
353
355
358 inline const AutoBranchCreationConfig& GetAutoBranchCreationConfig() const { return m_autoBranchCreationConfig; }
359 inline bool AutoBranchCreationConfigHasBeenSet() const { return m_autoBranchCreationConfigHasBeenSet; }
360 template <typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
361 void SetAutoBranchCreationConfig(AutoBranchCreationConfigT&& value) {
362 m_autoBranchCreationConfigHasBeenSet = true;
363 m_autoBranchCreationConfig = std::forward<AutoBranchCreationConfigT>(value);
364 }
365 template <typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
366 UpdateAppRequest& WithAutoBranchCreationConfig(AutoBranchCreationConfigT&& value) {
367 SetAutoBranchCreationConfig(std::forward<AutoBranchCreationConfigT>(value));
368 return *this;
369 }
371
373
376 inline const Aws::String& GetRepository() const { return m_repository; }
377 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
378 template <typename RepositoryT = Aws::String>
379 void SetRepository(RepositoryT&& value) {
380 m_repositoryHasBeenSet = true;
381 m_repository = std::forward<RepositoryT>(value);
382 }
383 template <typename RepositoryT = Aws::String>
384 UpdateAppRequest& WithRepository(RepositoryT&& value) {
385 SetRepository(std::forward<RepositoryT>(value));
386 return *this;
387 }
389
391
406 inline const Aws::String& GetOauthToken() const { return m_oauthToken; }
407 inline bool OauthTokenHasBeenSet() const { return m_oauthTokenHasBeenSet; }
408 template <typename OauthTokenT = Aws::String>
409 void SetOauthToken(OauthTokenT&& value) {
410 m_oauthTokenHasBeenSet = true;
411 m_oauthToken = std::forward<OauthTokenT>(value);
412 }
413 template <typename OauthTokenT = Aws::String>
414 UpdateAppRequest& WithOauthToken(OauthTokenT&& value) {
415 SetOauthToken(std::forward<OauthTokenT>(value));
416 return *this;
417 }
419
421
436 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
437 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
438 template <typename AccessTokenT = Aws::String>
439 void SetAccessToken(AccessTokenT&& value) {
440 m_accessTokenHasBeenSet = true;
441 m_accessToken = std::forward<AccessTokenT>(value);
442 }
443 template <typename AccessTokenT = Aws::String>
444 UpdateAppRequest& WithAccessToken(AccessTokenT&& value) {
445 SetAccessToken(std::forward<AccessTokenT>(value));
446 return *this;
447 }
449
451
455 inline const JobConfig& GetJobConfig() const { return m_jobConfig; }
456 inline bool JobConfigHasBeenSet() const { return m_jobConfigHasBeenSet; }
457 template <typename JobConfigT = JobConfig>
458 void SetJobConfig(JobConfigT&& value) {
459 m_jobConfigHasBeenSet = true;
460 m_jobConfig = std::forward<JobConfigT>(value);
461 }
462 template <typename JobConfigT = JobConfig>
463 UpdateAppRequest& WithJobConfig(JobConfigT&& value) {
464 SetJobConfig(std::forward<JobConfigT>(value));
465 return *this;
466 }
468
470
473 inline const CacheConfig& GetCacheConfig() const { return m_cacheConfig; }
474 inline bool CacheConfigHasBeenSet() const { return m_cacheConfigHasBeenSet; }
475 template <typename CacheConfigT = CacheConfig>
476 void SetCacheConfig(CacheConfigT&& value) {
477 m_cacheConfigHasBeenSet = true;
478 m_cacheConfig = std::forward<CacheConfigT>(value);
479 }
480 template <typename CacheConfigT = CacheConfig>
481 UpdateAppRequest& WithCacheConfig(CacheConfigT&& value) {
482 SetCacheConfig(std::forward<CacheConfigT>(value));
483 return *this;
484 }
486 private:
487 Aws::String m_appId;
488
489 Aws::String m_name;
490
491 Aws::String m_description;
492
493 Platform m_platform{Platform::NOT_SET};
494
495 Aws::String m_computeRoleArn;
496
497 Aws::String m_iamServiceRoleArn;
498
499 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
500
501 bool m_enableBranchAutoBuild{false};
502
503 bool m_enableBranchAutoDeletion{false};
504
505 bool m_enableBasicAuth{false};
506
507 Aws::String m_basicAuthCredentials;
508
509 Aws::Vector<CustomRule> m_customRules;
510
511 Aws::String m_buildSpec;
512
513 Aws::String m_customHeaders;
514
515 bool m_enableAutoBranchCreation{false};
516
517 Aws::Vector<Aws::String> m_autoBranchCreationPatterns;
518
519 AutoBranchCreationConfig m_autoBranchCreationConfig;
520
521 Aws::String m_repository;
522
523 Aws::String m_oauthToken;
524
525 Aws::String m_accessToken;
526
527 JobConfig m_jobConfig;
528
529 CacheConfig m_cacheConfig;
530 bool m_appIdHasBeenSet = false;
531 bool m_nameHasBeenSet = false;
532 bool m_descriptionHasBeenSet = false;
533 bool m_platformHasBeenSet = false;
534 bool m_computeRoleArnHasBeenSet = false;
535 bool m_iamServiceRoleArnHasBeenSet = false;
536 bool m_environmentVariablesHasBeenSet = false;
537 bool m_enableBranchAutoBuildHasBeenSet = false;
538 bool m_enableBranchAutoDeletionHasBeenSet = false;
539 bool m_enableBasicAuthHasBeenSet = false;
540 bool m_basicAuthCredentialsHasBeenSet = false;
541 bool m_customRulesHasBeenSet = false;
542 bool m_buildSpecHasBeenSet = false;
543 bool m_customHeadersHasBeenSet = false;
544 bool m_enableAutoBranchCreationHasBeenSet = false;
545 bool m_autoBranchCreationPatternsHasBeenSet = false;
546 bool m_autoBranchCreationConfigHasBeenSet = false;
547 bool m_repositoryHasBeenSet = false;
548 bool m_oauthTokenHasBeenSet = false;
549 bool m_accessTokenHasBeenSet = false;
550 bool m_jobConfigHasBeenSet = false;
551 bool m_cacheConfigHasBeenSet = false;
552};
553
554} // namespace Model
555} // namespace Amplify
556} // namespace Aws
UpdateAppRequest & WithRepository(RepositoryT &&value)
UpdateAppRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
UpdateAppRequest & WithEnableBranchAutoDeletion(bool value)
const Aws::String & GetName() const
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
UpdateAppRequest & AddAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
const Aws::String & GetRepository() const
const Aws::Vector< Aws::String > & GetAutoBranchCreationPatterns() const
UpdateAppRequest & WithEnableBasicAuth(bool value)
void SetOauthToken(OauthTokenT &&value)
void SetRepository(RepositoryT &&value)
UpdateAppRequest & WithName(NameT &&value)
const CacheConfig & GetCacheConfig() const
UpdateAppRequest & WithDescription(DescriptionT &&value)
UpdateAppRequest & WithJobConfig(JobConfigT &&value)
UpdateAppRequest & WithComputeRoleArn(ComputeRoleArnT &&value)
void SetAutoBranchCreationConfig(AutoBranchCreationConfigT &&value)
void SetIamServiceRoleArn(IamServiceRoleArnT &&value)
void SetAccessToken(AccessTokenT &&value)
UpdateAppRequest & WithEnableBranchAutoBuild(bool value)
UpdateAppRequest & WithCustomHeaders(CustomHeadersT &&value)
UpdateAppRequest & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
UpdateAppRequest & AddCustomRules(CustomRulesT &&value)
const JobConfig & GetJobConfig() const
const Aws::String & GetIamServiceRoleArn() const
const Aws::String & GetBasicAuthCredentials() const
UpdateAppRequest & WithBuildSpec(BuildSpecT &&value)
const AutoBranchCreationConfig & GetAutoBranchCreationConfig() const
const Aws::String & GetCustomHeaders() const
void SetDescription(DescriptionT &&value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
void SetCustomHeaders(CustomHeadersT &&value)
UpdateAppRequest & WithAppId(AppIdT &&value)
const Aws::String & GetOauthToken() const
const Aws::String & GetBuildSpec() const
void SetCustomRules(CustomRulesT &&value)
UpdateAppRequest & WithAccessToken(AccessTokenT &&value)
const Aws::String & GetComputeRoleArn() const
UpdateAppRequest & WithOauthToken(OauthTokenT &&value)
UpdateAppRequest & WithCustomRules(CustomRulesT &&value)
void SetCacheConfig(CacheConfigT &&value)
void SetComputeRoleArn(ComputeRoleArnT &&value)
const Aws::String & GetAccessToken() const
UpdateAppRequest & WithPlatform(Platform value)
const Aws::Vector< CustomRule > & GetCustomRules() const
UpdateAppRequest & WithIamServiceRoleArn(IamServiceRoleArnT &&value)
UpdateAppRequest & WithEnableAutoBranchCreation(bool value)
AWS_AMPLIFY_API Aws::String SerializePayload() const override
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
const Aws::String & GetAppId() const
AWS_AMPLIFY_API UpdateAppRequest()=default
UpdateAppRequest & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
UpdateAppRequest & WithAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
const Aws::String & GetDescription() const
UpdateAppRequest & WithAutoBranchCreationConfig(AutoBranchCreationConfigT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAppRequest & WithCacheConfig(CacheConfigT &&value)
void SetAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&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
std::vector< T, Aws::Allocator< T > > Vector