Interface GetPersonalAccessTokenMetadataResponse.Builder

    • Method Detail

      • personalAccessTokenId

        GetPersonalAccessTokenMetadataResponse.Builder personalAccessTokenId​(String personalAccessTokenId)

        The Personal Access Token ID.

        Parameters:
        personalAccessTokenId - The Personal Access Token ID.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dateCreated

        GetPersonalAccessTokenMetadataResponse.Builder dateCreated​(Instant dateCreated)

        The date when the Personal Access Token ID was created.

        Parameters:
        dateCreated - The date when the Personal Access Token ID was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dateLastUsed

        GetPersonalAccessTokenMetadataResponse.Builder dateLastUsed​(Instant dateLastUsed)

        The date when the Personal Access Token ID was last used.

        Parameters:
        dateLastUsed - The date when the Personal Access Token ID was last used.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • expiresTime

        GetPersonalAccessTokenMetadataResponse.Builder expiresTime​(Instant expiresTime)

        The time when the Personal Access Token ID will expire.

        Parameters:
        expiresTime - The time when the Personal Access Token ID will expire.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • scopes

        GetPersonalAccessTokenMetadataResponse.Builder scopes​(Collection<String> scopes)

        Lists all the Personal Access Token permissions for a mailbox.

        Parameters:
        scopes - Lists all the Personal Access Token permissions for a mailbox.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • scopes

        GetPersonalAccessTokenMetadataResponse.Builder scopes​(String... scopes)

        Lists all the Personal Access Token permissions for a mailbox.

        Parameters:
        scopes - Lists all the Personal Access Token permissions for a mailbox.
        Returns:
        Returns a reference to this object so that method calls can be chained together.