Interface ImportSourceCredentialsRequest.Builder

    • Method Detail

      • username

        ImportSourceCredentialsRequest.Builder username​(String 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

        ImportSourceCredentialsRequest.Builder token​(String token)

        For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.

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

        ImportSourceCredentialsRequest.Builder serverType​(String 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, ServerType
      • authType

        ImportSourceCredentialsRequest.Builder authType​(String authType)

        The type of authentication used to connect to a GitHub, GitHub Enterprise, 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, 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, AuthType
      • authType

        ImportSourceCredentialsRequest.Builder authType​(AuthType authType)

        The type of authentication used to connect to a GitHub, GitHub Enterprise, 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, 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, AuthType
      • 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.