@Generated(value="software.amazon.awssdk:codegen") public 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
static Class<? extends GetCallerIdentityResponse.Builder> |
serializableBuilderClass() |
GetCallerIdentityResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
userId()
The unique identifier of the calling entity.
|
copy
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()
ToCopyableBuilder
toBuilder
in interface 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)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.