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 NameT = Aws::String>
50 m_nameHasBeenSet =
true;
51 m_name = std::forward<NameT>(value);
53 template <
typename NameT = Aws::String>
55 SetName(std::forward<NameT>(value));
66 template <
typename DescriptionT = Aws::String>
68 m_descriptionHasBeenSet =
true;
69 m_description = std::forward<DescriptionT>(value);
71 template <
typename DescriptionT = Aws::String>
84 template <
typename RepositoryT = Aws::String>
86 m_repositoryHasBeenSet =
true;
87 m_repository = std::forward<RepositoryT>(value);
89 template <
typename RepositoryT = Aws::String>
114 m_platformHasBeenSet =
true;
134 template <
typename ComputeRoleArnT = Aws::String>
136 m_computeRoleArnHasBeenSet =
true;
137 m_computeRoleArn = std::forward<ComputeRoleArnT>(value);
139 template <
typename ComputeRoleArnT = Aws::String>
153 template <
typename IamServiceRoleArnT = Aws::String>
155 m_iamServiceRoleArnHasBeenSet =
true;
156 m_iamServiceRoleArn = std::forward<IamServiceRoleArnT>(value);
158 template <
typename IamServiceRoleArnT = Aws::String>
183 template <
typename OauthTokenT = Aws::String>
185 m_oauthTokenHasBeenSet =
true;
186 m_oauthToken = std::forward<OauthTokenT>(value);
188 template <
typename OauthTokenT = Aws::String>
213 template <
typename AccessTokenT = Aws::String>
215 m_accessTokenHasBeenSet =
true;
216 m_accessToken = std::forward<AccessTokenT>(value);
218 template <
typename AccessTokenT = Aws::String>
234 template <
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
236 m_environmentVariablesHasBeenSet =
true;
237 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
239 template <
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
244 template <
typename EnvironmentVariablesKeyT = Aws::String,
typename EnvironmentVariablesValueT = Aws::String>
246 m_environmentVariablesHasBeenSet =
true;
247 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
259 m_enableBranchAutoBuildHasBeenSet =
true;
260 m_enableBranchAutoBuild = value;
276 m_enableBranchAutoDeletionHasBeenSet =
true;
277 m_enableBranchAutoDeletion = value;
293 m_enableBasicAuthHasBeenSet =
true;
294 m_enableBasicAuth = value;
310 template <
typename BasicAuthCredentialsT = Aws::String>
312 m_basicAuthCredentialsHasBeenSet =
true;
313 m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value);
315 template <
typename BasicAuthCredentialsT = Aws::String>
328 template <
typename CustomRulesT = Aws::Vector<CustomRule>>
330 m_customRulesHasBeenSet =
true;
331 m_customRules = std::forward<CustomRulesT>(value);
333 template <
typename CustomRulesT = Aws::Vector<CustomRule>>
338 template <
typename CustomRulesT = CustomRule>
340 m_customRulesHasBeenSet =
true;
341 m_customRules.emplace_back(std::forward<CustomRulesT>(value));
352 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
354 m_tagsHasBeenSet =
true;
355 m_tags = std::forward<TagsT>(value);
357 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
359 SetTags(std::forward<TagsT>(value));
362 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
364 m_tagsHasBeenSet =
true;
365 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
376 template <
typename BuildSpecT = Aws::String>
378 m_buildSpecHasBeenSet =
true;
379 m_buildSpec = std::forward<BuildSpecT>(value);
381 template <
typename BuildSpecT = Aws::String>
394 template <
typename CustomHeadersT = Aws::String>
396 m_customHeadersHasBeenSet =
true;
397 m_customHeaders = std::forward<CustomHeadersT>(value);
399 template <
typename CustomHeadersT = Aws::String>
413 m_enableAutoBranchCreationHasBeenSet =
true;
414 m_enableAutoBranchCreation = value;
428 template <
typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
430 m_autoBranchCreationPatternsHasBeenSet =
true;
431 m_autoBranchCreationPatterns = std::forward<AutoBranchCreationPatternsT>(value);
433 template <
typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
438 template <
typename AutoBranchCreationPatternsT = Aws::String>
440 m_autoBranchCreationPatternsHasBeenSet =
true;
441 m_autoBranchCreationPatterns.emplace_back(std::forward<AutoBranchCreationPatternsT>(value));
452 template <
typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
454 m_autoBranchCreationConfigHasBeenSet =
true;
455 m_autoBranchCreationConfig = std::forward<AutoBranchCreationConfigT>(value);
457 template <
typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
471 template <
typename JobConfigT = JobConfig>
473 m_jobConfigHasBeenSet =
true;
474 m_jobConfig = std::forward<JobConfigT>(value);
476 template <
typename JobConfigT = JobConfig>
489 template <
typename CacheConfigT = CacheConfig>
491 m_cacheConfigHasBeenSet =
true;
492 m_cacheConfig = std::forward<CacheConfigT>(value);
494 template <
typename CacheConfigT = CacheConfig>
519 bool m_enableBranchAutoBuild{
false};
521 bool m_enableBranchAutoDeletion{
false};
523 bool m_enableBasicAuth{
false};
535 bool m_enableAutoBranchCreation{
false};
539 AutoBranchCreationConfig m_autoBranchCreationConfig;
541 JobConfig m_jobConfig;
543 CacheConfig m_cacheConfig;
544 bool m_nameHasBeenSet =
false;
545 bool m_descriptionHasBeenSet =
false;
546 bool m_repositoryHasBeenSet =
false;
547 bool m_platformHasBeenSet =
false;
548 bool m_computeRoleArnHasBeenSet =
false;
549 bool m_iamServiceRoleArnHasBeenSet =
false;
550 bool m_oauthTokenHasBeenSet =
false;
551 bool m_accessTokenHasBeenSet =
false;
552 bool m_environmentVariablesHasBeenSet =
false;
553 bool m_enableBranchAutoBuildHasBeenSet =
false;
554 bool m_enableBranchAutoDeletionHasBeenSet =
false;
555 bool m_enableBasicAuthHasBeenSet =
false;
556 bool m_basicAuthCredentialsHasBeenSet =
false;
557 bool m_customRulesHasBeenSet =
false;
558 bool m_tagsHasBeenSet =
false;
559 bool m_buildSpecHasBeenSet =
false;
560 bool m_customHeadersHasBeenSet =
false;
561 bool m_enableAutoBranchCreationHasBeenSet =
false;
562 bool m_autoBranchCreationPatternsHasBeenSet =
false;
563 bool m_autoBranchCreationConfigHasBeenSet =
false;
564 bool m_jobConfigHasBeenSet =
false;
565 bool m_cacheConfigHasBeenSet =
false;
void SetEnableBasicAuth(bool value)
void SetIamServiceRoleArn(IamServiceRoleArnT &&value)
CreateAppRequest & WithBuildSpec(BuildSpecT &&value)
bool AccessTokenHasBeenSet() const
CreateAppRequest & WithCustomRules(CustomRulesT &&value)
bool EnableBranchAutoDeletionHasBeenSet() const
const Aws::String & GetCustomHeaders() const
CreateAppRequest & AddAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
bool ComputeRoleArnHasBeenSet() const
const Aws::String & GetComputeRoleArn() const
const AutoBranchCreationConfig & GetAutoBranchCreationConfig() const
CreateAppRequest & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
bool EnableAutoBranchCreationHasBeenSet() const
bool EnableBranchAutoBuildHasBeenSet() const
CreateAppRequest & WithTags(TagsT &&value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
bool AutoBranchCreationConfigHasBeenSet() const
virtual const char * GetServiceRequestName() const override
CreateAppRequest & WithJobConfig(JobConfigT &&value)
void SetEnableBranchAutoDeletion(bool value)
const CacheConfig & GetCacheConfig() const
bool OauthTokenHasBeenSet() const
CreateAppRequest & WithAutoBranchCreationConfig(AutoBranchCreationConfigT &&value)
bool IamServiceRoleArnHasBeenSet() const
bool GetEnableBranchAutoBuild() const
void SetCacheConfig(CacheConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
CreateAppRequest & WithEnableAutoBranchCreation(bool value)
bool BasicAuthCredentialsHasBeenSet() const
void SetBuildSpec(BuildSpecT &&value)
const Aws::String & GetBuildSpec() const
void SetAccessToken(AccessTokenT &&value)
CreateAppRequest & WithEnableBranchAutoBuild(bool value)
bool GetEnableBranchAutoDeletion() const
CreateAppRequest & WithDescription(DescriptionT &&value)
bool CustomRulesHasBeenSet() const
AWS_AMPLIFY_API CreateAppRequest()=default
CreateAppRequest & WithComputeRoleArn(ComputeRoleArnT &&value)
bool PlatformHasBeenSet() const
void SetCustomHeaders(CustomHeadersT &&value)
const Aws::String & GetRepository() const
const Aws::Vector< CustomRule > & GetCustomRules() const
bool CustomHeadersHasBeenSet() const
const Aws::String & GetDescription() const
void SetAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
bool EnvironmentVariablesHasBeenSet() const
Platform GetPlatform() const
bool RepositoryHasBeenSet() const
bool NameHasBeenSet() const
void SetRepository(RepositoryT &&value)
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetOauthToken() const
CreateAppRequest & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
CreateAppRequest & WithIamServiceRoleArn(IamServiceRoleArnT &&value)
void SetComputeRoleArn(ComputeRoleArnT &&value)
void SetOauthToken(OauthTokenT &&value)
bool BuildSpecHasBeenSet() const
CreateAppRequest & WithPlatform(Platform value)
bool TagsHasBeenSet() const
const Aws::String & GetIamServiceRoleArn() const
bool CacheConfigHasBeenSet() const
AWS_AMPLIFY_API Aws::String SerializePayload() const override
bool JobConfigHasBeenSet() const
void SetAutoBranchCreationConfig(AutoBranchCreationConfigT &&value)
void SetTags(TagsT &&value)
const Aws::String & GetAccessToken() const
void SetCustomRules(CustomRulesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAppRequest & WithOauthToken(OauthTokenT &&value)
void SetPlatform(Platform value)
bool DescriptionHasBeenSet() const
bool GetEnableAutoBranchCreation() const
CreateAppRequest & WithCacheConfig(CacheConfigT &&value)
void SetEnableBranchAutoBuild(bool value)
void SetJobConfig(JobConfigT &&value)
bool EnableBasicAuthHasBeenSet() const
const Aws::String & GetBasicAuthCredentials() const
bool GetEnableBasicAuth() const
CreateAppRequest & WithEnableBranchAutoDeletion(bool value)
void SetName(NameT &&value)
CreateAppRequest & WithEnableBasicAuth(bool value)
CreateAppRequest & WithAccessToken(AccessTokenT &&value)
CreateAppRequest & WithCustomHeaders(CustomHeadersT &&value)
CreateAppRequest & WithRepository(RepositoryT &&value)
void SetEnableAutoBranchCreation(bool value)
bool AutoBranchCreationPatternsHasBeenSet() const
CreateAppRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAppRequest & WithName(NameT &&value)
CreateAppRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
CreateAppRequest & AddCustomRules(CustomRulesT &&value)
const JobConfig & GetJobConfig() const
CreateAppRequest & WithAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
const Aws::Vector< Aws::String > & GetAutoBranchCreationPatterns() const
const Aws::String & GetName() 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
std::vector< T, Aws::Allocator< T > > Vector