Interface GetDelegatedAccessTokenResponse.Builder

  • Method Details

    • credentials

      Sets the value of the Credentials property for this object.
      Parameters:
      credentials - The new value for the Credentials property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • credentials

      Sets the value of the Credentials property for this object. This is a convenience method that creates an instance of the Credentials.Builder avoiding the need to create one manually via Credentials.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to credentials(Credentials).

      Parameters:
      credentials - a consumer that will call methods on Credentials.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • packedPolicySize

      GetDelegatedAccessTokenResponse.Builder packedPolicySize(Integer packedPolicySize)

      The percentage of the maximum policy size that is used by the session policy. The policy size is calculated as the sum of all the session policies and permission boundaries attached to the session. If the packed size exceeds 100%, the request fails.

      Parameters:
      packedPolicySize - The percentage of the maximum policy size that is used by the session policy. The policy size is calculated as the sum of all the session policies and permission boundaries attached to the session. If the packed size exceeds 100%, the request fails.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assumedPrincipal

      GetDelegatedAccessTokenResponse.Builder assumedPrincipal(String assumedPrincipal)

      The Amazon Resource Name (ARN) of the principal that was assumed when obtaining the delegated access token. This ARN identifies the IAM entity whose permissions are granted by the temporary credentials.

      Parameters:
      assumedPrincipal - The Amazon Resource Name (ARN) of the principal that was assumed when obtaining the delegated access token. This ARN identifies the IAM entity whose permissions are granted by the temporary credentials.
      Returns:
      Returns a reference to this object so that method calls can be chained together.