@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetCallerIdentityResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the response to a successful GetCallerIdentity request, including information about the entity making the request.
Constructor and Description |
---|
GetCallerIdentityResult() |
Modifier and Type | Method and Description |
---|---|
GetCallerIdentityResult |
clone() |
boolean |
equals(Object obj) |
String |
getAccount()
The Amazon Web Services account ID number of the account that owns or contains the calling entity.
|
String |
getArn()
The Amazon Web Services ARN associated with the calling entity.
|
String |
getUserId()
The unique identifier of the calling entity.
|
int |
hashCode() |
void |
setAccount(String account)
The Amazon Web Services account ID number of the account that owns or contains the calling entity.
|
void |
setArn(String arn)
The Amazon Web Services ARN associated with the calling entity.
|
void |
setUserId(String userId)
The unique identifier of the calling entity.
|
String |
toString()
Returns a string representation of this object.
|
GetCallerIdentityResult |
withAccount(String account)
The Amazon Web Services account ID number of the account that owns or contains the calling entity.
|
GetCallerIdentityResult |
withArn(String arn)
The Amazon Web Services ARN associated with the calling entity.
|
GetCallerIdentityResult |
withUserId(String userId)
The unique identifier of the calling entity.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setUserId(String userId)
The unique identifier of the calling entity. The exact value depends on the type of entity that is 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 that is 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 String getUserId()
The unique identifier of the calling entity. The exact value depends on the type of entity that is 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(String userId)
The unique identifier of the calling entity. The exact value depends on the type of entity that is 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 that is 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(String account)
The Amazon Web Services account ID number of the account that owns or contains the calling entity.
account
- The Amazon Web Services account ID number of the account that owns or contains the calling entity.public String getAccount()
The Amazon Web Services account ID number of the account that owns or contains the calling entity.
public GetCallerIdentityResult withAccount(String account)
The Amazon Web Services account ID number of the account that owns or contains the calling entity.
account
- The Amazon Web Services account ID number of the account that owns or contains the calling entity.public void setArn(String arn)
The Amazon Web Services ARN associated with the calling entity.
arn
- The Amazon Web Services ARN associated with the calling entity.public String getArn()
The Amazon Web Services ARN associated with the calling entity.
public GetCallerIdentityResult withArn(String arn)
The Amazon Web Services ARN associated with the calling entity.
arn
- The Amazon Web Services ARN associated with the calling entity.public String toString()
toString
in class Object
Object.toString()
public GetCallerIdentityResult clone()