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 AppIdT = Aws::String>
53 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet =
true; m_appId = std::forward<AppIdT>(value); }
54 template<
typename AppIdT = Aws::String>
64 template<
typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
66 template<
typename NameT = Aws::String>
76 template<
typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
78 template<
typename DescriptionT = Aws::String>
109 template<
typename ComputeRoleArnT = Aws::String>
110 void SetComputeRoleArn(ComputeRoleArnT&& value) { m_computeRoleArnHasBeenSet =
true; m_computeRoleArn = std::forward<ComputeRoleArnT>(value); }
111 template<
typename ComputeRoleArnT = Aws::String>
122 template<
typename IamServiceRoleArnT = Aws::String>
123 void SetIamServiceRoleArn(IamServiceRoleArnT&& value) { m_iamServiceRoleArnHasBeenSet =
true; m_iamServiceRoleArn = std::forward<IamServiceRoleArnT>(value); }
124 template<
typename IamServiceRoleArnT = Aws::String>
134 template<
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
135 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet =
true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
136 template<
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
138 template<
typename EnvironmentVariablesKeyT = Aws::String,
typename EnvironmentVariablesValueT = Aws::String>
140 m_environmentVariablesHasBeenSet =
true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
return *
this;
171 inline void SetEnableBasicAuth(
bool value) { m_enableBasicAuthHasBeenSet =
true; m_enableBasicAuth = value; }
183 template<
typename BasicAuthCredentialsT = Aws::String>
184 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) { m_basicAuthCredentialsHasBeenSet =
true; m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value); }
185 template<
typename BasicAuthCredentialsT = Aws::String>
195 template<
typename CustomRulesT = Aws::Vector<CustomRule>>
196 void SetCustomRules(CustomRulesT&& value) { m_customRulesHasBeenSet =
true; m_customRules = std::forward<CustomRulesT>(value); }
197 template<
typename CustomRulesT = Aws::Vector<CustomRule>>
199 template<
typename CustomRulesT = CustomRule>
200 UpdateAppRequest&
AddCustomRules(CustomRulesT&& value) { m_customRulesHasBeenSet =
true; m_customRules.emplace_back(std::forward<CustomRulesT>(value));
return *
this; }
209 template<
typename BuildSpecT = Aws::String>
210 void SetBuildSpec(BuildSpecT&& value) { m_buildSpecHasBeenSet =
true; m_buildSpec = std::forward<BuildSpecT>(value); }
211 template<
typename BuildSpecT = Aws::String>
221 template<
typename CustomHeadersT = Aws::String>
222 void SetCustomHeaders(CustomHeadersT&& value) { m_customHeadersHasBeenSet =
true; m_customHeaders = std::forward<CustomHeadersT>(value); }
223 template<
typename CustomHeadersT = Aws::String>
244 template<
typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
245 void SetAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) { m_autoBranchCreationPatternsHasBeenSet =
true; m_autoBranchCreationPatterns = std::forward<AutoBranchCreationPatternsT>(value); }
246 template<
typename AutoBranchCreationPatternsT = Aws::Vector<Aws::String>>
248 template<
typename AutoBranchCreationPatternsT = Aws::String>
249 UpdateAppRequest&
AddAutoBranchCreationPatterns(AutoBranchCreationPatternsT&& value) { m_autoBranchCreationPatternsHasBeenSet =
true; m_autoBranchCreationPatterns.emplace_back(std::forward<AutoBranchCreationPatternsT>(value));
return *
this; }
258 template<
typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
259 void SetAutoBranchCreationConfig(AutoBranchCreationConfigT&& value) { m_autoBranchCreationConfigHasBeenSet =
true; m_autoBranchCreationConfig = std::forward<AutoBranchCreationConfigT>(value); }
260 template<
typename AutoBranchCreationConfigT = AutoBranchCreationConfig>
270 template<
typename RepositoryT = Aws::String>
271 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet =
true; m_repository = std::forward<RepositoryT>(value); }
272 template<
typename RepositoryT = Aws::String>
294 template<
typename OauthTokenT = Aws::String>
295 void SetOauthToken(OauthTokenT&& value) { m_oauthTokenHasBeenSet =
true; m_oauthToken = std::forward<OauthTokenT>(value); }
296 template<
typename OauthTokenT = Aws::String>
318 template<
typename AccessTokenT = Aws::String>
319 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet =
true; m_accessToken = std::forward<AccessTokenT>(value); }
320 template<
typename AccessTokenT = Aws::String>
331 template<
typename JobConfigT = JobConfig>
332 void SetJobConfig(JobConfigT&& value) { m_jobConfigHasBeenSet =
true; m_jobConfig = std::forward<JobConfigT>(value); }
333 template<
typename JobConfigT = JobConfig>
343 template<
typename CacheConfigT = CacheConfig>
344 void SetCacheConfig(CacheConfigT&& value) { m_cacheConfigHasBeenSet =
true; m_cacheConfig = std::forward<CacheConfigT>(value); }
345 template<
typename CacheConfigT = CacheConfig>
351 bool m_appIdHasBeenSet =
false;
354 bool m_nameHasBeenSet =
false;
357 bool m_descriptionHasBeenSet =
false;
360 bool m_platformHasBeenSet =
false;
363 bool m_computeRoleArnHasBeenSet =
false;
366 bool m_iamServiceRoleArnHasBeenSet =
false;
369 bool m_environmentVariablesHasBeenSet =
false;
371 bool m_enableBranchAutoBuild{
false};
372 bool m_enableBranchAutoBuildHasBeenSet =
false;
374 bool m_enableBranchAutoDeletion{
false};
375 bool m_enableBranchAutoDeletionHasBeenSet =
false;
377 bool m_enableBasicAuth{
false};
378 bool m_enableBasicAuthHasBeenSet =
false;
381 bool m_basicAuthCredentialsHasBeenSet =
false;
384 bool m_customRulesHasBeenSet =
false;
387 bool m_buildSpecHasBeenSet =
false;
390 bool m_customHeadersHasBeenSet =
false;
392 bool m_enableAutoBranchCreation{
false};
393 bool m_enableAutoBranchCreationHasBeenSet =
false;
396 bool m_autoBranchCreationPatternsHasBeenSet =
false;
398 AutoBranchCreationConfig m_autoBranchCreationConfig;
399 bool m_autoBranchCreationConfigHasBeenSet =
false;
402 bool m_repositoryHasBeenSet =
false;
405 bool m_oauthTokenHasBeenSet =
false;
408 bool m_accessTokenHasBeenSet =
false;
410 JobConfig m_jobConfig;
411 bool m_jobConfigHasBeenSet =
false;
413 CacheConfig m_cacheConfig;
414 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