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>
48 template <
typename AppIdT = Aws::String>
50 m_appIdHasBeenSet =
true;
51 m_appId = std::forward<AppIdT>(value);
53 template <
typename AppIdT = Aws::String>
55 SetAppId(std::forward<AppIdT>(value));
66 template <
typename NameT = Aws::String>
68 m_nameHasBeenSet =
true;
69 m_name = std::forward<NameT>(value);
71 template <
typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
84 template <
typename DescriptionT = Aws::String>
86 m_descriptionHasBeenSet =
true;
87 m_description = std::forward<DescriptionT>(value);
89 template <
typename DescriptionT = Aws::String>
109 m_platformHasBeenSet =
true;
129 template <
typename ComputeRoleArnT = Aws::String>
131 m_computeRoleArnHasBeenSet =
true;
132 m_computeRoleArn = std::forward<ComputeRoleArnT>(value);
134 template <
typename ComputeRoleArnT = Aws::String>
148 template <
typename IamServiceRoleArnT = Aws::String>
150 m_iamServiceRoleArnHasBeenSet =
true;
151 m_iamServiceRoleArn = std::forward<IamServiceRoleArnT>(value);
153 template <
typename IamServiceRoleArnT = Aws::String>
166 template <
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
168 m_environmentVariablesHasBeenSet =
true;
169 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
171 template <
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
176 template <
typename EnvironmentVariablesKeyT = Aws::String,
typename EnvironmentVariablesValueT = Aws::String>
178 m_environmentVariablesHasBeenSet =
true;
179 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
191 m_enableBranchAutoBuildHasBeenSet =
true;
192 m_enableBranchAutoBuild = value;
208 m_enableBranchAutoDeletionHasBeenSet =
true;
209 m_enableBranchAutoDeletion = value;
224 m_enableBasicAuthHasBeenSet =
true;
225 m_enableBasicAuth = value;
241 template <
typename BasicAuthCredentialsT = Aws::String>
243 m_basicAuthCredentialsHasBeenSet =
true;
244 m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value);
246 template <
typename BasicAuthCredentialsT = Aws::String>
259 template <
typename CustomRulesT = Aws::Vector<CustomRule>>
261 m_customRulesHasBeenSet =
true;
262 m_customRules = std::forward<CustomRulesT>(value);
264 template <
typename CustomRulesT = Aws::Vector<CustomRule>>
269 template <
typename CustomRulesT = CustomRule>
271 m_customRulesHasBeenSet =
true;
272 m_customRules.emplace_back(std::forward<CustomRulesT>(value));
283 template <
typename BuildSpecT = Aws::String>
285 m_buildSpecHasBeenSet =
true;
286 m_buildSpec = std::forward<BuildSpecT>(value);
288 template <
typename BuildSpecT = Aws::String>
301 template <
typename CustomHeadersT = Aws::String>
303 m_customHeadersHasBeenSet =
true;
304 m_customHeaders = std::forward<CustomHeadersT>(value);
306 template <
typename CustomHeadersT = Aws::String>
320 m_enableAutoBranchCreationHasBeenSet =
true;
321 m_enableAutoBranchCreation = value;
336 template <
typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
338 m_autoBranchCreationPatternsHasBeenSet =
true;
339 m_autoBranchCreationPatterns = std::forward<AutoBranchCreationPatternsT>(value);
341 template <
typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
346 template <
typename AutoBranchCreationPatternsT = Aws::String>
348 m_autoBranchCreationPatternsHasBeenSet =
true;
349 m_autoBranchCreationPatterns.emplace_back(std::forward<AutoBranchCreationPatternsT>(value));
360 template <
typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
362 m_autoBranchCreationConfigHasBeenSet =
true;
363 m_autoBranchCreationConfig = std::forward<AutoBranchCreationConfigT>(value);
365 template <
typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
378 template <
typename RepositoryT = Aws::String>
380 m_repositoryHasBeenSet =
true;
381 m_repository = std::forward<RepositoryT>(value);
383 template <
typename RepositoryT = Aws::String>
408 template <
typename OauthTokenT = Aws::String>
410 m_oauthTokenHasBeenSet =
true;
411 m_oauthToken = std::forward<OauthTokenT>(value);
413 template <
typename OauthTokenT = Aws::String>
438 template <
typename AccessTokenT = Aws::String>
440 m_accessTokenHasBeenSet =
true;
441 m_accessToken = std::forward<AccessTokenT>(value);
443 template <
typename AccessTokenT = Aws::String>
457 template <
typename JobConfigT = JobConfig>
459 m_jobConfigHasBeenSet =
true;
460 m_jobConfig = std::forward<JobConfigT>(value);
462 template <
typename JobConfigT = JobConfig>
475 template <
typename CacheConfigT = CacheConfig>
477 m_cacheConfigHasBeenSet =
true;
478 m_cacheConfig = std::forward<CacheConfigT>(value);
480 template <
typename CacheConfigT = CacheConfig>
501 bool m_enableBranchAutoBuild{
false};
503 bool m_enableBranchAutoDeletion{
false};
505 bool m_enableBasicAuth{
false};
515 bool m_enableAutoBranchCreation{
false};
519 AutoBranchCreationConfig m_autoBranchCreationConfig;
527 JobConfig m_jobConfig;
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;
UpdateAppRequest & WithRepository(RepositoryT &&value)
UpdateAppRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
UpdateAppRequest & WithEnableBranchAutoDeletion(bool value)
void SetEnableAutoBranchCreation(bool value)
bool CustomRulesHasBeenSet() const
void SetName(NameT &&value)
const Aws::String & GetName() const
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
UpdateAppRequest & AddAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
bool EnableBranchAutoBuildHasBeenSet() const
void SetEnableBranchAutoBuild(bool value)
const Aws::String & GetRepository() const
bool AccessTokenHasBeenSet() const
Platform GetPlatform() const
bool CacheConfigHasBeenSet() const
bool GetEnableBranchAutoBuild() const
bool GetEnableAutoBranchCreation() const
void SetJobConfig(JobConfigT &&value)
bool RepositoryHasBeenSet() const
bool BasicAuthCredentialsHasBeenSet() const
const Aws::Vector< Aws::String > & GetAutoBranchCreationPatterns() const
UpdateAppRequest & WithEnableBasicAuth(bool value)
void SetOauthToken(OauthTokenT &&value)
void SetPlatform(Platform value)
void SetRepository(RepositoryT &&value)
bool IamServiceRoleArnHasBeenSet() const
UpdateAppRequest & WithName(NameT &&value)
void SetBuildSpec(BuildSpecT &&value)
void SetEnableBranchAutoDeletion(bool value)
bool PlatformHasBeenSet() const
const CacheConfig & GetCacheConfig() const
UpdateAppRequest & WithDescription(DescriptionT &&value)
bool EnableAutoBranchCreationHasBeenSet() const
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)
bool NameHasBeenSet() const
UpdateAppRequest & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
UpdateAppRequest & AddCustomRules(CustomRulesT &&value)
const JobConfig & GetJobConfig() const
const Aws::String & GetIamServiceRoleArn() const
bool CustomHeadersHasBeenSet() const
const Aws::String & GetBasicAuthCredentials() const
UpdateAppRequest & WithBuildSpec(BuildSpecT &&value)
void SetEnableBasicAuth(bool value)
const AutoBranchCreationConfig & GetAutoBranchCreationConfig() const
const Aws::String & GetCustomHeaders() const
void SetDescription(DescriptionT &&value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
void SetCustomHeaders(CustomHeadersT &&value)
void SetAppId(AppIdT &&value)
UpdateAppRequest & WithAppId(AppIdT &&value)
bool AutoBranchCreationPatternsHasBeenSet() const
bool BuildSpecHasBeenSet() const
const Aws::String & GetOauthToken() const
const Aws::String & GetBuildSpec() const
void SetCustomRules(CustomRulesT &&value)
UpdateAppRequest & WithAccessToken(AccessTokenT &&value)
bool GetEnableBranchAutoDeletion() const
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)
bool AppIdHasBeenSet() const
bool JobConfigHasBeenSet() const
UpdateAppRequest & WithEnableAutoBranchCreation(bool value)
AWS_AMPLIFY_API Aws::String SerializePayload() const override
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
bool ComputeRoleArnHasBeenSet() const
bool EnableBranchAutoDeletionHasBeenSet() const
const Aws::String & GetAppId() const
AWS_AMPLIFY_API UpdateAppRequest()=default
bool OauthTokenHasBeenSet() const
bool AutoBranchCreationConfigHasBeenSet() const
UpdateAppRequest & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
UpdateAppRequest & WithAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
bool DescriptionHasBeenSet() const
bool EnableBasicAuthHasBeenSet() const
bool EnvironmentVariablesHasBeenSet() const
const Aws::String & GetDescription() const
UpdateAppRequest & WithAutoBranchCreationConfig(AutoBranchCreationConfigT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAppRequest & WithCacheConfig(CacheConfigT &&value)
bool GetEnableBasicAuth() const
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