Class GetCallerIdentityResult
- All Implemented Interfaces:
Serializable
,Cloneable
Contains the response to a successful GetCallerIdentity request, including information about the entity making the request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The AWS account ID number of the account that owns or contains the calling entity.getArn()
The AWS ARN associated with the calling entity.The unique identifier of the calling entity.int
hashCode()
void
setAccount
(String account) The AWS account ID number of the account that owns or contains the calling entity.void
The AWS ARN associated with the calling entity.void
The unique identifier of the calling entity.toString()
Returns a string representation of this object; useful for testing and debugging.withAccount
(String account) The AWS account ID number of the account that owns or contains the calling entity.The AWS ARN associated with the calling entity.withUserId
(String userId) The unique identifier of the calling entity.
-
Constructor Details
-
GetCallerIdentityResult
public GetCallerIdentityResult()
-
-
Method Details
-
setUserId
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
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
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
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
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
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
The AWS ARN associated with the calling entity.
- Parameters:
arn
- The AWS ARN associated with the calling entity.
-
getArn
The AWS ARN associated with the calling entity.
- Returns:
- The AWS ARN associated with the calling entity.
-
withArn
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-