@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateUserRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateUserRequest() |
Modifier and Type | Method and Description |
---|---|
CreateUserRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDisplayName()
The display name for the new user.
|
String |
getFirstName()
The first name of the new user.
|
Boolean |
getHiddenFromGlobalAddressList()
If this parameter is enabled, the user will be hidden from the address book.
|
String |
getLastName()
The last name of the new user.
|
String |
getName()
The name for the new user.
|
String |
getOrganizationId()
The identifier of the organization for which the user is created.
|
String |
getPassword()
The password for the new user.
|
String |
getRole()
The role of the new user.
|
int |
hashCode() |
Boolean |
isHiddenFromGlobalAddressList()
If this parameter is enabled, the user will be hidden from the address book.
|
void |
setDisplayName(String displayName)
The display name for the new user.
|
void |
setFirstName(String firstName)
The first name of the new user.
|
void |
setHiddenFromGlobalAddressList(Boolean hiddenFromGlobalAddressList)
If this parameter is enabled, the user will be hidden from the address book.
|
void |
setLastName(String lastName)
The last name of the new user.
|
void |
setName(String name)
The name for the new user.
|
void |
setOrganizationId(String organizationId)
The identifier of the organization for which the user is created.
|
void |
setPassword(String password)
The password for the new user.
|
void |
setRole(String role)
The role of the new user.
|
String |
toString()
Returns a string representation of this object.
|
CreateUserRequest |
withDisplayName(String displayName)
The display name for the new user.
|
CreateUserRequest |
withFirstName(String firstName)
The first name of the new user.
|
CreateUserRequest |
withHiddenFromGlobalAddressList(Boolean hiddenFromGlobalAddressList)
If this parameter is enabled, the user will be hidden from the address book.
|
CreateUserRequest |
withLastName(String lastName)
The last name of the new user.
|
CreateUserRequest |
withName(String name)
The name for the new user.
|
CreateUserRequest |
withOrganizationId(String organizationId)
The identifier of the organization for which the user is created.
|
CreateUserRequest |
withPassword(String password)
The password for the new user.
|
CreateUserRequest |
withRole(String role)
The role of the new user.
|
CreateUserRequest |
withRole(UserRole role)
The role of the new user.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setOrganizationId(String organizationId)
The identifier of the organization for which the user is created.
organizationId
- The identifier of the organization for which the user is created.public String getOrganizationId()
The identifier of the organization for which the user is created.
public CreateUserRequest withOrganizationId(String organizationId)
The identifier of the organization for which the user is created.
organizationId
- The identifier of the organization for which the user is created.public void setName(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.
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 String getName()
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 CreateUserRequest withName(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.
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 void setDisplayName(String displayName)
The display name for the new user.
displayName
- The display name for the new user.public String getDisplayName()
The display name for the new user.
public CreateUserRequest withDisplayName(String displayName)
The display name for the new user.
displayName
- The display name for the new user.public void setPassword(String password)
The password for the new user.
password
- The password for the new user.public String getPassword()
The password for the new user.
public CreateUserRequest withPassword(String password)
The password for the new user.
password
- The password for the new user.public void setRole(String 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.
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.
UserRole
public String getRole()
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.
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.
UserRole
public CreateUserRequest withRole(String 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.
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.
UserRole
public CreateUserRequest withRole(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.
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.
UserRole
public void setFirstName(String firstName)
The first name of the new user.
firstName
- The first name of the new user.public String getFirstName()
The first name of the new user.
public CreateUserRequest withFirstName(String firstName)
The first name of the new user.
firstName
- The first name of the new user.public void setLastName(String lastName)
The last name of the new user.
lastName
- The last name of the new user.public String getLastName()
The last name of the new user.
public CreateUserRequest withLastName(String lastName)
The last name of the new user.
lastName
- The last name of the new user.public void setHiddenFromGlobalAddressList(Boolean hiddenFromGlobalAddressList)
If this parameter is enabled, the user will be hidden from the address book.
hiddenFromGlobalAddressList
- If this parameter is enabled, the user will be hidden from the address book.public Boolean getHiddenFromGlobalAddressList()
If this parameter is enabled, the user will be hidden from the address book.
public CreateUserRequest withHiddenFromGlobalAddressList(Boolean hiddenFromGlobalAddressList)
If this parameter is enabled, the user will be hidden from the address book.
hiddenFromGlobalAddressList
- If this parameter is enabled, the user will be hidden from the address book.public Boolean isHiddenFromGlobalAddressList()
If this parameter is enabled, the user will be hidden from the address book.
public String toString()
toString
in class Object
Object.toString()
public CreateUserRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()