Interface PersonalAccessTokenSummary.Builder

    • Method Detail

      • personalAccessTokenId

        PersonalAccessTokenSummary.Builder personalAccessTokenId​(String personalAccessTokenId)

        The ID of the Personal Access Token.

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

        PersonalAccessTokenSummary.Builder userId​(String userId)

        The user ID of the WorkMail user associated with the Personal Access Token.

        Parameters:
        userId - The user ID of the WorkMail user associated with the Personal Access Token.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        PersonalAccessTokenSummary.Builder name​(String name)

        The name of the Personal Access Token.

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

        PersonalAccessTokenSummary.Builder dateCreated​(Instant dateCreated)

        The date when the Personal Access Token was created.

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

        PersonalAccessTokenSummary.Builder dateLastUsed​(Instant dateLastUsed)

        The date when the Personal Access Token was last used.

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

        PersonalAccessTokenSummary.Builder expiresTime​(Instant expiresTime)

        The date when the Personal Access Token will expire.

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

        PersonalAccessTokenSummary.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

        PersonalAccessTokenSummary.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.