@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 Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
|
AwsAccount |
awsAccount()
If the action was performed using the credentials for another Amazon Web Services account, the details of that
account.
|
AwsService |
awsService()
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web 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 Security Token Service (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 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 Amazon Web Services 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 final AssumedRole assumedRole()
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
public final AwsAccount awsAccount()
If the action was performed using the credentials for another Amazon Web Services account, the details of that account.
public final AwsService awsService()
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the name of the service.
public final FederatedUser federatedUser()
If the action was performed with temporary security credentials that were obtained using the GetFederationToken operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
public final IamUser iamUser()
If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and other details about the user.
public final UserIdentityRoot root()
If the action was performed using the credentials for your Amazon Web Services account, the details of your account.
public final 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 final 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 final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.