@Generated(value="software.amazon.awssdk:codegen") public final class DescribeUserResponse extends WorkMailResponse implements ToCopyableBuilder<DescribeUserResponse.Builder,DescribeUserResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DescribeUserResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DescribeUserResponse.Builder |
builder() |
Instant |
disabledDate()
The date and time at which the user was disabled for Amazon WorkMail usage, in UNIX epoch time format.
|
String |
displayName()
The display name of the user.
|
String |
email()
The email of the user.
|
Instant |
enabledDate()
The date and time at which the user was enabled for Amazon WorkMail usage, in UNIX epoch time format.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name for the user.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DescribeUserResponse.Builder> |
serializableBuilderClass() |
EntityState |
state()
The state of a user: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to
WorkMail).
|
String |
stateAsString()
The state of a user: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to
WorkMail).
|
DescribeUserResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userId()
The identifier for the described user.
|
UserRole |
userRole()
In certain cases, other entities are modeled as users.
|
String |
userRoleAsString()
In certain cases, other entities are modeled as users.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String userId()
The identifier for the described user.
public final String name()
The name for the user.
public final String email()
The email of the user.
public final String displayName()
The display name of the user.
public final EntityState state()
The state of a user: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to WorkMail).
If the service returns an enum value that is not available in the current SDK version, state will return
EntityState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
EntityStatepublic final String stateAsString()
The state of a user: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to WorkMail).
If the service returns an enum value that is not available in the current SDK version, state will return
EntityState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
EntityStatepublic final UserRole userRole()
In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into Amazon WorkMail as users. Because different WorkMail organizations rely on different directory types, administrators can distinguish between an unregistered user (account is disabled and has a user role) and the directory administrators. The values are USER, RESOURCE, and SYSTEM_USER.
If the service returns an enum value that is not available in the current SDK version, userRole will
return UserRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
userRoleAsString().
UserRolepublic final String userRoleAsString()
In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into Amazon WorkMail as users. Because different WorkMail organizations rely on different directory types, administrators can distinguish between an unregistered user (account is disabled and has a user role) and the directory administrators. The values are USER, RESOURCE, and SYSTEM_USER.
If the service returns an enum value that is not available in the current SDK version, userRole will
return UserRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
userRoleAsString().
UserRolepublic final Instant enabledDate()
The date and time at which the user was enabled for Amazon WorkMail usage, in UNIX epoch time format.
public final Instant disabledDate()
The date and time at which the user was disabled for Amazon WorkMail usage, in UNIX epoch time format.
public DescribeUserResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DescribeUserResponse.Builder,DescribeUserResponse>toBuilder in class AwsResponsepublic static DescribeUserResponse.Builder builder()
public static Class<? extends DescribeUserResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2022. All rights reserved.