public class GetCallerIdentityResult
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.lang.String |
getAccount()
The Amazon Web Services account ID number of the account that owns or
contains the calling entity.
|
java.lang.String |
getArn()
The Amazon Web Services 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 Amazon Web Services account ID number of the account that owns or
contains the calling entity.
|
void |
setArn(java.lang.String arn)
The Amazon Web Services 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 Amazon Web Services account ID number of the account that owns or
contains the calling entity.
|
GetCallerIdentityResult |
withArn(java.lang.String arn)
The Amazon Web Services ARN associated with the calling entity.
|
GetCallerIdentityResult |
withUserId(java.lang.String userId)
The unique identifier of the calling entity.
|
public java.lang.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(java.lang.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(java.lang.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 java.lang.String getAccount()
The Amazon Web Services account ID number of the account that owns or contains the calling entity.
The Amazon Web Services account ID number of the account that owns or contains the calling entity.
public void setAccount(java.lang.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 GetCallerIdentityResult withAccount(java.lang.String account)
The Amazon Web Services 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 Amazon Web Services account ID number of the account that owns or contains the calling entity.
public java.lang.String getArn()
The Amazon Web Services ARN associated with the calling entity.
Constraints:
Length: 20 - 2048
Pattern: [
-~
--�က0-ჿFF]+
The Amazon Web Services ARN associated with the calling entity.
public void setArn(java.lang.String arn)
The Amazon Web Services ARN associated with the calling entity.
Constraints:
Length: 20 - 2048
Pattern: [
-~
--�က0-ჿFF]+
arn
- The Amazon Web Services ARN associated with the calling entity.
public GetCallerIdentityResult withArn(java.lang.String arn)
The Amazon Web Services 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 Amazon Web Services ARN associated with the calling entity.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object