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 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

      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

      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

      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 format user: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

      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

      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 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 a Branch 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 Branch of an Amplify app. Use for a backend created from an CloudFormation stack.

      This is a convenience method that creates an instance of the Backend.Builder avoiding the need to create one manually via Backend.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to backend(Backend).

      Parameters:
      backend - a consumer that will call methods on Backend.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 interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.