@Generated(value="software.amazon.awssdk:codegen") public final class CreateUserRequest extends ConnectRequest 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 |
directoryUserId()
The unique identifier for the user account in the directory service directory used for identity management.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
hierarchyGroupId()
The unique identifier for the hierarchy group to assign to the user created.
|
UserIdentityInfo |
identityInfo()
Information about the user, including email address, first name, and last name.
|
String |
instanceId()
The identifier for your Amazon Connect instance.
|
String |
password()
The password for the user account to create.
|
UserPhoneConfig |
phoneConfig()
Specifies the phone settings for the user, including AfterContactWorkTimeLimit, AutoAccept, DeskPhoneNumber, and
PhoneType.
|
String |
routingProfileId()
The unique identifier for the routing profile to assign to the user created.
|
List<SdkField<?>> |
sdkFields() |
List<String> |
securityProfileIds()
The unique identifier of the security profile to assign to the user created.
|
static Class<? extends CreateUserRequest.Builder> |
serializableBuilderClass() |
CreateUserRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
username()
The user name in Amazon Connect for the account to create.
|
overrideConfiguration
copy
public String username()
The user name in Amazon Connect for the account to create.
public String password()
The password for the user account to create. This is required if you are using Amazon Connect for identity
management. If you are using SAML for identity management and include this parameter, an
InvalidRequestException
is returned.
InvalidRequestException
is returned.public UserIdentityInfo identityInfo()
Information about the user, including email address, first name, and last name.
public UserPhoneConfig phoneConfig()
Specifies the phone settings for the user, including AfterContactWorkTimeLimit, AutoAccept, DeskPhoneNumber, and PhoneType.
public String directoryUserId()
The unique identifier for the user account in the directory service directory used for identity management. If
Amazon Connect is unable to access the existing directory, you can use the DirectoryUserId
to
authenticate users. If you include the parameter, it is assumed that Amazon Connect cannot access the directory.
If the parameter is not included, the UserIdentityInfo is used to authenticate users from your existing
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 InvalidRequestException
is returned.
DirectoryUserId
to authenticate users. If you include the parameter, it is assumed that
Amazon Connect cannot access the directory. If the parameter is not included, the UserIdentityInfo is
used to authenticate users from your existing 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 InvalidRequestException
is returned.
public List<String> securityProfileIds()
The unique identifier of the security profile to assign to the user created.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String routingProfileId()
The unique identifier for the routing profile to assign to the user created.
public String hierarchyGroupId()
The unique identifier for the hierarchy group to assign to the user created.
public String instanceId()
The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
public CreateUserRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateUserRequest.Builder,CreateUserRequest>
toBuilder
in class ConnectRequest
public static CreateUserRequest.Builder builder()
public static Class<? extends CreateUserRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.