Class UserIdentity
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.UserIdentity
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UserIdentity.Builder,UserIdentity>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUserIdentity.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AssumedRoleassumedRole()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.AwsAccountawsAccount()If the action was performed using the credentials for another Amazon Web Services account, the details of that account.AwsServiceawsService()If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Services service, the name of the service.static UserIdentity.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FederatedUserfederatedUser()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)inthashCode()IamUseriamUser()If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and other details about the user.UserIdentityRootroot()If the action was performed using the credentials for your Amazon Web Services account, the details of your account.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends UserIdentity.Builder>serializableBuilderClass()UserIdentity.BuildertoBuilder()StringtoString()Returns a string representation of this object.UserIdentityTypetype()The type of entity that performed the action.StringtypeAsString()The type of entity that performed the action.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
assumedRole
public 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.
- Returns:
- 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
public final AwsAccount awsAccount()
If the action was performed using the credentials for another Amazon Web Services account, the details of that account.
- Returns:
- If the action was performed using the credentials for another Amazon Web Services account, the details of that account.
-
awsService
public final AwsService awsService()
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Services service, the name of the service.
- Returns:
- If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Services service, the name of the service.
-
federatedUser
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.
- Returns:
- 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.
-
iamUser
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.
- Returns:
- If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and other details about the user.
-
root
public final UserIdentityRoot root()
If the action was performed using the credentials for your Amazon Web Services account, the details of your account.
- Returns:
- If the action was performed using the credentials for your Amazon Web Services account, the details of your account.
-
type
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,
typewill returnUserIdentityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of entity that performed the action.
- See Also:
UserIdentityType
-
typeAsString
public 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,
typewill returnUserIdentityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of entity that performed the action.
- See Also:
UserIdentityType
-
toBuilder
public UserIdentity.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UserIdentity.Builder,UserIdentity>
-
builder
public static UserIdentity.Builder builder()
-
serializableBuilderClass
public static Class<? extends UserIdentity.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-