@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 Amazon Web Services account ID number of the account that owns or contains the calling entity.
|
String |
arn()
The Amazon Web Services 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 final 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 final String account()
The Amazon Web Services account ID number of the account that owns or contains the calling entity.
public final String arn()
The Amazon Web Services 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 final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2023. All rights reserved.