7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/model/AutoBranchCreationConfig.h>
9#include <aws/amplify/model/CacheConfig.h>
10#include <aws/amplify/model/CustomRule.h>
11#include <aws/amplify/model/JobConfig.h>
12#include <aws/amplify/model/Platform.h>
13#include <aws/amplify/model/ProductionBranch.h>
14#include <aws/amplify/model/RepositoryCloneMethod.h>
15#include <aws/amplify/model/WafConfiguration.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
41 AWS_AMPLIFY_API
App() =
default;
52 template <
typename AppIdT = Aws::String>
54 m_appIdHasBeenSet =
true;
55 m_appId = std::forward<AppIdT>(value);
57 template <
typename AppIdT = Aws::String>
59 SetAppId(std::forward<AppIdT>(value));
70 template <
typename AppArnT = Aws::String>
72 m_appArnHasBeenSet =
true;
73 m_appArn = std::forward<AppArnT>(value);
75 template <
typename AppArnT = Aws::String>
88 template <
typename NameT = Aws::String>
90 m_nameHasBeenSet =
true;
91 m_name = std::forward<NameT>(value);
93 template <
typename NameT = Aws::String>
95 SetName(std::forward<NameT>(value));
106 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 m_tagsHasBeenSet =
true;
109 m_tags = std::forward<TagsT>(value);
111 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 SetTags(std::forward<TagsT>(value));
116 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
118 m_tagsHasBeenSet =
true;
119 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
130 template <
typename DescriptionT = Aws::String>
132 m_descriptionHasBeenSet =
true;
133 m_description = std::forward<DescriptionT>(value);
135 template <
typename DescriptionT = Aws::String>
148 template <
typename RepositoryT = Aws::String>
150 m_repositoryHasBeenSet =
true;
151 m_repository = std::forward<RepositoryT>(value);
153 template <
typename RepositoryT = Aws::String>
173 m_platformHasBeenSet =
true;
188 template <
typename CreateTimeT = Aws::Utils::DateTime>
190 m_createTimeHasBeenSet =
true;
191 m_createTime = std::forward<CreateTimeT>(value);
193 template <
typename CreateTimeT = Aws::Utils::DateTime>
206 template <
typename UpdateTimeT = Aws::Utils::DateTime>
208 m_updateTimeHasBeenSet =
true;
209 m_updateTime = std::forward<UpdateTimeT>(value);
211 template <
typename UpdateTimeT = Aws::Utils::DateTime>
229 template <
typename ComputeRoleArnT = Aws::String>
231 m_computeRoleArnHasBeenSet =
true;
232 m_computeRoleArn = std::forward<ComputeRoleArnT>(value);
234 template <
typename ComputeRoleArnT = Aws::String>
248 template <
typename IamServiceRoleArnT = Aws::String>
250 m_iamServiceRoleArnHasBeenSet =
true;
251 m_iamServiceRoleArn = std::forward<IamServiceRoleArnT>(value);
253 template <
typename IamServiceRoleArnT = Aws::String>
269 template <
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
271 m_environmentVariablesHasBeenSet =
true;
272 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
274 template <
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
279 template <
typename EnvironmentVariablesKeyT = Aws::String,
typename EnvironmentVariablesValueT = Aws::String>
281 m_environmentVariablesHasBeenSet =
true;
282 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
293 template <
typename DefaultDomainT = Aws::String>
295 m_defaultDomainHasBeenSet =
true;
296 m_defaultDomain = std::forward<DefaultDomainT>(value);
298 template <
typename DefaultDomainT = Aws::String>
312 m_enableBranchAutoBuildHasBeenSet =
true;
313 m_enableBranchAutoBuild = value;
329 m_enableBranchAutoDeletionHasBeenSet =
true;
330 m_enableBranchAutoDeletion = value;
345 m_enableBasicAuthHasBeenSet =
true;
346 m_enableBasicAuth = value;
362 template <
typename BasicAuthCredentialsT = Aws::String>
364 m_basicAuthCredentialsHasBeenSet =
true;
365 m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value);
367 template <
typename BasicAuthCredentialsT = Aws::String>
380 template <
typename CustomRulesT = Aws::Vector<CustomRule>>
382 m_customRulesHasBeenSet =
true;
383 m_customRules = std::forward<CustomRulesT>(value);
385 template <
typename CustomRulesT = Aws::Vector<CustomRule>>
390 template <
typename CustomRulesT = CustomRule>
392 m_customRulesHasBeenSet =
true;
393 m_customRules.emplace_back(std::forward<CustomRulesT>(value));
404 template <
typename ProductionBranchT = ProductionBranch>
406 m_productionBranchHasBeenSet =
true;
407 m_productionBranch = std::forward<ProductionBranchT>(value);
409 template <
typename ProductionBranchT = ProductionBranch>
423 template <
typename BuildSpecT = Aws::String>
425 m_buildSpecHasBeenSet =
true;
426 m_buildSpec = std::forward<BuildSpecT>(value);
428 template <
typename BuildSpecT = Aws::String>
441 template <
typename CustomHeadersT = Aws::String>
443 m_customHeadersHasBeenSet =
true;
444 m_customHeaders = std::forward<CustomHeadersT>(value);
446 template <
typename CustomHeadersT = Aws::String>
460 m_enableAutoBranchCreationHasBeenSet =
true;
461 m_enableAutoBranchCreation = value;
476 template <
typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
478 m_autoBranchCreationPatternsHasBeenSet =
true;
479 m_autoBranchCreationPatterns = std::forward<AutoBranchCreationPatternsT>(value);
481 template <
typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
486 template <
typename AutoBranchCreationPatternsT = Aws::String>
488 m_autoBranchCreationPatternsHasBeenSet =
true;
489 m_autoBranchCreationPatterns.emplace_back(std::forward<AutoBranchCreationPatternsT>(value));
501 template <
typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
503 m_autoBranchCreationConfigHasBeenSet =
true;
504 m_autoBranchCreationConfig = std::forward<AutoBranchCreationConfigT>(value);
506 template <
typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
524 m_repositoryCloneMethodHasBeenSet =
true;
525 m_repositoryCloneMethod = value;
541 template <
typename CacheConfigT = CacheConfig>
543 m_cacheConfigHasBeenSet =
true;
544 m_cacheConfig = std::forward<CacheConfigT>(value);
546 template <
typename CacheConfigT = CacheConfig>
559 template <
typename WebhookCreateTimeT = Aws::Utils::DateTime>
561 m_webhookCreateTimeHasBeenSet =
true;
562 m_webhookCreateTime = std::forward<WebhookCreateTimeT>(value);
564 template <
typename WebhookCreateTimeT = Aws::Utils::DateTime>
579 template <
typename WafConfigurationT = WafConfiguration>
581 m_wafConfigurationHasBeenSet =
true;
582 m_wafConfiguration = std::forward<WafConfigurationT>(value);
584 template <
typename WafConfigurationT = WafConfiguration>
597 template <
typename JobConfigT = JobConfig>
599 m_jobConfigHasBeenSet =
true;
600 m_jobConfig = std::forward<JobConfigT>(value);
602 template <
typename JobConfigT = JobConfig>
635 bool m_enableBranchAutoBuild{
false};
637 bool m_enableBranchAutoDeletion{
false};
639 bool m_enableBasicAuth{
false};
645 ProductionBranch m_productionBranch;
651 bool m_enableAutoBranchCreation{
false};
655 AutoBranchCreationConfig m_autoBranchCreationConfig;
659 CacheConfig m_cacheConfig;
663 WafConfiguration m_wafConfiguration;
665 JobConfig m_jobConfig;
666 bool m_appIdHasBeenSet =
false;
667 bool m_appArnHasBeenSet =
false;
668 bool m_nameHasBeenSet =
false;
669 bool m_tagsHasBeenSet =
false;
670 bool m_descriptionHasBeenSet =
false;
671 bool m_repositoryHasBeenSet =
false;
672 bool m_platformHasBeenSet =
false;
673 bool m_createTimeHasBeenSet =
false;
674 bool m_updateTimeHasBeenSet =
false;
675 bool m_computeRoleArnHasBeenSet =
false;
676 bool m_iamServiceRoleArnHasBeenSet =
false;
677 bool m_environmentVariablesHasBeenSet =
false;
678 bool m_defaultDomainHasBeenSet =
false;
679 bool m_enableBranchAutoBuildHasBeenSet =
false;
680 bool m_enableBranchAutoDeletionHasBeenSet =
false;
681 bool m_enableBasicAuthHasBeenSet =
false;
682 bool m_basicAuthCredentialsHasBeenSet =
false;
683 bool m_customRulesHasBeenSet =
false;
684 bool m_productionBranchHasBeenSet =
false;
685 bool m_buildSpecHasBeenSet =
false;
686 bool m_customHeadersHasBeenSet =
false;
687 bool m_enableAutoBranchCreationHasBeenSet =
false;
688 bool m_autoBranchCreationPatternsHasBeenSet =
false;
689 bool m_autoBranchCreationConfigHasBeenSet =
false;
690 bool m_repositoryCloneMethodHasBeenSet =
false;
691 bool m_cacheConfigHasBeenSet =
false;
692 bool m_webhookCreateTimeHasBeenSet =
false;
693 bool m_wafConfigurationHasBeenSet =
false;
694 bool m_jobConfigHasBeenSet =
false;
bool RepositoryCloneMethodHasBeenSet() const
void SetCreateTime(CreateTimeT &&value)
void SetAppId(AppIdT &&value)
const Aws::String & GetName() const
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
App & WithWafConfiguration(WafConfigurationT &&value)
App & WithName(NameT &&value)
bool CustomRulesHasBeenSet() const
const WafConfiguration & GetWafConfiguration() const
App & WithAppArn(AppArnT &&value)
bool NameHasBeenSet() const
const ProductionBranch & GetProductionBranch() const
App & WithPlatform(Platform value)
App & WithAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
void SetAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
bool DefaultDomainHasBeenSet() const
bool CustomHeadersHasBeenSet() const
App & WithJobConfig(JobConfigT &&value)
App & WithIamServiceRoleArn(IamServiceRoleArnT &&value)
App & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
App & WithRepositoryCloneMethod(RepositoryCloneMethod value)
App & WithEnableBranchAutoDeletion(bool value)
bool PlatformHasBeenSet() const
void SetEnableAutoBranchCreation(bool value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
App & WithTags(TagsT &&value)
void SetWafConfiguration(WafConfigurationT &&value)
const Aws::String & GetIamServiceRoleArn() const
const Aws::Vector< Aws::String > & GetAutoBranchCreationPatterns() const
void SetCustomRules(CustomRulesT &&value)
AWS_AMPLIFY_API App(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetComputeRoleArn() const
void SetPlatform(Platform value)
bool WafConfigurationHasBeenSet() const
App & WithAppId(AppIdT &&value)
const Aws::Vector< CustomRule > & GetCustomRules() const
const Aws::Utils::DateTime & GetWebhookCreateTime() const
const AutoBranchCreationConfig & GetAutoBranchCreationConfig() const
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
bool RepositoryHasBeenSet() const
void SetWebhookCreateTime(WebhookCreateTimeT &&value)
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
void SetEnableBasicAuth(bool value)
bool GetEnableBranchAutoBuild() const
bool EnvironmentVariablesHasBeenSet() const
void SetDefaultDomain(DefaultDomainT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
bool WebhookCreateTimeHasBeenSet() const
App & WithCustomRules(CustomRulesT &&value)
bool GetEnableBasicAuth() const
bool GetEnableBranchAutoDeletion() const
App & WithDescription(DescriptionT &&value)
const Aws::String & GetAppId() const
bool AutoBranchCreationConfigHasBeenSet() const
const Aws::String & GetCustomHeaders() const
bool EnableAutoBranchCreationHasBeenSet() const
const Aws::String & GetBasicAuthCredentials() const
void SetCustomHeaders(CustomHeadersT &&value)
bool ProductionBranchHasBeenSet() const
void SetComputeRoleArn(ComputeRoleArnT &&value)
void SetCacheConfig(CacheConfigT &&value)
const CacheConfig & GetCacheConfig() const
App & WithWebhookCreateTime(WebhookCreateTimeT &&value)
App & WithProductionBranch(ProductionBranchT &&value)
App & WithCreateTime(CreateTimeT &&value)
bool BuildSpecHasBeenSet() const
App & WithEnableBranchAutoBuild(bool value)
App & WithComputeRoleArn(ComputeRoleArnT &&value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
bool TagsHasBeenSet() const
RepositoryCloneMethod GetRepositoryCloneMethod() const
App & WithBuildSpec(BuildSpecT &&value)
void SetAutoBranchCreationConfig(AutoBranchCreationConfigT &&value)
App & WithAutoBranchCreationConfig(AutoBranchCreationConfigT &&value)
bool DescriptionHasBeenSet() const
bool EnableBranchAutoDeletionHasBeenSet() const
bool IamServiceRoleArnHasBeenSet() const
bool EnableBranchAutoBuildHasBeenSet() const
App & WithCustomHeaders(CustomHeadersT &&value)
void SetRepository(RepositoryT &&value)
bool AutoBranchCreationPatternsHasBeenSet() const
App & WithEnableBasicAuth(bool value)
bool AppIdHasBeenSet() const
App & WithUpdateTime(UpdateTimeT &&value)
void SetName(NameT &&value)
bool JobConfigHasBeenSet() const
bool UpdateTimeHasBeenSet() const
App & WithEnableAutoBranchCreation(bool value)
const Aws::String & GetBuildSpec() const
bool AppArnHasBeenSet() const
bool CacheConfigHasBeenSet() const
void SetTags(TagsT &&value)
AWS_AMPLIFY_API App & operator=(Aws::Utils::Json::JsonView jsonValue)
const JobConfig & GetJobConfig() const
App & AddAutoBranchCreationPatterns(AutoBranchCreationPatternsT &&value)
void SetUpdateTime(UpdateTimeT &&value)
bool BasicAuthCredentialsHasBeenSet() const
App & WithCacheConfig(CacheConfigT &&value)
bool ComputeRoleArnHasBeenSet() const
const Aws::Utils::DateTime & GetUpdateTime() const
void SetBuildSpec(BuildSpecT &&value)
void SetAppArn(AppArnT &&value)
App & WithEnvironmentVariables(EnvironmentVariablesT &&value)
void SetRepositoryCloneMethod(RepositoryCloneMethod value)
void SetEnableBranchAutoBuild(bool value)
Platform GetPlatform() const
App & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
App & WithDefaultDomain(DefaultDomainT &&value)
void SetProductionBranch(ProductionBranchT &&value)
void SetJobConfig(JobConfigT &&value)
App & WithRepository(RepositoryT &&value)
bool CreateTimeHasBeenSet() const
void SetEnableBranchAutoDeletion(bool value)
AWS_AMPLIFY_API App()=default
const Aws::String & GetDescription() const
const Aws::String & GetDefaultDomain() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetAppArn() const
App & AddCustomRules(CustomRulesT &&value)
bool EnableBasicAuthHasBeenSet() const
void SetIamServiceRoleArn(IamServiceRoleArnT &&value)
const Aws::String & GetRepository() const
App & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool GetEnableAutoBranchCreation() 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
Aws::Utils::Json::JsonValue JsonValue