@Generated(value="software.amazon.awssdk:codegen") public final class UpdateAppRequest extends AmplifyRequest implements ToCopyableBuilder<UpdateAppRequest.Builder,UpdateAppRequest>
The request structure for the update app request.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdateAppRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accessToken()
The personal access token for a GitHub repository for an Amplify app.
|
String |
appId()
The unique ID for an Amplify app.
|
AutoBranchCreationConfig |
autoBranchCreationConfig()
The automated branch creation configuration for an Amplify app.
|
List<String> |
autoBranchCreationPatterns()
Describes the automated branch creation glob patterns for an Amplify app.
|
String |
basicAuthCredentials()
The basic authorization credentials for an Amplify app.
|
static UpdateAppRequest.Builder |
builder() |
String |
buildSpec()
The build specification (build spec) for an Amplify app.
|
String |
customHeaders()
The custom HTTP headers for an Amplify app.
|
List<CustomRule> |
customRules()
The custom redirect and rewrite rules for an Amplify app.
|
String |
description()
The description for an Amplify app.
|
Boolean |
enableAutoBranchCreation()
Enables automated branch creation for an Amplify app.
|
Boolean |
enableBasicAuth()
Enables basic authorization for an Amplify app.
|
Boolean |
enableBranchAutoBuild()
Enables branch auto-building for an Amplify app.
|
Boolean |
enableBranchAutoDeletion()
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
|
Map<String,String> |
environmentVariables()
The environment variables for an Amplify app.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAutoBranchCreationPatterns()
For responses, this returns true if the service returned a value for the AutoBranchCreationPatterns property.
|
boolean |
hasCustomRules()
For responses, this returns true if the service returned a value for the CustomRules property.
|
boolean |
hasEnvironmentVariables()
For responses, this returns true if the service returned a value for the EnvironmentVariables property.
|
int |
hashCode() |
String |
iamServiceRoleArn()
The AWS Identity and Access Management (IAM) service role for an Amplify app.
|
String |
name()
The name for an Amplify app.
|
String |
oauthToken()
The OAuth token for a third-party source control system for an Amplify app.
|
Platform |
platform()
The platform for the Amplify app.
|
String |
platformAsString()
The platform for the Amplify app.
|
String |
repository()
The name of the repository for an Amplify app
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UpdateAppRequest.Builder> |
serializableBuilderClass() |
UpdateAppRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String appId()
The unique ID for an Amplify app.
public final String name()
The name for an Amplify app.
public final String description()
The description for an Amplify app.
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 to WEB_COMPUTE. For an app requiring Amplify
Hosting's original SSR support only, set the platform type to WEB_DYNAMIC.
If the service returns an enum value that is not available in the current SDK version, platform will
return Platform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
platformAsString().
WEB. For a
dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE. For an app
requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC.Platformpublic 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 to WEB_COMPUTE. For an app requiring Amplify
Hosting's original SSR support only, set the platform type to WEB_DYNAMIC.
If the service returns an enum value that is not available in the current SDK version, platform will
return Platform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
platformAsString().
WEB. For a
dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE. For an app
requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC.Platformpublic final String iamServiceRoleArn()
The AWS Identity and Access Management (IAM) service role for an Amplify app.
public final boolean hasEnvironmentVariables()
isEmpty() 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.public final Map<String,String> environmentVariables()
The environment variables for an 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 hasEnvironmentVariables() method.
public final Boolean enableBranchAutoBuild()
Enables branch auto-building for an Amplify app.
public final Boolean enableBranchAutoDeletion()
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
public final Boolean enableBasicAuth()
Enables basic authorization for an Amplify app.
public final String basicAuthCredentials()
The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and
provide them in the format user:password.
user:password.public final boolean hasCustomRules()
isEmpty() 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.public final List<CustomRule> customRules()
The custom redirect and rewrite rules for an 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.
public final String buildSpec()
The build specification (build spec) for an Amplify app.
public final String customHeaders()
The custom HTTP headers for an Amplify app.
public final Boolean enableAutoBranchCreation()
Enables automated branch creation for an Amplify app.
public final boolean hasAutoBranchCreationPatterns()
isEmpty() 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.public final List<String> autoBranchCreationPatterns()
Describes the automated branch creation glob patterns for an 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.
public final AutoBranchCreationConfig autoBranchCreationConfig()
The automated branch creation configuration for an Amplify app.
public final String repository()
The name of the repository for an Amplify app
public final 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 using SSH cloning. The OAuth token is not stored.
Use oauthToken for repository providers other than GitHub, such as Bitbucket or CodeCommit.
To authorize access to GitHub as your repository provider, use accessToken.
You must specify either oauthToken or accessToken when you update an app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
Use oauthToken for repository providers other than GitHub, such as Bitbucket or CodeCommit.
To authorize access to GitHub as your repository provider, use accessToken.
You must specify either oauthToken or accessToken when you update an app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
public final String accessToken()
The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.
Use accessToken for GitHub repositories only. To authorize access to a repository provider such as
Bitbucket or CodeCommit, use oauthToken.
You must specify either accessToken or oauthToken when you update an app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
Use accessToken for GitHub repositories only. To authorize access to a repository provider
such as Bitbucket or CodeCommit, use oauthToken.
You must specify either accessToken or oauthToken when you update an app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
public UpdateAppRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpdateAppRequest.Builder,UpdateAppRequest>toBuilder in class AmplifyRequestpublic static UpdateAppRequest.Builder builder()
public static Class<? extends UpdateAppRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.