@Generated(value="software.amazon.awssdk:codegen") public final class User extends Object implements StructuredPojo, ToCopyableBuilder<User.Builder,User>
The representation of an Amazon WorkMail user.
Modifier and Type | Class and Description |
---|---|
static interface |
User.Builder |
Modifier and Type | Method and Description |
---|---|
static User.Builder |
builder() |
Instant |
disabledDate()
The date indicating when the user was disabled from Amazon WorkMail use.
|
String |
displayName()
The display name of the user.
|
String |
email()
The email of the user.
|
Instant |
enabledDate()
The date indicating when the user was enabled for Amazon WorkMail use.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The identifier of the user.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The name of the user.
|
static Class<? extends User.Builder> |
serializableBuilderClass() |
EntityState |
state()
The state of the user, which can be ENABLED, DISABLED, or DELETED.
|
String |
stateAsString()
The state of the user, which can be ENABLED, DISABLED, or DELETED.
|
User.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
UserRole |
userRole()
The role of the user.
|
String |
userRoleAsString()
The role of the user.
|
copy
public String id()
The identifier of the user.
public String email()
The email of the user.
public String name()
The name of the user.
public String displayName()
The display name of the user.
public EntityState state()
The state of the user, which can be ENABLED, DISABLED, or DELETED.
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()
.
EntityState
public String stateAsString()
The state of the user, which can be ENABLED, DISABLED, or DELETED.
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()
.
EntityState
public UserRole userRole()
The role of the 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()
.
UserRole
public String userRoleAsString()
The role of the 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()
.
UserRole
public Instant enabledDate()
The date indicating when the user was enabled for Amazon WorkMail use.
public Instant disabledDate()
The date indicating when the user was disabled from Amazon WorkMail use.
public User.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<User.Builder,User>
public static User.Builder builder()
public static Class<? extends User.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.