@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateAppRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The request structure used to create apps in Amplify.
NOOP
Constructor and Description |
---|
CreateAppRequest() |
Modifier and Type | Method and Description |
---|---|
CreateAppRequest |
addEnvironmentVariablesEntry(String key,
String value)
Add a single EnvironmentVariables entry
|
CreateAppRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateAppRequest |
clearEnvironmentVariablesEntries()
Removes all the entries added into EnvironmentVariables.
|
CreateAppRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateAppRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAccessToken()
The personal access token for a third-party source control system for an Amplify app.
|
AutoBranchCreationConfig |
getAutoBranchCreationConfig()
The automated branch creation configuration for an Amplify app.
|
List<String> |
getAutoBranchCreationPatterns()
The automated branch creation glob patterns for an Amplify app.
|
String |
getBasicAuthCredentials()
The credentials for basic authorization for an Amplify app.
|
String |
getBuildSpec()
The build specification (build spec) for an Amplify app.
|
String |
getCustomHeaders()
The custom HTTP headers for an Amplify app.
|
List<CustomRule> |
getCustomRules()
The custom rewrite and redirect rules for an Amplify app.
|
String |
getDescription()
The description for an Amplify app.
|
Boolean |
getEnableAutoBranchCreation()
Enables automated branch creation for an Amplify app.
|
Boolean |
getEnableBasicAuth()
Enables basic authorization for an Amplify app.
|
Boolean |
getEnableBranchAutoBuild()
Enables the auto building of branches for an Amplify app.
|
Boolean |
getEnableBranchAutoDeletion()
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
|
Map<String,String> |
getEnvironmentVariables()
The environment variables map for an Amplify app.
|
String |
getIamServiceRoleArn()
The AWS Identity and Access Management (IAM) service role for an Amplify app.
|
String |
getName()
The name for an Amplify app.
|
String |
getOauthToken()
The OAuth token for a third-party source control system for an Amplify app.
|
String |
getPlatform()
The platform or framework for an Amplify app.
|
String |
getRepository()
The repository for an Amplify app.
|
Map<String,String> |
getTags()
The tag for an Amplify app.
|
int |
hashCode() |
Boolean |
isEnableAutoBranchCreation()
Enables automated branch creation for an Amplify app.
|
Boolean |
isEnableBasicAuth()
Enables basic authorization for an Amplify app.
|
Boolean |
isEnableBranchAutoBuild()
Enables the auto building of branches for an Amplify app.
|
Boolean |
isEnableBranchAutoDeletion()
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
|
void |
setAccessToken(String accessToken)
The personal access token for a third-party source control system for an Amplify app.
|
void |
setAutoBranchCreationConfig(AutoBranchCreationConfig autoBranchCreationConfig)
The automated branch creation configuration for an Amplify app.
|
void |
setAutoBranchCreationPatterns(Collection<String> autoBranchCreationPatterns)
The automated branch creation glob patterns for an Amplify app.
|
void |
setBasicAuthCredentials(String basicAuthCredentials)
The credentials for basic authorization for an Amplify app.
|
void |
setBuildSpec(String buildSpec)
The build specification (build spec) for an Amplify app.
|
void |
setCustomHeaders(String customHeaders)
The custom HTTP headers for an Amplify app.
|
void |
setCustomRules(Collection<CustomRule> customRules)
The custom rewrite and redirect rules for an Amplify app.
|
void |
setDescription(String description)
The description for an Amplify app.
|
void |
setEnableAutoBranchCreation(Boolean enableAutoBranchCreation)
Enables automated branch creation for an Amplify app.
|
void |
setEnableBasicAuth(Boolean enableBasicAuth)
Enables basic authorization for an Amplify app.
|
void |
setEnableBranchAutoBuild(Boolean enableBranchAutoBuild)
Enables the auto building of branches for an Amplify app.
|
void |
setEnableBranchAutoDeletion(Boolean enableBranchAutoDeletion)
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
|
void |
setEnvironmentVariables(Map<String,String> environmentVariables)
The environment variables map for an Amplify app.
|
void |
setIamServiceRoleArn(String iamServiceRoleArn)
The AWS Identity and Access Management (IAM) service role for an Amplify app.
|
void |
setName(String name)
The name for an Amplify app.
|
void |
setOauthToken(String oauthToken)
The OAuth token for a third-party source control system for an Amplify app.
|
void |
setPlatform(String platform)
The platform or framework for an Amplify app.
|
void |
setRepository(String repository)
The repository for an Amplify app.
|
void |
setTags(Map<String,String> tags)
The tag for an Amplify app.
|
String |
toString()
Returns a string representation of this object.
|
CreateAppRequest |
withAccessToken(String accessToken)
The personal access token for a third-party source control system for an Amplify app.
|
CreateAppRequest |
withAutoBranchCreationConfig(AutoBranchCreationConfig autoBranchCreationConfig)
The automated branch creation configuration for an Amplify app.
|
CreateAppRequest |
withAutoBranchCreationPatterns(Collection<String> autoBranchCreationPatterns)
The automated branch creation glob patterns for an Amplify app.
|
CreateAppRequest |
withAutoBranchCreationPatterns(String... autoBranchCreationPatterns)
The automated branch creation glob patterns for an Amplify app.
|
CreateAppRequest |
withBasicAuthCredentials(String basicAuthCredentials)
The credentials for basic authorization for an Amplify app.
|
CreateAppRequest |
withBuildSpec(String buildSpec)
The build specification (build spec) for an Amplify app.
|
CreateAppRequest |
withCustomHeaders(String customHeaders)
The custom HTTP headers for an Amplify app.
|
CreateAppRequest |
withCustomRules(Collection<CustomRule> customRules)
The custom rewrite and redirect rules for an Amplify app.
|
CreateAppRequest |
withCustomRules(CustomRule... customRules)
The custom rewrite and redirect rules for an Amplify app.
|
CreateAppRequest |
withDescription(String description)
The description for an Amplify app.
|
CreateAppRequest |
withEnableAutoBranchCreation(Boolean enableAutoBranchCreation)
Enables automated branch creation for an Amplify app.
|
CreateAppRequest |
withEnableBasicAuth(Boolean enableBasicAuth)
Enables basic authorization for an Amplify app.
|
CreateAppRequest |
withEnableBranchAutoBuild(Boolean enableBranchAutoBuild)
Enables the auto building of branches for an Amplify app.
|
CreateAppRequest |
withEnableBranchAutoDeletion(Boolean enableBranchAutoDeletion)
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
|
CreateAppRequest |
withEnvironmentVariables(Map<String,String> environmentVariables)
The environment variables map for an Amplify app.
|
CreateAppRequest |
withIamServiceRoleArn(String iamServiceRoleArn)
The AWS Identity and Access Management (IAM) service role for an Amplify app.
|
CreateAppRequest |
withName(String name)
The name for an Amplify app.
|
CreateAppRequest |
withOauthToken(String oauthToken)
The OAuth token for a third-party source control system for an Amplify app.
|
CreateAppRequest |
withPlatform(Platform platform)
The platform or framework for an Amplify app.
|
CreateAppRequest |
withPlatform(String platform)
The platform or framework for an Amplify app.
|
CreateAppRequest |
withRepository(String repository)
The repository for an Amplify app.
|
CreateAppRequest |
withTags(Map<String,String> tags)
The tag for an Amplify app.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name for an Amplify app.
name
- The name for an Amplify app.public String getName()
The name for an Amplify app.
public CreateAppRequest withName(String name)
The name for an Amplify app.
name
- The name for an Amplify app.public void setDescription(String description)
The description for an Amplify app.
description
- The description for an Amplify app.public String getDescription()
The description for an Amplify app.
public CreateAppRequest withDescription(String description)
The description for an Amplify app.
description
- The description for an Amplify app.public void setRepository(String repository)
The repository for an Amplify app.
repository
- The repository for an Amplify app.public String getRepository()
The repository for an Amplify app.
public CreateAppRequest withRepository(String repository)
The repository for an Amplify app.
repository
- The repository for an Amplify app.public void setPlatform(String platform)
The platform or framework for an Amplify app.
platform
- The platform or framework for an Amplify app.Platform
public String getPlatform()
The platform or framework for an Amplify app.
Platform
public CreateAppRequest withPlatform(String platform)
The platform or framework for an Amplify app.
platform
- The platform or framework for an Amplify app.Platform
public CreateAppRequest withPlatform(Platform platform)
The platform or framework for an Amplify app.
platform
- The platform or framework for an Amplify app.Platform
public void setIamServiceRoleArn(String iamServiceRoleArn)
The AWS Identity and Access Management (IAM) service role for an Amplify app.
iamServiceRoleArn
- The AWS Identity and Access Management (IAM) service role for an Amplify app.public String getIamServiceRoleArn()
The AWS Identity and Access Management (IAM) service role for an Amplify app.
public CreateAppRequest withIamServiceRoleArn(String iamServiceRoleArn)
The AWS Identity and Access Management (IAM) service role for an Amplify app.
iamServiceRoleArn
- The AWS Identity and Access Management (IAM) service role for an Amplify app.public void setOauthToken(String oauthToken)
The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key. The OAuth token is not stored.
oauthToken
- The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to
create a webhook and a read-only deploy key. The OAuth token is not stored.public String getOauthToken()
The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key. The OAuth token is not stored.
public CreateAppRequest withOauthToken(String oauthToken)
The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key. The OAuth token is not stored.
oauthToken
- The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to
create a webhook and a read-only deploy key. The OAuth token is not stored.public void setAccessToken(String accessToken)
The personal access token for a third-party source control system for an Amplify app. The personal access token is used to create a webhook and a read-only deploy key. The token is not stored.
accessToken
- The personal access token for a third-party source control system for an Amplify app. The personal access
token is used to create a webhook and a read-only deploy key. The token is not stored.public String getAccessToken()
The personal access token for a third-party source control system for an Amplify app. The personal access token is used to create a webhook and a read-only deploy key. The token is not stored.
public CreateAppRequest withAccessToken(String accessToken)
The personal access token for a third-party source control system for an Amplify app. The personal access token is used to create a webhook and a read-only deploy key. The token is not stored.
accessToken
- The personal access token for a third-party source control system for an Amplify app. The personal access
token is used to create a webhook and a read-only deploy key. The token is not stored.public Map<String,String> getEnvironmentVariables()
The environment variables map for an Amplify app.
public void setEnvironmentVariables(Map<String,String> environmentVariables)
The environment variables map for an Amplify app.
environmentVariables
- The environment variables map for an Amplify app.public CreateAppRequest withEnvironmentVariables(Map<String,String> environmentVariables)
The environment variables map for an Amplify app.
environmentVariables
- The environment variables map for an Amplify app.public CreateAppRequest addEnvironmentVariablesEntry(String key, String value)
public CreateAppRequest clearEnvironmentVariablesEntries()
public void setEnableBranchAutoBuild(Boolean enableBranchAutoBuild)
Enables the auto building of branches for an Amplify app.
enableBranchAutoBuild
- Enables the auto building of branches for an Amplify app.public Boolean getEnableBranchAutoBuild()
Enables the auto building of branches for an Amplify app.
public CreateAppRequest withEnableBranchAutoBuild(Boolean enableBranchAutoBuild)
Enables the auto building of branches for an Amplify app.
enableBranchAutoBuild
- Enables the auto building of branches for an Amplify app.public Boolean isEnableBranchAutoBuild()
Enables the auto building of branches for an Amplify app.
public void setEnableBranchAutoDeletion(Boolean enableBranchAutoDeletion)
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
enableBranchAutoDeletion
- Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git
repository.public Boolean getEnableBranchAutoDeletion()
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
public CreateAppRequest withEnableBranchAutoDeletion(Boolean enableBranchAutoDeletion)
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
enableBranchAutoDeletion
- Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git
repository.public Boolean isEnableBranchAutoDeletion()
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
public void setEnableBasicAuth(Boolean enableBasicAuth)
Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.
enableBasicAuth
- Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.public Boolean getEnableBasicAuth()
Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.
public CreateAppRequest withEnableBasicAuth(Boolean enableBasicAuth)
Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.
enableBasicAuth
- Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.public Boolean isEnableBasicAuth()
Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.
public void setBasicAuthCredentials(String basicAuthCredentials)
The credentials for basic authorization for an Amplify app.
basicAuthCredentials
- The credentials for basic authorization for an Amplify app.public String getBasicAuthCredentials()
The credentials for basic authorization for an Amplify app.
public CreateAppRequest withBasicAuthCredentials(String basicAuthCredentials)
The credentials for basic authorization for an Amplify app.
basicAuthCredentials
- The credentials for basic authorization for an Amplify app.public List<CustomRule> getCustomRules()
The custom rewrite and redirect rules for an Amplify app.
public void setCustomRules(Collection<CustomRule> customRules)
The custom rewrite and redirect rules for an Amplify app.
customRules
- The custom rewrite and redirect rules for an Amplify app.public CreateAppRequest withCustomRules(CustomRule... customRules)
The custom rewrite and redirect rules for an Amplify app.
NOTE: This method appends the values to the existing list (if any). Use
setCustomRules(java.util.Collection)
or withCustomRules(java.util.Collection)
if you want to
override the existing values.
customRules
- The custom rewrite and redirect rules for an Amplify app.public CreateAppRequest withCustomRules(Collection<CustomRule> customRules)
The custom rewrite and redirect rules for an Amplify app.
customRules
- The custom rewrite and redirect rules for an Amplify app.public Map<String,String> getTags()
The tag for an Amplify app.
public void setTags(Map<String,String> tags)
The tag for an Amplify app.
tags
- The tag for an Amplify app.public CreateAppRequest withTags(Map<String,String> tags)
The tag for an Amplify app.
tags
- The tag for an Amplify app.public CreateAppRequest addTagsEntry(String key, String value)
public CreateAppRequest clearTagsEntries()
public void setBuildSpec(String buildSpec)
The build specification (build spec) for an Amplify app.
buildSpec
- The build specification (build spec) for an Amplify app.public String getBuildSpec()
The build specification (build spec) for an Amplify app.
public CreateAppRequest withBuildSpec(String buildSpec)
The build specification (build spec) for an Amplify app.
buildSpec
- The build specification (build spec) for an Amplify app.public void setCustomHeaders(String customHeaders)
The custom HTTP headers for an Amplify app.
customHeaders
- The custom HTTP headers for an Amplify app.public String getCustomHeaders()
The custom HTTP headers for an Amplify app.
public CreateAppRequest withCustomHeaders(String customHeaders)
The custom HTTP headers for an Amplify app.
customHeaders
- The custom HTTP headers for an Amplify app.public void setEnableAutoBranchCreation(Boolean enableAutoBranchCreation)
Enables automated branch creation for an Amplify app.
enableAutoBranchCreation
- Enables automated branch creation for an Amplify app.public Boolean getEnableAutoBranchCreation()
Enables automated branch creation for an Amplify app.
public CreateAppRequest withEnableAutoBranchCreation(Boolean enableAutoBranchCreation)
Enables automated branch creation for an Amplify app.
enableAutoBranchCreation
- Enables automated branch creation for an Amplify app.public Boolean isEnableAutoBranchCreation()
Enables automated branch creation for an Amplify app.
public List<String> getAutoBranchCreationPatterns()
The automated branch creation glob patterns for an Amplify app.
public void setAutoBranchCreationPatterns(Collection<String> autoBranchCreationPatterns)
The automated branch creation glob patterns for an Amplify app.
autoBranchCreationPatterns
- The automated branch creation glob patterns for an Amplify app.public CreateAppRequest withAutoBranchCreationPatterns(String... autoBranchCreationPatterns)
The automated branch creation glob patterns for an Amplify app.
NOTE: This method appends the values to the existing list (if any). Use
setAutoBranchCreationPatterns(java.util.Collection)
or
withAutoBranchCreationPatterns(java.util.Collection)
if you want to override the existing values.
autoBranchCreationPatterns
- The automated branch creation glob patterns for an Amplify app.public CreateAppRequest withAutoBranchCreationPatterns(Collection<String> autoBranchCreationPatterns)
The automated branch creation glob patterns for an Amplify app.
autoBranchCreationPatterns
- The automated branch creation glob patterns for an Amplify app.public void setAutoBranchCreationConfig(AutoBranchCreationConfig autoBranchCreationConfig)
The automated branch creation configuration for an Amplify app.
autoBranchCreationConfig
- The automated branch creation configuration for an Amplify app.public AutoBranchCreationConfig getAutoBranchCreationConfig()
The automated branch creation configuration for an Amplify app.
public CreateAppRequest withAutoBranchCreationConfig(AutoBranchCreationConfig autoBranchCreationConfig)
The automated branch creation configuration for an Amplify app.
autoBranchCreationConfig
- The automated branch creation configuration for an Amplify app.public String toString()
toString
in class Object
Object.toString()
public CreateAppRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()