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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetCallerIdentityResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetCallerIdentityResultclone()booleanequals(Object obj)StringgetAccount()The AWS account ID number of the account that owns or contains the calling entity.StringgetArn()The AWS ARN associated with the calling entity.StringgetUserId()The unique identifier of the calling entity.inthashCode()voidsetAccount(String account)The AWS account ID number of the account that owns or contains the calling entity.voidsetArn(String arn)The AWS ARN associated with the calling entity.voidsetUserId(String userId)The unique identifier of the calling entity.StringtoString()Returns a string representation of this object; useful for testing and debugging.GetCallerIdentityResultwithAccount(String account)The AWS account ID number of the account that owns or contains the calling entity.GetCallerIdentityResultwithArn(String arn)The AWS ARN associated with the calling entity.GetCallerIdentityResultwithUserId(String userId)The unique identifier of the calling entity.
-
-
-
Method Detail
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetCallerIdentityResult clone()
-
-