Interface Branch.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Branch.Builder,
,Branch> SdkBuilder<Branch.Builder,
,Branch> SdkPojo
- Enclosing class:
Branch
-
Method Summary
Modifier and TypeMethodDescriptionactiveJobId
(String activeJobId) The ID of the active job for a branch of an Amplify app.associatedResources
(String... associatedResources) A list of custom resources that are linked to this branch.associatedResources
(Collection<String> associatedResources) A list of custom resources that are linked to this branch.default Branch.Builder
backend
(Consumer<Backend.Builder> backend) Sets the value of the Backend property for this object.Sets the value of the Backend property for this object.backendEnvironmentArn
(String backendEnvironmentArn) The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.basicAuthCredentials
(String basicAuthCredentials) The basic authorization credentials for a branch of an Amplify app.The Amazon Resource Name (ARN) for a branch that is part of an Amplify app.branchName
(String branchName) The name for the branch that is part of an Amplify app.The build specification (build spec) content for the branch of an Amplify app.createTime
(Instant createTime) The creation date and time for a branch that is part of an Amplify app.customDomains
(String... customDomains) The custom domains for a branch of an Amplify app.customDomains
(Collection<String> customDomains) The custom domains for a branch of an Amplify app.description
(String description) The description for the branch that is part of an Amplify app.destinationBranch
(String destinationBranch) The destination branch if the branch is a pull request branch.displayName
(String displayName) The display name for the branch.enableAutoBuild
(Boolean enableAutoBuild) Enables auto-building on push for a branch of an Amplify app.enableBasicAuth
(Boolean enableBasicAuth) Enables basic authorization for a branch of an Amplify app.enableNotification
(Boolean enableNotification) Enables notifications for a branch that is part of an Amplify app.enablePerformanceMode
(Boolean enablePerformanceMode) Enables performance mode for the branch.enablePullRequestPreview
(Boolean enablePullRequestPreview) Enables pull request previews for the branch.environmentVariables
(Map<String, String> environmentVariables) The environment variables specific to a branch of an Amplify app.The framework for a branch of an Amplify app.pullRequestEnvironmentName
(String pullRequestEnvironmentName) The Amplify environment name for the pull request.sourceBranch
(String sourceBranch) The source branch if the branch is a pull request branch.The current stage for the branch that is part of an Amplify app.The current stage for the branch that is part of an Amplify app.The tag for the branch of an Amplify app.thumbnailUrl
(String thumbnailUrl) The thumbnail URL for the branch of an Amplify app.totalNumberOfJobs
(String totalNumberOfJobs) The total number of jobs that are part of an Amplify app.The content Time to Live (TTL) for the website in seconds.updateTime
(Instant updateTime) The last updated date and time for a branch that is part of an Amplify app.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
branchArn
The Amazon Resource Name (ARN) for a branch that is part of an Amplify app.
- Parameters:
branchArn
- The Amazon Resource Name (ARN) for a branch that is part of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branchName
The name for the branch that is part of an Amplify app.
- Parameters:
branchName
- The name for the branch that is part of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description for the branch that is part of an Amplify app.
- Parameters:
description
- The description for the branch that is part of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag for the branch of an Amplify app.
- Parameters:
tags
- The tag for the branch of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stage
The current stage for the branch that is part of an Amplify app.
- Parameters:
stage
- The current stage for the branch that is part of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stage
The current stage for the branch that is part of an Amplify app.
- Parameters:
stage
- The current stage for the branch that is part of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
displayName
The display name for the branch. This is used as the default domain prefix.
- Parameters:
displayName
- The display name for the branch. This is used as the default domain prefix.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableNotification
Enables notifications for a branch that is part of an Amplify app.
- Parameters:
enableNotification
- Enables notifications for a branch that is part of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTime
The creation date and time for a branch that is part of an Amplify app.
- Parameters:
createTime
- The creation date and time for a branch that is part of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateTime
The last updated date and time for a branch that is part of an Amplify app.
- Parameters:
updateTime
- The last updated date and time for a branch that is part of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentVariables
The environment variables specific to a branch of an Amplify app.
- Parameters:
environmentVariables
- The environment variables specific to a branch of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableAutoBuild
Enables auto-building on push for a branch of an Amplify app.
- Parameters:
enableAutoBuild
- Enables auto-building on push for a branch of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDomains
The custom domains for a branch of an Amplify app.
- Parameters:
customDomains
- The custom domains for a branch of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDomains
The custom domains for a branch of an Amplify app.
- Parameters:
customDomains
- The custom domains for a branch of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
framework
The framework for a branch of an Amplify app.
- Parameters:
framework
- The framework for a branch of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeJobId
The ID of the active job for a branch of an Amplify app.
- Parameters:
activeJobId
- The ID of the active job for a branch of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalNumberOfJobs
The total number of jobs that are part of an Amplify app.
- Parameters:
totalNumberOfJobs
- The total number of jobs that are part of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableBasicAuth
Enables basic authorization for a branch of an Amplify app.
- Parameters:
enableBasicAuth
- Enables basic authorization for a branch of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enablePerformanceMode
Enables performance mode for the branch.
Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out.
- Parameters:
enablePerformanceMode
- Enables performance mode for the branch.Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
thumbnailUrl
The thumbnail URL for the branch of an Amplify app.
- Parameters:
thumbnailUrl
- The thumbnail URL for the branch of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
basicAuthCredentials
The basic authorization credentials for a branch of an Amplify app. You must base64-encode the authorization credentials and provide them in the format
user:password
.- Parameters:
basicAuthCredentials
- The basic authorization credentials for a branch of an Amplify app. You must base64-encode the authorization credentials and provide them in the formatuser:password
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buildSpec
The build specification (build spec) content for the branch of an Amplify app.
- Parameters:
buildSpec
- The build specification (build spec) content for the branch of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ttl
The content Time to Live (TTL) for the website in seconds.
- Parameters:
ttl
- The content Time to Live (TTL) for the website in seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedResources
A list of custom resources that are linked to this branch.
- Parameters:
associatedResources
- A list of custom resources that are linked to this branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedResources
A list of custom resources that are linked to this branch.
- Parameters:
associatedResources
- A list of custom resources that are linked to this branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enablePullRequestPreview
Enables pull request previews for the branch.
- Parameters:
enablePullRequestPreview
- Enables pull request previews for the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pullRequestEnvironmentName
The Amplify environment name for the pull request.
- Parameters:
pullRequestEnvironmentName
- The Amplify environment name for the pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationBranch
The destination branch if the branch is a pull request branch.
- Parameters:
destinationBranch
- The destination branch if the branch is a pull request branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceBranch
The source branch if the branch is a pull request branch.
- Parameters:
sourceBranch
- The source branch if the branch is a pull request branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backendEnvironmentArn
The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
- Parameters:
backendEnvironmentArn
- The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backend
Sets the value of the Backend property for this object.- Parameters:
backend
- The new value for the Backend property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backend
Sets the value of the Backend property for this object. This is a convenience method that creates an instance of theBackend.Builder
avoiding the need to create one manually viaBackend.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobackend(Backend)
.- Parameters:
backend
- a consumer that will call methods onBackend.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-