7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/amplify/model/Platform.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/amplify/model/ProductionBranch.h>
14#include <aws/amplify/model/AutoBranchCreationConfig.h>
15#include <aws/amplify/model/RepositoryCloneMethod.h>
16#include <aws/amplify/model/CacheConfig.h>
17#include <aws/amplify/model/WafConfiguration.h>
18#include <aws/amplify/model/JobConfig.h>
19#include <aws/amplify/model/CustomRule.h>
46 AWS_AMPLIFY_API
App() =
default;
58 template<
typename AppIdT = Aws::String>
59 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet =
true; m_appId = std::forward<AppIdT>(value); }
60 template<
typename AppIdT = Aws::String>
70 template<
typename AppArnT = Aws::String>
71 void SetAppArn(AppArnT&& value) { m_appArnHasBeenSet =
true; m_appArn = std::forward<AppArnT>(value); }
72 template<
typename AppArnT = Aws::String>
82 template<
typename NameT = Aws::String>
83 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
84 template<
typename NameT = Aws::String>
94 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
96 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
100 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
110 template<
typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
112 template<
typename DescriptionT = Aws::String>
122 template<
typename RepositoryT = Aws::String>
123 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet =
true; m_repository = std::forward<RepositoryT>(value); }
124 template<
typename RepositoryT = Aws::String>
150 template<
typename CreateTimeT = Aws::Utils::DateTime>
151 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet =
true; m_createTime = std::forward<CreateTimeT>(value); }
152 template<
typename CreateTimeT = Aws::Utils::DateTime>
162 template<
typename UpdateTimeT = Aws::Utils::DateTime>
163 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet =
true; m_updateTime = std::forward<UpdateTimeT>(value); }
164 template<
typename UpdateTimeT = Aws::Utils::DateTime>
179 template<
typename ComputeRoleArnT = Aws::String>
180 void SetComputeRoleArn(ComputeRoleArnT&& value) { m_computeRoleArnHasBeenSet =
true; m_computeRoleArn = std::forward<ComputeRoleArnT>(value); }
181 template<
typename ComputeRoleArnT = Aws::String>
192 template<
typename IamServiceRoleArnT = Aws::String>
193 void SetIamServiceRoleArn(IamServiceRoleArnT&& value) { m_iamServiceRoleArnHasBeenSet =
true; m_iamServiceRoleArn = std::forward<IamServiceRoleArnT>(value); }
194 template<
typename IamServiceRoleArnT = Aws::String>
207 template<
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
208 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet =
true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
209 template<
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
211 template<
typename EnvironmentVariablesKeyT = Aws::String,
typename EnvironmentVariablesValueT = Aws::String>
213 m_environmentVariablesHasBeenSet =
true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
return *
this;
223 template<
typename DefaultDomainT = Aws::String>
224 void SetDefaultDomain(DefaultDomainT&& value) { m_defaultDomainHasBeenSet =
true; m_defaultDomain = std::forward<DefaultDomainT>(value); }
225 template<
typename DefaultDomainT = Aws::String>
256 inline void SetEnableBasicAuth(
bool value) { m_enableBasicAuthHasBeenSet =
true; m_enableBasicAuth = value; }
268 template<
typename BasicAuthCredentialsT = Aws::String>
269 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) { m_basicAuthCredentialsHasBeenSet =
true; m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value); }
270 template<
typename BasicAuthCredentialsT = Aws::String>
280 template<
typename CustomRulesT = Aws::Vector<CustomRule>>
281 void SetCustomRules(CustomRulesT&& value) { m_customRulesHasBeenSet =
true; m_customRules = std::forward<CustomRulesT>(value); }
282 template<
typename CustomRulesT = Aws::Vector<CustomRule>>
284 template<
typename CustomRulesT = CustomRule>
285 App&
AddCustomRules(CustomRulesT&& value) { m_customRulesHasBeenSet =
true; m_customRules.emplace_back(std::forward<CustomRulesT>(value));
return *
this; }
294 template<
typename ProductionBranchT = ProductionBranch>
295 void SetProductionBranch(ProductionBranchT&& value) { m_productionBranchHasBeenSet =
true; m_productionBranch = std::forward<ProductionBranchT>(value); }
296 template<
typename ProductionBranchT = ProductionBranch>
307 template<
typename BuildSpecT = Aws::String>
308 void SetBuildSpec(BuildSpecT&& value) { m_buildSpecHasBeenSet =
true; m_buildSpec = std::forward<BuildSpecT>(value); }
309 template<
typename BuildSpecT = Aws::String>
319 template<
typename CustomHeadersT = Aws::String>
320 void SetCustomHeaders(CustomHeadersT&& value) { m_customHeadersHasBeenSet =
true; m_customHeaders = std::forward<CustomHeadersT>(value); }
321 template<
typename CustomHeadersT = Aws::String>
342 template<
typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
343 void SetAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) { m_autoBranchCreationPatternsHasBeenSet =
true; m_autoBranchCreationPatterns = std::forward<AutoBranchCreationPatternsT>(value); }
344 template<
typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
346 template<
typename AutoBranchCreationPatternsT = Aws::String>
347 App&
AddAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) { m_autoBranchCreationPatternsHasBeenSet =
true; m_autoBranchCreationPatterns.emplace_back(std::forward<AutoBranchCreationPatternsT>(value));
return *
this; }
357 template<
typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
358 void SetAutoBranchCreationConfig(AutoBranchCreationConfigT&& value) { m_autoBranchCreationConfigHasBeenSet =
true; m_autoBranchCreationConfig = std::forward<AutoBranchCreationConfigT>(value); }
359 template<
typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
385 template<
typename CacheConfigT = CacheConfig>
386 void SetCacheConfig(CacheConfigT&& value) { m_cacheConfigHasBeenSet =
true; m_cacheConfig = std::forward<CacheConfigT>(value); }
387 template<
typename CacheConfigT = CacheConfig>
397 template<
typename WebhookCreateTimeT = Aws::Utils::DateTime>
398 void SetWebhookCreateTime(WebhookCreateTimeT&& value) { m_webhookCreateTimeHasBeenSet =
true; m_webhookCreateTime = std::forward<WebhookCreateTimeT>(value); }
399 template<
typename WebhookCreateTimeT = Aws::Utils::DateTime>
411 template<
typename WafConfigurationT = WafConfiguration>
412 void SetWafConfiguration(WafConfigurationT&& value) { m_wafConfigurationHasBeenSet =
true; m_wafConfiguration = std::forward<WafConfigurationT>(value); }
413 template<
typename WafConfigurationT = WafConfiguration>
423 template<
typename JobConfigT = JobConfig>
424 void SetJobConfig(JobConfigT&& value) { m_jobConfigHasBeenSet =
true; m_jobConfig = std::forward<JobConfigT>(value); }
425 template<
typename JobConfigT = JobConfig>
431 bool m_appIdHasBeenSet =
false;
434 bool m_appArnHasBeenSet =
false;
437 bool m_nameHasBeenSet =
false;
440 bool m_tagsHasBeenSet =
false;
443 bool m_descriptionHasBeenSet =
false;
446 bool m_repositoryHasBeenSet =
false;
449 bool m_platformHasBeenSet =
false;
452 bool m_createTimeHasBeenSet =
false;
455 bool m_updateTimeHasBeenSet =
false;
458 bool m_computeRoleArnHasBeenSet =
false;
461 bool m_iamServiceRoleArnHasBeenSet =
false;
464 bool m_environmentVariablesHasBeenSet =
false;
467 bool m_defaultDomainHasBeenSet =
false;
469 bool m_enableBranchAutoBuild{
false};
470 bool m_enableBranchAutoBuildHasBeenSet =
false;
472 bool m_enableBranchAutoDeletion{
false};
473 bool m_enableBranchAutoDeletionHasBeenSet =
false;
475 bool m_enableBasicAuth{
false};
476 bool m_enableBasicAuthHasBeenSet =
false;
479 bool m_basicAuthCredentialsHasBeenSet =
false;
482 bool m_customRulesHasBeenSet =
false;
484 ProductionBranch m_productionBranch;
485 bool m_productionBranchHasBeenSet =
false;
488 bool m_buildSpecHasBeenSet =
false;
491 bool m_customHeadersHasBeenSet =
false;
493 bool m_enableAutoBranchCreation{
false};
494 bool m_enableAutoBranchCreationHasBeenSet =
false;
497 bool m_autoBranchCreationPatternsHasBeenSet =
false;
499 AutoBranchCreationConfig m_autoBranchCreationConfig;
500 bool m_autoBranchCreationConfigHasBeenSet =
false;
503 bool m_repositoryCloneMethodHasBeenSet =
false;
505 CacheConfig m_cacheConfig;
506 bool m_cacheConfigHasBeenSet =
false;
509 bool m_webhookCreateTimeHasBeenSet =
false;
511 WafConfiguration m_wafConfiguration;
512 bool m_wafConfigurationHasBeenSet =
false;
514 JobConfig m_jobConfig;
515 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