Interface CreateBranchRequest.Builder
- All Superinterfaces:
AmplifyRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateBranchRequest.Builder,
,CreateBranchRequest> SdkBuilder<CreateBranchRequest.Builder,
,CreateBranchRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateBranchRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe unique ID for an Amplify app.default CreateBranchRequest.Builder
backend
(Consumer<Backend.Builder> backend) The backend for aBranch
of an Amplify app.The backend for aBranch
of an Amplify app.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 the branch.branchName
(String branchName) The name for the branch.The build specification (build spec) for the branch.description
(String description) The description for the branch.displayName
(String displayName) The display name for a branch.enableAutoBuild
(Boolean enableAutoBuild) Enables auto building for the branch.enableBasicAuth
(Boolean enableBasicAuth) Enables basic authorization for the branch.enableNotification
(Boolean enableNotification) Enables notifications for the branch.enablePerformanceMode
(Boolean enablePerformanceMode) Enables performance mode for the branch.enablePullRequestPreview
(Boolean enablePullRequestPreview) Enables pull request previews for this branch.environmentVariables
(Map<String, String> environmentVariables) The environment variables for the branch.The framework for the branch.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.pullRequestEnvironmentName
(String pullRequestEnvironmentName) The Amplify environment name for the pull request.Describes the current stage for the branch.Describes the current stage for the branch.The tag for the branch.The content Time To Live (TTL) for the website in seconds.Methods inherited from interface software.amazon.awssdk.services.amplify.model.AmplifyRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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
-
appId
The unique ID for an Amplify app.
- Parameters:
appId
- The unique ID for an Amplify app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branchName
The name for the branch.
- Parameters:
branchName
- The name for the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description for the branch.
- Parameters:
description
- The description for the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stage
Describes the current stage for the branch.
- Parameters:
stage
- Describes the current stage for the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stage
Describes the current stage for the branch.
- Parameters:
stage
- Describes the current stage for the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
framework
The framework for the branch.
- Parameters:
framework
- The framework for the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableNotification
Enables notifications for the branch.
- Parameters:
enableNotification
- Enables notifications for the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableAutoBuild
Enables auto building for the branch.
- Parameters:
enableAutoBuild
- Enables auto building for the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentVariables
The environment variables for the branch.
- Parameters:
environmentVariables
- The environment variables for the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
basicAuthCredentials
The basic authorization credentials for the branch. You must base64-encode the authorization credentials and provide them in the format
user:password
.- Parameters:
basicAuthCredentials
- The basic authorization credentials for the branch. 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.
-
enableBasicAuth
Enables basic authorization for the branch.
- Parameters:
enableBasicAuth
- Enables basic authorization for the branch.- 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.
-
tags
The tag for the branch.
- Parameters:
tags
- The tag for the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buildSpec
The build specification (build spec) for the branch.
- Parameters:
buildSpec
- The build specification (build spec) for the branch.- 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.
-
displayName
The display name for a branch. This is used as the default domain prefix.
- Parameters:
displayName
- The display name for a branch. This is used as the default domain prefix.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enablePullRequestPreview
Enables pull request previews for this branch.
- Parameters:
enablePullRequestPreview
- Enables pull request previews for this 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.
-
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
The backend for a
Branch
of an Amplify app. Use for a backend created from an CloudFormation stack.- Parameters:
backend
- The backend for aBranch
of an Amplify app. Use for a backend created from an CloudFormation stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backend
The backend for a
This is a convenience method that creates an instance of theBranch
of an Amplify app. Use for a backend created from an CloudFormation stack.Backend.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:
-
overrideConfiguration
CreateBranchRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateBranchRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-