Class GetCallerIdentityResult

java.lang.Object
com.amazonaws.services.securitytoken.model.GetCallerIdentityResult
All Implemented Interfaces:
Serializable, Cloneable

public class GetCallerIdentityResult extends Object implements Serializable, Cloneable

Contains the response to a successful GetCallerIdentity request, including information about the entity making the request.

See Also:
  • Constructor Details

    • GetCallerIdentityResult

      public GetCallerIdentityResult()
  • Method Details

    • setUserId

      public void setUserId(String userId)

      The unique identifier of the calling entity. The exact value depends on the type of entity making the call. The values returned are those listed in the aws:userid column in the Principal table found on the Policy Variables reference page in the IAM User Guide.

      Parameters:
      userId - The unique identifier of the calling entity. The exact value depends on the type of entity making the call. The values returned are those listed in the aws:userid column in the Principal table found on the Policy Variables reference page in the IAM User Guide.
    • getUserId

      public String getUserId()

      The unique identifier of the calling entity. The exact value depends on the type of entity making the call. The values returned are those listed in the aws:userid column in the Principal table found on the Policy Variables reference page in the IAM User Guide.

      Returns:
      The unique identifier of the calling entity. The exact value depends on the type of entity making the call. The values returned are those listed in the aws:userid column in the Principal table found on the Policy Variables reference page in the IAM User Guide.
    • withUserId

      public GetCallerIdentityResult withUserId(String userId)

      The unique identifier of the calling entity. The exact value depends on the type of entity making the call. The values returned are those listed in the aws:userid column in the Principal table found on the Policy Variables reference page in the IAM User Guide.

      Parameters:
      userId - The unique identifier of the calling entity. The exact value depends on the type of entity making the call. The values returned are those listed in the aws:userid column in the Principal table found on the Policy Variables reference page in the IAM User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAccount

      public void setAccount(String account)

      The AWS account ID number of the account that owns or contains the calling entity.

      Parameters:
      account - The AWS account ID number of the account that owns or contains the calling entity.
    • getAccount

      public String getAccount()

      The AWS account ID number of the account that owns or contains the calling entity.

      Returns:
      The AWS account ID number of the account that owns or contains the calling entity.
    • withAccount

      public GetCallerIdentityResult withAccount(String account)

      The AWS account ID number of the account that owns or contains the calling entity.

      Parameters:
      account - The AWS account ID number of the account that owns or contains the calling entity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setArn

      public void setArn(String arn)

      The AWS ARN associated with the calling entity.

      Parameters:
      arn - The AWS ARN associated with the calling entity.
    • getArn

      public String getArn()

      The AWS ARN associated with the calling entity.

      Returns:
      The AWS ARN associated with the calling entity.
    • withArn

      public GetCallerIdentityResult withArn(String arn)

      The AWS ARN associated with the calling entity.

      Parameters:
      arn - The AWS ARN associated with the calling entity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public GetCallerIdentityResult clone()
      Overrides:
      clone in class Object