@Generated(value="software.amazon.awssdk:codegen") public final class GetCallerIdentityResponse extends StsResponse implements ToCopyableBuilder<GetCallerIdentityResponse.Builder,GetCallerIdentityResponse>
Contains the response to a successful GetCallerIdentity request, including information about the entity making the request.
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetCallerIdentityResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
account()
The AWS account ID number of the account that owns or contains the calling entity.
|
String |
arn()
The AWS ARN associated with the calling entity.
|
static GetCallerIdentityResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetCallerIdentityResponse.Builder> |
serializableBuilderClass() |
GetCallerIdentityResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userId()
The unique identifier of the calling entity.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
public String account()
The AWS account ID number of the account that owns or contains the calling entity.
public String arn()
The AWS ARN associated with the calling entity.
public GetCallerIdentityResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetCallerIdentityResponse.Builder,GetCallerIdentityResponse>toBuilder in class AwsResponsepublic static GetCallerIdentityResponse.Builder builder()
public static Class<? extends GetCallerIdentityResponse.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsResponsepublic boolean equals(Object obj)
equals in class AwsResponsepublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2020. All rights reserved.