Interface CreateTokenRequest.Builder

    • Method Detail

      • licenseArn

        CreateTokenRequest.Builder licenseArn​(String licenseArn)

        Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim of the JWT token.

        Parameters:
        licenseArn - Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim of the JWT token.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleArns

        CreateTokenRequest.Builder roleArns​(Collection<String> roleArns)

        Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.

        Parameters:
        roleArns - Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleArns

        CreateTokenRequest.Builder roleArns​(String... roleArns)

        Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.

        Parameters:
        roleArns - Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • expirationInDays

        CreateTokenRequest.Builder expirationInDays​(Integer expirationInDays)

        Token expiration, in days, counted from token creation. The default is 365 days.

        Parameters:
        expirationInDays - Token expiration, in days, counted from token creation. The default is 365 days.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tokenProperties

        CreateTokenRequest.Builder tokenProperties​(Collection<String> tokenProperties)

        Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.

        Parameters:
        tokenProperties - Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tokenProperties

        CreateTokenRequest.Builder tokenProperties​(String... tokenProperties)

        Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.

        Parameters:
        tokenProperties - Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clientToken

        CreateTokenRequest.Builder clientToken​(String clientToken)

        Idempotency token, valid for 10 minutes.

        Parameters:
        clientToken - Idempotency token, valid for 10 minutes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.