Interface ImportSourceCredentialsRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CodeBuildRequest.Builder, CopyableBuilder<ImportSourceCredentialsRequest.Builder,ImportSourceCredentialsRequest>, SdkBuilder<ImportSourceCredentialsRequest.Builder,ImportSourceCredentialsRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
ImportSourceCredentialsRequest

public static interface ImportSourceCredentialsRequest.Builder extends CodeBuildRequest.Builder, SdkPojo, CopyableBuilder<ImportSourceCredentialsRequest.Builder,ImportSourceCredentialsRequest>
  • Method Details

    • username

      The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.

      Parameters:
      username - The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • token

      For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password. For the authType CODECONNECTIONS, this is the connectionArn. For the authType SECRETS_MANAGER, this is the secretArn .

      Parameters:
      token - For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password. For the authType CODECONNECTIONS, this is the connectionArn. For the authType SECRETS_MANAGER, this is the secretArn.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serverType

      The source provider used for this project.

      Parameters:
      serverType - The source provider used for this project.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • serverType

      The source provider used for this project.

      Parameters:
      serverType - The source provider used for this project.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • authType

      The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.

      Parameters:
      authType - The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • authType

      The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.

      Parameters:
      authType - The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • shouldOverwrite

      ImportSourceCredentialsRequest.Builder shouldOverwrite(Boolean shouldOverwrite)

      Set to false to prevent overwriting the repository source credentials. Set to true to overwrite the repository source credentials. The default value is true.

      Parameters:
      shouldOverwrite - Set to false to prevent overwriting the repository source credentials. Set to true to overwrite the repository source credentials. The default value is true.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

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