public class GetCallerIdentityResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the response to a successful GetCallerIdentity request, including information about the entity making the request.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
account
The AWS account ID number of the account that owns or contains the
calling entity.
|
private java.lang.String |
arn
The AWS ARN associated with the calling entity.
|
private java.lang.String |
userId
The unique identifier of the calling entity.
|
Constructor and Description |
---|
GetCallerIdentityResult() |
Modifier and Type | Method and Description |
---|---|
GetCallerIdentityResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccount()
The AWS account ID number of the account that owns or contains the
calling entity.
|
java.lang.String |
getArn()
The AWS ARN associated with the calling entity.
|
java.lang.String |
getUserId()
The unique identifier of the calling entity.
|
int |
hashCode() |
void |
setAccount(java.lang.String account)
The AWS account ID number of the account that owns or contains the
calling entity.
|
void |
setArn(java.lang.String arn)
The AWS ARN associated with the calling entity.
|
void |
setUserId(java.lang.String userId)
The unique identifier of the calling entity.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetCallerIdentityResult |
withAccount(java.lang.String account)
The AWS account ID number of the account that owns or contains the
calling entity.
|
GetCallerIdentityResult |
withArn(java.lang.String arn)
The AWS ARN associated with the calling entity.
|
GetCallerIdentityResult |
withUserId(java.lang.String userId)
The unique identifier of the calling entity.
|
private java.lang.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.
private java.lang.String account
The AWS account ID number of the account that owns or contains the calling entity.
private java.lang.String arn
The AWS ARN associated with the calling entity.
public void setUserId(java.lang.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.
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.public java.lang.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.
public GetCallerIdentityResult withUserId(java.lang.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.
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.public void setAccount(java.lang.String account)
The AWS account ID number of the account that owns or contains the calling entity.
account
- The AWS account ID number of the account that owns or contains the
calling entity.public java.lang.String getAccount()
The AWS account ID number of the account that owns or contains the calling entity.
public GetCallerIdentityResult withAccount(java.lang.String account)
The AWS account ID number of the account that owns or contains the calling entity.
account
- The AWS account ID number of the account that owns or contains the
calling entity.public void setArn(java.lang.String arn)
The AWS ARN associated with the calling entity.
arn
- The AWS ARN associated with the calling entity.public java.lang.String getArn()
The AWS ARN associated with the calling entity.
public GetCallerIdentityResult withArn(java.lang.String arn)
The AWS ARN associated with the calling entity.
arn
- The AWS ARN associated with the calling entity.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GetCallerIdentityResult clone()
clone
in class java.lang.Object