Interface CreateTokenRequest.Builder

  • Method Details

    • 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

      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.
    • overrideConfiguration

      CreateTokenRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.