Interface CreateBranchRequest.Builder
-
- All Superinterfaces:
AmplifyRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateBranchRequest.Builder,CreateBranchRequest>,SdkBuilder<CreateBranchRequest.Builder,CreateBranchRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateBranchRequest
public static interface CreateBranchRequest.Builder extends AmplifyRequest.Builder, SdkPojo, CopyableBuilder<CreateBranchRequest.Builder,CreateBranchRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateBranchRequest.BuilderappId(String appId)The unique ID for an Amplify app.default CreateBranchRequest.Builderbackend(Consumer<Backend.Builder> backend)The backend for aBranchof an Amplify app.CreateBranchRequest.Builderbackend(Backend backend)The backend for aBranchof an Amplify app.CreateBranchRequest.BuilderbackendEnvironmentArn(String backendEnvironmentArn)The Amazon Resource Name (ARN) for a backend environment that is part of a Gen 1 Amplify app.CreateBranchRequest.BuilderbasicAuthCredentials(String basicAuthCredentials)The basic authorization credentials for the branch.CreateBranchRequest.BuilderbranchName(String branchName)The name for the branch.CreateBranchRequest.BuilderbuildSpec(String buildSpec)The build specification (build spec) for the branch.CreateBranchRequest.BuildercomputeRoleArn(String computeRoleArn)The Amazon Resource Name (ARN) of the IAM role to assign to a branch of an SSR app.CreateBranchRequest.Builderdescription(String description)The description for the branch.CreateBranchRequest.BuilderdisplayName(String displayName)The display name for a branch.CreateBranchRequest.BuilderenableAutoBuild(Boolean enableAutoBuild)Enables auto building for the branch.CreateBranchRequest.BuilderenableBasicAuth(Boolean enableBasicAuth)Enables basic authorization for the branch.CreateBranchRequest.BuilderenableNotification(Boolean enableNotification)Enables notifications for the branch.CreateBranchRequest.BuilderenablePerformanceMode(Boolean enablePerformanceMode)Enables performance mode for the branch.CreateBranchRequest.BuilderenablePullRequestPreview(Boolean enablePullRequestPreview)Enables pull request previews for this branch.CreateBranchRequest.BuilderenvironmentVariables(Map<String,String> environmentVariables)The environment variables for the branch.CreateBranchRequest.Builderframework(String framework)The framework for the branch.CreateBranchRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateBranchRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateBranchRequest.BuilderpullRequestEnvironmentName(String pullRequestEnvironmentName)The Amplify environment name for the pull request.CreateBranchRequest.Builderstage(String stage)Describes the current stage for the branch.CreateBranchRequest.Builderstage(Stage stage)Describes the current stage for the branch.CreateBranchRequest.Buildertags(Map<String,String> tags)The tag for the branch.CreateBranchRequest.Builderttl(String ttl)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
appId
CreateBranchRequest.Builder appId(String 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
CreateBranchRequest.Builder branchName(String 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
CreateBranchRequest.Builder description(String 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
CreateBranchRequest.Builder stage(String stage)
Describes the current stage for the branch.
-
stage
CreateBranchRequest.Builder stage(Stage stage)
Describes the current stage for the branch.
-
framework
CreateBranchRequest.Builder framework(String 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
CreateBranchRequest.Builder enableNotification(Boolean 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
CreateBranchRequest.Builder enableAutoBuild(Boolean 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
CreateBranchRequest.Builder environmentVariables(Map<String,String> 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
CreateBranchRequest.Builder basicAuthCredentials(String 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
CreateBranchRequest.Builder enableBasicAuth(Boolean 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
CreateBranchRequest.Builder enablePerformanceMode(Boolean 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
CreateBranchRequest.Builder tags(Map<String,String> 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
CreateBranchRequest.Builder buildSpec(String 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
CreateBranchRequest.Builder ttl(String 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
CreateBranchRequest.Builder displayName(String 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
CreateBranchRequest.Builder enablePullRequestPreview(Boolean 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
CreateBranchRequest.Builder pullRequestEnvironmentName(String 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
CreateBranchRequest.Builder backendEnvironmentArn(String backendEnvironmentArn)
The Amazon Resource Name (ARN) for a backend environment that is part of a Gen 1 Amplify app.
This field is available to Amplify Gen 1 apps only where the backend is created using Amplify Studio or the Amplify command line interface (CLI).
- Parameters:
backendEnvironmentArn- The Amazon Resource Name (ARN) for a backend environment that is part of a Gen 1 Amplify app.This field is available to Amplify Gen 1 apps only where the backend is created using Amplify Studio or the Amplify command line interface (CLI).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backend
CreateBranchRequest.Builder backend(Backend backend)
The backend for a
Branchof an Amplify app. Use for a backend created from an CloudFormation stack.This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.
- Parameters:
backend- The backend for aBranchof an Amplify app. Use for a backend created from an CloudFormation stack.This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backend
default CreateBranchRequest.Builder backend(Consumer<Backend.Builder> backend)
The backend for a
Branchof an Amplify app. Use for a backend created from an CloudFormation stack.This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.
This is a convenience method that creates an instance of theBackend.Builderavoiding the need to create one manually viaBackend.builder().When the
Consumercompletes,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:
backend(Backend)
-
computeRoleArn
CreateBranchRequest.Builder computeRoleArn(String computeRoleArn)
The Amazon Resource Name (ARN) of the IAM role to assign to a branch of an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see Adding an SSR Compute role in the Amplify User Guide.
- Parameters:
computeRoleArn- The Amazon Resource Name (ARN) of the IAM role to assign to a branch of an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see Adding an SSR Compute role in the Amplify User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateBranchRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateBranchRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-