ToCopyableBuilder<GetCallerIdentityResponse.Builder,GetCallerIdentityResponse>
@Generated("software.amazon.awssdk:codegen") public class GetCallerIdentityResponse extends AmazonWebServiceResult<ResponseMetadata> 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 | Description |
---|---|---|
static interface |
GetCallerIdentityResponse.Builder |
Modifier and Type | Method | 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) |
|
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.
|
setSdkHttpMetadata, setSdkResponseMetadata
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>
public static GetCallerIdentityResponse.Builder builder()
public static Class<? extends GetCallerIdentityResponse.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.