@Generated(value="software.amazon.awssdk:codegen") public class GetCallerIdentityResponse extends STSResponse implements software.amazon.awssdk.utils.builder.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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
static Class<? extends GetCallerIdentityResponse.Builder> |
serializableBuilderClass() |
GetCallerIdentityResponse.Builder |
toBuilder() |
String |
toString() |
String |
userId()
The unique identifier of the calling entity.
|
public 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.
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 software.amazon.awssdk.utils.builder.ToCopyableBuilder<GetCallerIdentityResponse.Builder,GetCallerIdentityResponse>
toBuilder
in class AwsResponse
public static GetCallerIdentityResponse.Builder builder()
public static Class<? extends GetCallerIdentityResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2018. All rights reserved.