Class App
- java.lang.Object
-
- software.amazon.awssdk.services.amplify.model.App
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<App.Builder,App>
@Generated("software.amazon.awssdk:codegen") public final class App extends Object implements SdkPojo, Serializable, ToCopyableBuilder<App.Builder,App>
Represents the different branches of a repository for building, deploying, and hosting an Amplify app.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceApp.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringappArn()The Amazon Resource Name (ARN) of the Amplify app.StringappId()The unique ID of the Amplify app.AutoBranchCreationConfigautoBranchCreationConfig()Describes the automated branch creation configuration for the Amplify app.List<String>autoBranchCreationPatterns()Describes the automated branch creation glob patterns for the Amplify app.StringbasicAuthCredentials()The basic authorization credentials for branches for the Amplify app.static App.Builderbuilder()StringbuildSpec()Describes the content of the build specification (build spec) for the Amplify app.InstantcreateTime()Creates a date and time for the Amplify app.StringcustomHeaders()Describes the custom HTTP headers for the Amplify app.List<CustomRule>customRules()Describes the custom redirect and rewrite rules for the Amplify app.StringdefaultDomain()The default domain for the Amplify app.Stringdescription()The description for the Amplify app.BooleanenableAutoBranchCreation()Enables automated branch creation for the Amplify app.BooleanenableBasicAuth()Enables basic authorization for the Amplify app's branches.BooleanenableBranchAutoBuild()Enables the auto-building of branches for the Amplify app.BooleanenableBranchAutoDeletion()Automatically disconnect a branch in the Amplify console when you delete a branch from your Git repository.Map<String,String>environmentVariables()The environment variables for the Amplify app.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAutoBranchCreationPatterns()For responses, this returns true if the service returned a value for the AutoBranchCreationPatterns property.booleanhasCustomRules()For responses, this returns true if the service returned a value for the CustomRules property.booleanhasEnvironmentVariables()For responses, this returns true if the service returned a value for the EnvironmentVariables property.inthashCode()booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.StringiamServiceRoleArn()The AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) of the Amplify app.Stringname()The name for the Amplify app.Platformplatform()The platform for the Amplify app.StringplatformAsString()The platform for the Amplify app.ProductionBranchproductionBranch()Describes the information about a production branch of the Amplify app.Stringrepository()The Git repository for the Amplify app.RepositoryCloneMethodrepositoryCloneMethod()StringrepositoryCloneMethodAsString()List<SdkField<?>>sdkFields()static Class<? extends App.Builder>serializableBuilderClass()Map<String,String>tags()The tag for the Amplify app.App.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdateTime()Updates the date and time for the Amplify app.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
appId
public final String appId()
The unique ID of the Amplify app.
- Returns:
- The unique ID of the Amplify app.
-
appArn
public final String appArn()
The Amazon Resource Name (ARN) of the Amplify app.
- Returns:
- The Amazon Resource Name (ARN) of the Amplify app.
-
name
public final String name()
The name for the Amplify app.
- Returns:
- The name for the Amplify app.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
tags
public final Map<String,String> tags()
The tag for the Amplify app.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- The tag for the Amplify app.
-
description
public final String description()
The description for the Amplify app.
- Returns:
- The description for the Amplify app.
-
repository
public final String repository()
The Git repository for the Amplify app.
- Returns:
- The Git repository for the Amplify app.
-
platform
public final Platform platform()
The platform for the Amplify app. For a static app, set the platform type to
WEB. For a dynamic server-side rendered (SSR) app, set the platform type toWEB_COMPUTE. For an app requiring Amplify Hosting's original SSR support only, set the platform type toWEB_DYNAMIC.If the service returns an enum value that is not available in the current SDK version,
platformwill returnPlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromplatformAsString().- Returns:
- The platform for the Amplify app. For a static app, set the platform type to
WEB. For a dynamic server-side rendered (SSR) app, set the platform type toWEB_COMPUTE. For an app requiring Amplify Hosting's original SSR support only, set the platform type toWEB_DYNAMIC. - See Also:
Platform
-
platformAsString
public final String platformAsString()
The platform for the Amplify app. For a static app, set the platform type to
WEB. For a dynamic server-side rendered (SSR) app, set the platform type toWEB_COMPUTE. For an app requiring Amplify Hosting's original SSR support only, set the platform type toWEB_DYNAMIC.If the service returns an enum value that is not available in the current SDK version,
platformwill returnPlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromplatformAsString().- Returns:
- The platform for the Amplify app. For a static app, set the platform type to
WEB. For a dynamic server-side rendered (SSR) app, set the platform type toWEB_COMPUTE. For an app requiring Amplify Hosting's original SSR support only, set the platform type toWEB_DYNAMIC. - See Also:
Platform
-
createTime
public final Instant createTime()
Creates a date and time for the Amplify app.
- Returns:
- Creates a date and time for the Amplify app.
-
updateTime
public final Instant updateTime()
Updates the date and time for the Amplify app.
- Returns:
- Updates the date and time for the Amplify app.
-
iamServiceRoleArn
public final String iamServiceRoleArn()
The AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) of the Amplify app.
- Returns:
- The AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) of the Amplify app.
-
hasEnvironmentVariables
public final boolean hasEnvironmentVariables()
For responses, this returns true if the service returned a value for the EnvironmentVariables property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
environmentVariables
public final Map<String,String> environmentVariables()
The environment variables for the Amplify app.
For a list of the environment variables that are accessible to Amplify by default, see Amplify Environment variables in the Amplify Hosting User Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEnvironmentVariables()method.- Returns:
- The environment variables for the Amplify app.
For a list of the environment variables that are accessible to Amplify by default, see Amplify Environment variables in the Amplify Hosting User Guide.
-
defaultDomain
public final String defaultDomain()
The default domain for the Amplify app.
- Returns:
- The default domain for the Amplify app.
-
enableBranchAutoBuild
public final Boolean enableBranchAutoBuild()
Enables the auto-building of branches for the Amplify app.
- Returns:
- Enables the auto-building of branches for the Amplify app.
-
enableBranchAutoDeletion
public final Boolean enableBranchAutoDeletion()
Automatically disconnect a branch in the Amplify console when you delete a branch from your Git repository.
- Returns:
- Automatically disconnect a branch in the Amplify console when you delete a branch from your Git repository.
-
enableBasicAuth
public final Boolean enableBasicAuth()
Enables basic authorization for the Amplify app's branches.
- Returns:
- Enables basic authorization for the Amplify app's branches.
-
basicAuthCredentials
public final String basicAuthCredentials()
The basic authorization credentials for branches for the Amplify app. You must base64-encode the authorization credentials and provide them in the format
user:password.- Returns:
- The basic authorization credentials for branches for the Amplify app. You must base64-encode the
authorization credentials and provide them in the format
user:password.
-
hasCustomRules
public final boolean hasCustomRules()
For responses, this returns true if the service returned a value for the CustomRules property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
customRules
public final List<CustomRule> customRules()
Describes the custom redirect and rewrite rules for the Amplify app.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCustomRules()method.- Returns:
- Describes the custom redirect and rewrite rules for the Amplify app.
-
productionBranch
public final ProductionBranch productionBranch()
Describes the information about a production branch of the Amplify app.
- Returns:
- Describes the information about a production branch of the Amplify app.
-
buildSpec
public final String buildSpec()
Describes the content of the build specification (build spec) for the Amplify app.
- Returns:
- Describes the content of the build specification (build spec) for the Amplify app.
-
customHeaders
public final String customHeaders()
Describes the custom HTTP headers for the Amplify app.
- Returns:
- Describes the custom HTTP headers for the Amplify app.
-
enableAutoBranchCreation
public final Boolean enableAutoBranchCreation()
Enables automated branch creation for the Amplify app.
- Returns:
- Enables automated branch creation for the Amplify app.
-
hasAutoBranchCreationPatterns
public final boolean hasAutoBranchCreationPatterns()
For responses, this returns true if the service returned a value for the AutoBranchCreationPatterns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
autoBranchCreationPatterns
public final List<String> autoBranchCreationPatterns()
Describes the automated branch creation glob patterns for the Amplify app.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAutoBranchCreationPatterns()method.- Returns:
- Describes the automated branch creation glob patterns for the Amplify app.
-
autoBranchCreationConfig
public final AutoBranchCreationConfig autoBranchCreationConfig()
Describes the automated branch creation configuration for the Amplify app.
- Returns:
- Describes the automated branch creation configuration for the Amplify app.
-
repositoryCloneMethod
public final RepositoryCloneMethod repositoryCloneMethod()
This is for internal use.
The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies
TOKENfor a GitHub repository,SIGV4for an Amazon Web Services CodeCommit repository, andSSHfor GitLab and Bitbucket repositories.If the service returns an enum value that is not available in the current SDK version,
repositoryCloneMethodwill returnRepositoryCloneMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrepositoryCloneMethodAsString().- Returns:
This is for internal use.
The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies
TOKENfor a GitHub repository,SIGV4for an Amazon Web Services CodeCommit repository, andSSHfor GitLab and Bitbucket repositories.- See Also:
RepositoryCloneMethod
-
repositoryCloneMethodAsString
public final String repositoryCloneMethodAsString()
This is for internal use.
The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies
TOKENfor a GitHub repository,SIGV4for an Amazon Web Services CodeCommit repository, andSSHfor GitLab and Bitbucket repositories.If the service returns an enum value that is not available in the current SDK version,
repositoryCloneMethodwill returnRepositoryCloneMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrepositoryCloneMethodAsString().- Returns:
This is for internal use.
The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies
TOKENfor a GitHub repository,SIGV4for an Amazon Web Services CodeCommit repository, andSSHfor GitLab and Bitbucket repositories.- See Also:
RepositoryCloneMethod
-
toBuilder
public App.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<App.Builder,App>
-
builder
public static App.Builder builder()
-
serializableBuilderClass
public static Class<? extends App.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-