@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 AWS account ID number of the account that owns or contains the calling entity.
|
String |
getArn()
The AWS ARN associated with the calling entity.
|
String |
getUserId()
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 |
setArn(String arn)
The AWS 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; useful for testing and debugging.
|
GetCallerIdentityResult |
withAccount(String account)
The AWS account ID number of the account that owns or contains the calling entity.
|
GetCallerIdentityResult |
withArn(String arn)
The AWS 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 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 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(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(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 String getAccount()
The AWS account ID number of the account that owns or contains the calling entity.
public GetCallerIdentityResult withAccount(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(String arn)
The AWS ARN associated with the calling entity.
arn
- The AWS ARN associated with the calling entity.public String getArn()
The AWS ARN associated with the calling entity.
public GetCallerIdentityResult withArn(String arn)
The AWS ARN associated with the calling entity.
arn
- The AWS ARN associated with the calling entity.public String toString()
toString
in class Object
Object.toString()
public GetCallerIdentityResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.