@Generated(value="software.amazon.awssdk:codegen") public final class UserIdentity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UserIdentity.Builder,UserIdentity>
Provides information about the type and other characteristics of an entity that performed an action on an affected resource.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UserIdentity.Builder |
| Modifier and Type | Method and Description |
|---|---|
AssumedRole |
assumedRole()
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation
of the AWS Security Token Service (AWS STS) API, the identifiers, session context, and other details about the
identity.
|
AwsAccount |
awsAccount()
If the action was performed using the credentials for another AWS account, the details of that account.
|
AwsService |
awsService()
If the action was performed by an AWS account that belongs to an AWS service, the name of the service.
|
static UserIdentity.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
FederatedUser |
federatedUser()
If the action was performed with temporary security credentials that were obtained using the GetFederationToken
operation of the AWS Security Token Service (AWS STS) API, the identifiers, session context, and other details
about the identity.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
IamUser |
iamUser()
If the action was performed using the credentials for an AWS Identity and Access Management (IAM) user, the name
and other details about the user.
|
UserIdentityRoot |
root()
If the action was performed using the credentials for your AWS account, the details of your account.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UserIdentity.Builder> |
serializableBuilderClass() |
UserIdentity.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
UserIdentityType |
type()
The type of entity that performed the action.
|
String |
typeAsString()
The type of entity that performed the action.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic AssumedRole assumedRole()
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation of the AWS Security Token Service (AWS STS) API, the identifiers, session context, and other details about the identity.
public AwsAccount awsAccount()
If the action was performed using the credentials for another AWS account, the details of that account.
public AwsService awsService()
If the action was performed by an AWS account that belongs to an AWS service, the name of the service.
public FederatedUser federatedUser()
If the action was performed with temporary security credentials that were obtained using the GetFederationToken operation of the AWS Security Token Service (AWS STS) API, the identifiers, session context, and other details about the identity.
public IamUser iamUser()
If the action was performed using the credentials for an AWS Identity and Access Management (IAM) user, the name and other details about the user.
public UserIdentityRoot root()
If the action was performed using the credentials for your AWS account, the details of your account.
public UserIdentityType type()
The type of entity that performed the action.
If the service returns an enum value that is not available in the current SDK version, type will return
UserIdentityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
UserIdentityTypepublic String typeAsString()
The type of entity that performed the action.
If the service returns an enum value that is not available in the current SDK version, type will return
UserIdentityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
UserIdentityTypepublic UserIdentity.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UserIdentity.Builder,UserIdentity>public static UserIdentity.Builder builder()
public static Class<? extends UserIdentity.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.