Class SourceCredentialState.Builder

  • Enclosing class:
    SourceCredentialState

    public static final class SourceCredentialState.Builder
    extends java.lang.Object
    • Method Detail

      • arn

        public SourceCredentialState.Builder arn​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - The ARN of Source Credential.
        Returns:
        builder
      • authType

        public SourceCredentialState.Builder authType​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> authType)
        Parameters:
        authType - The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. Valid values are `BASIC_AUTH`, `PERSONAL_ACCESS_TOKEN`, `CODECONNECTIONS`, and `SECRETS_MANAGER`. An OAuth connection is not supported by the API.
        Returns:
        builder
      • authType

        public SourceCredentialState.Builder authType​(java.lang.String authType)
        Parameters:
        authType - The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. Valid values are `BASIC_AUTH`, `PERSONAL_ACCESS_TOKEN`, `CODECONNECTIONS`, and `SECRETS_MANAGER`. An OAuth connection is not supported by the API.
        Returns:
        builder
      • region

        public SourceCredentialState.Builder region​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public SourceCredentialState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • serverType

        public SourceCredentialState.Builder serverType​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> serverType)
        Parameters:
        serverType - The source provider used for this project.
        Returns:
        builder
      • serverType

        public SourceCredentialState.Builder serverType​(java.lang.String serverType)
        Parameters:
        serverType - The source provider used for this project.
        Returns:
        builder
      • token

        public SourceCredentialState.Builder token​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> token)
        Parameters:
        token - For a GitHub and GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password. When using an AWS CodeStar connection (`authType = "CODECONNECTIONS")`, this is an AWS CodeStar Connection ARN.
        Returns:
        builder
      • token

        public SourceCredentialState.Builder token​(java.lang.String token)
        Parameters:
        token - For a GitHub and GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password. When using an AWS CodeStar connection (`authType = "CODECONNECTIONS")`, this is an AWS CodeStar Connection ARN.
        Returns:
        builder
      • userName

        public SourceCredentialState.Builder userName​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> userName)
        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:
        builder
      • userName

        public SourceCredentialState.Builder userName​(java.lang.String userName)
        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:
        builder