7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/AmplifyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/amplify/model/Platform.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/amplify/model/AutoBranchCreationConfig.h>
14#include <aws/amplify/model/JobConfig.h>
15#include <aws/amplify/model/CacheConfig.h>
16#include <aws/amplify/model/CustomRule.h>
52 template<
typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
54 template<
typename NameT = Aws::String>
64 template<
typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
66 template<
typename DescriptionT = Aws::String>
76 template<
typename RepositoryT = Aws::String>
77 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet =
true; m_repository = std::forward<RepositoryT>(value); }
78 template<
typename RepositoryT = Aws::String>
114 template<
typename ComputeRoleArnT = Aws::String>
115 void SetComputeRoleArn(ComputeRoleArnT&& value) { m_computeRoleArnHasBeenSet =
true; m_computeRoleArn = std::forward<ComputeRoleArnT>(value); }
116 template<
typename ComputeRoleArnT = Aws::String>
127 template<
typename IamServiceRoleArnT = Aws::String>
128 void SetIamServiceRoleArn(IamServiceRoleArnT&& value) { m_iamServiceRoleArnHasBeenSet =
true; m_iamServiceRoleArn = std::forward<IamServiceRoleArnT>(value); }
129 template<
typename IamServiceRoleArnT = Aws::String>
151 template<
typename OauthTokenT = Aws::String>
152 void SetOauthToken(OauthTokenT&& value) { m_oauthTokenHasBeenSet =
true; m_oauthToken = std::forward<OauthTokenT>(value); }
153 template<
typename OauthTokenT = Aws::String>
175 template<
typename AccessTokenT = Aws::String>
176 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet =
true; m_accessToken = std::forward<AccessTokenT>(value); }
177 template<
typename AccessTokenT = Aws::String>
190 template<
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
191 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet =
true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
192 template<
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
194 template<
typename EnvironmentVariablesKeyT = Aws::String,
typename EnvironmentVariablesValueT = Aws::String>
196 m_environmentVariablesHasBeenSet =
true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
return *
this;
228 inline void SetEnableBasicAuth(
bool value) { m_enableBasicAuthHasBeenSet =
true; m_enableBasicAuth = value; }
240 template<
typename BasicAuthCredentialsT = Aws::String>
241 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) { m_basicAuthCredentialsHasBeenSet =
true; m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value); }
242 template<
typename BasicAuthCredentialsT = Aws::String>
252 template<
typename CustomRulesT = Aws::Vector<CustomRule>>
253 void SetCustomRules(CustomRulesT&& value) { m_customRulesHasBeenSet =
true; m_customRules = std::forward<CustomRulesT>(value); }
254 template<
typename CustomRulesT = Aws::Vector<CustomRule>>
256 template<
typename CustomRulesT = CustomRule>
257 CreateAppRequest&
AddCustomRules(CustomRulesT&& value) { m_customRulesHasBeenSet =
true; m_customRules.emplace_back(std::forward<CustomRulesT>(value));
return *
this; }
266 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
267 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
268 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
270 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
272 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
282 template<
typename BuildSpecT = Aws::String>
283 void SetBuildSpec(BuildSpecT&& value) { m_buildSpecHasBeenSet =
true; m_buildSpec = std::forward<BuildSpecT>(value); }
284 template<
typename BuildSpecT = Aws::String>
294 template<
typename CustomHeadersT = Aws::String>
295 void SetCustomHeaders(CustomHeadersT&& value) { m_customHeadersHasBeenSet =
true; m_customHeaders = std::forward<CustomHeadersT>(value); }
296 template<
typename CustomHeadersT = Aws::String>
316 template<
typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
317 void SetAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) { m_autoBranchCreationPatternsHasBeenSet =
true; m_autoBranchCreationPatterns = std::forward<AutoBranchCreationPatternsT>(value); }
318 template<
typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
320 template<
typename AutoBranchCreationPatternsT = Aws::String>
321 CreateAppRequest&
AddAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) { m_autoBranchCreationPatternsHasBeenSet =
true; m_autoBranchCreationPatterns.emplace_back(std::forward<AutoBranchCreationPatternsT>(value));
return *
this; }
330 template<
typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
331 void SetAutoBranchCreationConfig(AutoBranchCreationConfigT&& value) { m_autoBranchCreationConfigHasBeenSet =
true; m_autoBranchCreationConfig = std::forward<AutoBranchCreationConfigT>(value); }
332 template<
typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
343 template<
typename JobConfigT = JobConfig>
344 void SetJobConfig(JobConfigT&& value) { m_jobConfigHasBeenSet =
true; m_jobConfig = std::forward<JobConfigT>(value); }
345 template<
typename JobConfigT = JobConfig>
355 template<
typename CacheConfigT = CacheConfig>
356 void SetCacheConfig(CacheConfigT&& value) { m_cacheConfigHasBeenSet =
true; m_cacheConfig = std::forward<CacheConfigT>(value); }
357 template<
typename CacheConfigT = CacheConfig>
363 bool m_nameHasBeenSet =
false;
366 bool m_descriptionHasBeenSet =
false;
369 bool m_repositoryHasBeenSet =
false;
372 bool m_platformHasBeenSet =
false;
375 bool m_computeRoleArnHasBeenSet =
false;
378 bool m_iamServiceRoleArnHasBeenSet =
false;
381 bool m_oauthTokenHasBeenSet =
false;
384 bool m_accessTokenHasBeenSet =
false;
387 bool m_environmentVariablesHasBeenSet =
false;
389 bool m_enableBranchAutoBuild{
false};
390 bool m_enableBranchAutoBuildHasBeenSet =
false;
392 bool m_enableBranchAutoDeletion{
false};
393 bool m_enableBranchAutoDeletionHasBeenSet =
false;
395 bool m_enableBasicAuth{
false};
396 bool m_enableBasicAuthHasBeenSet =
false;
399 bool m_basicAuthCredentialsHasBeenSet =
false;
402 bool m_customRulesHasBeenSet =
false;
405 bool m_tagsHasBeenSet =
false;
408 bool m_buildSpecHasBeenSet =
false;
411 bool m_customHeadersHasBeenSet =
false;
413 bool m_enableAutoBranchCreation{
false};
414 bool m_enableAutoBranchCreationHasBeenSet =
false;
417 bool m_autoBranchCreationPatternsHasBeenSet =
false;
419 AutoBranchCreationConfig m_autoBranchCreationConfig;
420 bool m_autoBranchCreationConfigHasBeenSet =
false;
422 JobConfig m_jobConfig;
423 bool m_jobConfigHasBeenSet =
false;
425 CacheConfig m_cacheConfig;
426 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