Class ImpersonationRole
- java.lang.Object
-
- software.amazon.awssdk.services.workmail.model.ImpersonationRole
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ImpersonationRole.Builder,ImpersonationRole>
@Generated("software.amazon.awssdk:codegen") public final class ImpersonationRole extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ImpersonationRole.Builder,ImpersonationRole>
An impersonation role for the given WorkMail organization.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceImpersonationRole.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImpersonationRole.Builderbuilder()InstantdateCreated()The date when the impersonation role was created.InstantdateModified()The date when the impersonation role was last modified.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringimpersonationRoleId()The identifier of the impersonation role.Stringname()The impersonation role name.List<SdkField<?>>sdkFields()static Class<? extends ImpersonationRole.Builder>serializableBuilderClass()ImpersonationRole.BuildertoBuilder()StringtoString()Returns a string representation of this object.ImpersonationRoleTypetype()The impersonation role type.StringtypeAsString()The impersonation role type.-
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
-
impersonationRoleId
public final String impersonationRoleId()
The identifier of the impersonation role.
- Returns:
- The identifier of the impersonation role.
-
name
public final String name()
The impersonation role name.
- Returns:
- The impersonation role name.
-
type
public final ImpersonationRoleType type()
The impersonation role type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnImpersonationRoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The impersonation role type.
- See Also:
ImpersonationRoleType
-
typeAsString
public final String typeAsString()
The impersonation role type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnImpersonationRoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The impersonation role type.
- See Also:
ImpersonationRoleType
-
dateCreated
public final Instant dateCreated()
The date when the impersonation role was created.
- Returns:
- The date when the impersonation role was created.
-
dateModified
public final Instant dateModified()
The date when the impersonation role was last modified.
- Returns:
- The date when the impersonation role was last modified.
-
toBuilder
public ImpersonationRole.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ImpersonationRole.Builder,ImpersonationRole>
-
builder
public static ImpersonationRole.Builder builder()
-
serializableBuilderClass
public static Class<? extends ImpersonationRole.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.
-
-