Interface CreateAccessTokenResponse.Builder

    • Method Detail

      • secret

        CreateAccessTokenResponse.Builder secret​(String secret)

        The secret value of the personal access token.

        Parameters:
        secret - The secret value of the personal access token.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        CreateAccessTokenResponse.Builder name​(String name)

        The friendly name of the personal access token.

        Parameters:
        name - The friendly name of the personal access token.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • expiresTime

        CreateAccessTokenResponse.Builder expiresTime​(Instant expiresTime)

        The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in RFC 3339. If not specified, the default is one year from creation.

        Parameters:
        expiresTime - The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in RFC 3339. If not specified, the default is one year from creation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accessTokenId

        CreateAccessTokenResponse.Builder accessTokenId​(String accessTokenId)

        The system-generated unique ID of the access token.

        Parameters:
        accessTokenId - The system-generated unique ID of the access token.
        Returns:
        Returns a reference to this object so that method calls can be chained together.