public class CreateUserRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a user account for the specified Amazon Connect instance.
For information about how to create user accounts using the Amazon Connect console, see Add Users in the Amazon Connect Administrator Guide.
Constructor and Description |
---|
CreateUserRequest() |
Modifier and Type | Method and Description |
---|---|
CreateUserRequest |
addTagsEntry(java.lang.String key,
java.lang.String value)
One or more tags.
|
CreateUserRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDirectoryUserId()
The identifier of the user account in the directory used for identity
management.
|
java.lang.String |
getHierarchyGroupId()
The identifier of the hierarchy group for the user.
|
UserIdentityInfo |
getIdentityInfo()
The information about the identity of the user.
|
java.lang.String |
getInstanceId()
The identifier of the Amazon Connect instance.
|
java.lang.String |
getPassword()
The password for the user account.
|
UserPhoneConfig |
getPhoneConfig()
The phone settings for the user.
|
java.lang.String |
getRoutingProfileId()
The identifier of the routing profile for the user.
|
java.util.List<java.lang.String> |
getSecurityProfileIds()
The identifier of the security profile for the user.
|
java.util.Map<java.lang.String,java.lang.String> |
getTags()
One or more tags.
|
java.lang.String |
getUsername()
The user name for the account.
|
int |
hashCode() |
void |
setDirectoryUserId(java.lang.String directoryUserId)
The identifier of the user account in the directory used for identity
management.
|
void |
setHierarchyGroupId(java.lang.String hierarchyGroupId)
The identifier of the hierarchy group for the user.
|
void |
setIdentityInfo(UserIdentityInfo identityInfo)
The information about the identity of the user.
|
void |
setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
void |
setPassword(java.lang.String password)
The password for the user account.
|
void |
setPhoneConfig(UserPhoneConfig phoneConfig)
The phone settings for the user.
|
void |
setRoutingProfileId(java.lang.String routingProfileId)
The identifier of the routing profile for the user.
|
void |
setSecurityProfileIds(java.util.Collection<java.lang.String> securityProfileIds)
The identifier of the security profile for the user.
|
void |
setTags(java.util.Map<java.lang.String,java.lang.String> tags)
One or more tags.
|
void |
setUsername(java.lang.String username)
The user name for the account.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateUserRequest |
withDirectoryUserId(java.lang.String directoryUserId)
The identifier of the user account in the directory used for identity
management.
|
CreateUserRequest |
withHierarchyGroupId(java.lang.String hierarchyGroupId)
The identifier of the hierarchy group for the user.
|
CreateUserRequest |
withIdentityInfo(UserIdentityInfo identityInfo)
The information about the identity of the user.
|
CreateUserRequest |
withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
CreateUserRequest |
withPassword(java.lang.String password)
The password for the user account.
|
CreateUserRequest |
withPhoneConfig(UserPhoneConfig phoneConfig)
The phone settings for the user.
|
CreateUserRequest |
withRoutingProfileId(java.lang.String routingProfileId)
The identifier of the routing profile for the user.
|
CreateUserRequest |
withSecurityProfileIds(java.util.Collection<java.lang.String> securityProfileIds)
The identifier of the security profile for the user.
|
CreateUserRequest |
withSecurityProfileIds(java.lang.String... securityProfileIds)
The identifier of the security profile for the user.
|
CreateUserRequest |
withTags(java.util.Map<java.lang.String,java.lang.String> tags)
One or more tags.
|
CreateUserRequest |
withUsername(java.lang.String username)
The user name for the account.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getUsername()
The user name for the account. For instances not using SAML for identity management, the user name can include up to 20 characters. If you are using SAML for identity management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+.
Constraints:
Length: 1 - 100
The user name for the account. For instances not using SAML for identity management, the user name can include up to 20 characters. If you are using SAML for identity management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+.
public void setUsername(java.lang.String username)
The user name for the account. For instances not using SAML for identity management, the user name can include up to 20 characters. If you are using SAML for identity management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+.
Constraints:
Length: 1 - 100
username
- The user name for the account. For instances not using SAML for identity management, the user name can include up to 20 characters. If you are using SAML for identity management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+.
public CreateUserRequest withUsername(java.lang.String username)
The user name for the account. For instances not using SAML for identity management, the user name can include up to 20 characters. If you are using SAML for identity management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
username
- The user name for the account. For instances not using SAML for identity management, the user name can include up to 20 characters. If you are using SAML for identity management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+.
public java.lang.String getPassword()
The password for the user account. A password is required if you are using Amazon Connect for identity management. Otherwise, it is an error to include a password.
Constraints:
Pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d\S]{8,64}$/
The password for the user account. A password is required if you are using Amazon Connect for identity management. Otherwise, it is an error to include a password.
public void setPassword(java.lang.String password)
The password for the user account. A password is required if you are using Amazon Connect for identity management. Otherwise, it is an error to include a password.
Constraints:
Pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d\S]{8,64}$/
password
- The password for the user account. A password is required if you are using Amazon Connect for identity management. Otherwise, it is an error to include a password.
public CreateUserRequest withPassword(java.lang.String password)
The password for the user account. A password is required if you are using Amazon Connect for identity management. Otherwise, it is an error to include a password.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d\S]{8,64}$/
password
- The password for the user account. A password is required if you are using Amazon Connect for identity management. Otherwise, it is an error to include a password.
public UserIdentityInfo getIdentityInfo()
The information about the identity of the user.
The information about the identity of the user.
public void setIdentityInfo(UserIdentityInfo identityInfo)
The information about the identity of the user.
identityInfo
- The information about the identity of the user.
public CreateUserRequest withIdentityInfo(UserIdentityInfo identityInfo)
The information about the identity of the user.
Returns a reference to this object so that method calls can be chained together.
identityInfo
- The information about the identity of the user.
public UserPhoneConfig getPhoneConfig()
The phone settings for the user.
The phone settings for the user.
public void setPhoneConfig(UserPhoneConfig phoneConfig)
The phone settings for the user.
phoneConfig
- The phone settings for the user.
public CreateUserRequest withPhoneConfig(UserPhoneConfig phoneConfig)
The phone settings for the user.
Returns a reference to this object so that method calls can be chained together.
phoneConfig
- The phone settings for the user.
public java.lang.String getDirectoryUserId()
The identifier of the user account in the directory used for identity management. If Amazon Connect cannot access the directory, you can specify this identifier to authenticate users. If you include the identifier, we assume that Amazon Connect cannot access the directory. Otherwise, the identity information is used to authenticate users from your directory.
This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an error is returned.
The identifier of the user account in the directory used for identity management. If Amazon Connect cannot access the directory, you can specify this identifier to authenticate users. If you include the identifier, we assume that Amazon Connect cannot access the directory. Otherwise, the identity information is used to authenticate users from your directory.
This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an error is returned.
public void setDirectoryUserId(java.lang.String directoryUserId)
The identifier of the user account in the directory used for identity management. If Amazon Connect cannot access the directory, you can specify this identifier to authenticate users. If you include the identifier, we assume that Amazon Connect cannot access the directory. Otherwise, the identity information is used to authenticate users from your directory.
This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an error is returned.
directoryUserId
- The identifier of the user account in the directory used for identity management. If Amazon Connect cannot access the directory, you can specify this identifier to authenticate users. If you include the identifier, we assume that Amazon Connect cannot access the directory. Otherwise, the identity information is used to authenticate users from your directory.
This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an error is returned.
public CreateUserRequest withDirectoryUserId(java.lang.String directoryUserId)
The identifier of the user account in the directory used for identity management. If Amazon Connect cannot access the directory, you can specify this identifier to authenticate users. If you include the identifier, we assume that Amazon Connect cannot access the directory. Otherwise, the identity information is used to authenticate users from your directory.
This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an error is returned.
Returns a reference to this object so that method calls can be chained together.
directoryUserId
- The identifier of the user account in the directory used for identity management. If Amazon Connect cannot access the directory, you can specify this identifier to authenticate users. If you include the identifier, we assume that Amazon Connect cannot access the directory. Otherwise, the identity information is used to authenticate users from your directory.
This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an error is returned.
public java.util.List<java.lang.String> getSecurityProfileIds()
The identifier of the security profile for the user.
The identifier of the security profile for the user.
public void setSecurityProfileIds(java.util.Collection<java.lang.String> securityProfileIds)
The identifier of the security profile for the user.
securityProfileIds
- The identifier of the security profile for the user.
public CreateUserRequest withSecurityProfileIds(java.lang.String... securityProfileIds)
The identifier of the security profile for the user.
Returns a reference to this object so that method calls can be chained together.
securityProfileIds
- The identifier of the security profile for the user.
public CreateUserRequest withSecurityProfileIds(java.util.Collection<java.lang.String> securityProfileIds)
The identifier of the security profile for the user.
Returns a reference to this object so that method calls can be chained together.
securityProfileIds
- The identifier of the security profile for the user.
public java.lang.String getRoutingProfileId()
The identifier of the routing profile for the user.
The identifier of the routing profile for the user.
public void setRoutingProfileId(java.lang.String routingProfileId)
The identifier of the routing profile for the user.
routingProfileId
- The identifier of the routing profile for the user.
public CreateUserRequest withRoutingProfileId(java.lang.String routingProfileId)
The identifier of the routing profile for the user.
Returns a reference to this object so that method calls can be chained together.
routingProfileId
- The identifier of the routing profile for the user.
public java.lang.String getHierarchyGroupId()
The identifier of the hierarchy group for the user.
The identifier of the hierarchy group for the user.
public void setHierarchyGroupId(java.lang.String hierarchyGroupId)
The identifier of the hierarchy group for the user.
hierarchyGroupId
- The identifier of the hierarchy group for the user.
public CreateUserRequest withHierarchyGroupId(java.lang.String hierarchyGroupId)
The identifier of the hierarchy group for the user.
Returns a reference to this object so that method calls can be chained together.
hierarchyGroupId
- The identifier of the hierarchy group for the user.
public java.lang.String getInstanceId()
The identifier of the Amazon Connect instance.
Constraints:
Length: 1 - 100
The identifier of the Amazon Connect instance.
public void setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
Constraints:
Length: 1 - 100
instanceId
- The identifier of the Amazon Connect instance.
public CreateUserRequest withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
instanceId
- The identifier of the Amazon Connect instance.
public java.util.Map<java.lang.String,java.lang.String> getTags()
One or more tags.
One or more tags.
public void setTags(java.util.Map<java.lang.String,java.lang.String> tags)
One or more tags.
tags
- One or more tags.
public CreateUserRequest withTags(java.util.Map<java.lang.String,java.lang.String> tags)
One or more tags.
Returns a reference to this object so that method calls can be chained together.
tags
- One or more tags.
public CreateUserRequest addTagsEntry(java.lang.String key, java.lang.String value)
One or more tags.
The method adds a new key-value pair into Tags parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Tags.value
- The corresponding value of the entry to be added into Tags.public CreateUserRequest clearTagsEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.