Class ImportSourceCredentialsRequest

    • Method Detail

      • username

        public final String username()

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

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

        public final String token()

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

        Returns:
        For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
      • serverTypeAsString

        public final String serverTypeAsString()

        The source provider used for this project.

        If the service returns an enum value that is not available in the current SDK version, serverType will return ServerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from serverTypeAsString().

        Returns:
        The source provider used for this project.
        See Also:
        ServerType
      • authType

        public final 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.

        If the service returns an enum value that is not available in the current SDK version, authType will return AuthType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from authTypeAsString().

        Returns:
        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.
        See Also:
        AuthType
      • authTypeAsString

        public final String authTypeAsString()

        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.

        If the service returns an enum value that is not available in the current SDK version, authType will return AuthType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from authTypeAsString().

        Returns:
        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.
        See Also:
        AuthType
      • shouldOverwrite

        public final 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.

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

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object