Interface Credentials.Builder

    • Method Detail

      • accessToken

        Credentials.Builder accessToken​(String accessToken)

        An access token generated for a federated user to access Amazon Connect.

        Parameters:
        accessToken - An access token generated for a federated user to access Amazon Connect.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accessTokenExpiration

        Credentials.Builder accessTokenExpiration​(Instant accessTokenExpiration)

        A token generated with an expiration time for the session a user is logged in to Amazon Connect.

        Parameters:
        accessTokenExpiration - A token generated with an expiration time for the session a user is logged in to Amazon Connect.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • refreshToken

        Credentials.Builder refreshToken​(String refreshToken)

        Renews a token generated for a user to access the Amazon Connect instance.

        Parameters:
        refreshToken - Renews a token generated for a user to access the Amazon Connect instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • refreshTokenExpiration

        Credentials.Builder refreshTokenExpiration​(Instant refreshTokenExpiration)

        Renews the expiration timer for a generated token.

        Parameters:
        refreshTokenExpiration - Renews the expiration timer for a generated token.
        Returns:
        Returns a reference to this object so that method calls can be chained together.