@Generated(value="software.amazon.awssdk:codegen") public final class CreateUserRequest extends WorkMailRequest implements ToCopyableBuilder<CreateUserRequest.Builder,CreateUserRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateUserRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateUserRequest.Builder |
builder() |
String |
displayName()
The display name for the new user.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
firstName()
The first name of the new user.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
hiddenFromGlobalAddressList()
If this parameter is enabled, the user will be hidden from the address book.
|
String |
lastName()
The last name of the new user.
|
String |
name()
The name for the new user.
|
String |
organizationId()
The identifier of the organization for which the user is created.
|
String |
password()
The password for the new user.
|
UserRole |
role()
The role of the new user.
|
String |
roleAsString()
The role of the new user.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateUserRequest.Builder> |
serializableBuilderClass() |
CreateUserRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String organizationId()
The identifier of the organization for which the user is created.
public final String name()
The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.
public final String displayName()
The display name for the new user.
public final String password()
The password for the new user.
public final UserRole role()
The role of the new user.
You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected.
If the service returns an enum value that is not available in the current SDK version, role will return
UserRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
roleAsString().
You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected.
UserRolepublic final String roleAsString()
The role of the new user.
You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected.
If the service returns an enum value that is not available in the current SDK version, role will return
UserRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
roleAsString().
You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected.
UserRolepublic final String firstName()
The first name of the new user.
public final String lastName()
The last name of the new user.
public final Boolean hiddenFromGlobalAddressList()
If this parameter is enabled, the user will be hidden from the address book.
public CreateUserRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateUserRequest.Builder,CreateUserRequest>toBuilder in class WorkMailRequestpublic static CreateUserRequest.Builder builder()
public static Class<? extends CreateUserRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic 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 SdkRequestCopyright © 2023. All rights reserved.