Class IamUser
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.IamUser
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<IamUser.Builder,IamUser>
@Generated("software.amazon.awssdk:codegen") public final class IamUser extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IamUser.Builder,IamUser>
Provides information about an Identity and Access Management (IAM) user who performed an action on an affected resource.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceIamUser.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountId()The unique identifier for the Amazon Web Services account that's associated with the IAM user who performed the action.Stringarn()The Amazon Resource Name (ARN) of the principal that performed the action.static IamUser.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringprincipalId()The unique identifier for the IAM user who performed the action.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends IamUser.Builder>serializableBuilderClass()IamUser.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringuserName()The username of the IAM user who 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
-
accountId
public final String accountId()
The unique identifier for the Amazon Web Services account that's associated with the IAM user who performed the action.
- Returns:
- The unique identifier for the Amazon Web Services account that's associated with the IAM user who performed the action.
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the principal that performed the action. The last section of the ARN contains the name of the user who performed the action.
- Returns:
- The Amazon Resource Name (ARN) of the principal that performed the action. The last section of the ARN contains the name of the user who performed the action.
-
principalId
public final String principalId()
The unique identifier for the IAM user who performed the action.
- Returns:
- The unique identifier for the IAM user who performed the action.
-
userName
public final String userName()
The username of the IAM user who performed the action.
- Returns:
- The username of the IAM user who performed the action.
-
toBuilder
public IamUser.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<IamUser.Builder,IamUser>
-
builder
public static IamUser.Builder builder()
-
serializableBuilderClass
public static Class<? extends IamUser.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
-
-