public class GetCallerIdentityResult extends Object implements Serializable
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 |
---|---|
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.
|
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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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 getAccount()
The AWS account ID number of the account that owns or contains the calling entity.
The AWS account ID number of the account that owns or contains the calling entity.
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 GetCallerIdentityResult withAccount(String account)
The AWS account ID number of the account that owns or contains the calling entity.
Returns a reference to this object so that method calls can be chained together.
account
- The AWS account ID number of the account that owns or contains the calling entity.
public String getArn()
The AWS ARN associated with the calling entity.
Constraints:
Length: 20 - 2048
Pattern: [
-~
--�က0-ჿFF]+
The AWS ARN associated with the calling entity.
public void setArn(String arn)
The AWS ARN associated with the calling entity.
Constraints:
Length: 20 - 2048
Pattern: [
-~
--�က0-ჿFF]+
arn
- The AWS ARN associated with the calling entity.
public GetCallerIdentityResult withArn(String arn)
The AWS ARN associated with the calling entity.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
Pattern: [
-~
--�က0-ჿFF]+
arn
- The AWS ARN associated with the calling entity.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.