Interface CreateUserRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ConnectRequest.Builder
,CopyableBuilder<CreateUserRequest.Builder,
,CreateUserRequest> SdkBuilder<CreateUserRequest.Builder,
,CreateUserRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateUserRequest
-
Method Summary
Modifier and TypeMethodDescriptiondirectoryUserId
(String directoryUserId) The identifier of the user account in the directory used for identity management.hierarchyGroupId
(String hierarchyGroupId) The identifier of the hierarchy group for the user.default CreateUserRequest.Builder
identityInfo
(Consumer<UserIdentityInfo.Builder> identityInfo) The information about the identity of the user.identityInfo
(UserIdentityInfo identityInfo) The information about the identity of the user.instanceId
(String instanceId) The identifier of the Amazon Connect instance.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The password for the user account.default CreateUserRequest.Builder
phoneConfig
(Consumer<UserPhoneConfig.Builder> phoneConfig) The phone settings for the user.phoneConfig
(UserPhoneConfig phoneConfig) The phone settings for the user.routingProfileId
(String routingProfileId) The identifier of the routing profile for the user.securityProfileIds
(String... securityProfileIds) The identifier of the security profile for the user.securityProfileIds
(Collection<String> securityProfileIds) The identifier of the security profile for the user.The tags used to organize, track, or control access for this resource.The user name for the account.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.connect.model.ConnectRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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_-.\@]+.
Username can include @ only if used in an email format. For example:
-
Correct: testuser
-
Correct: testuser@example.com
-
Incorrect: testuser@example
- Parameters:
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_-.\@]+.Username can include @ only if used in an email format. For example:
-
Correct: testuser
-
Correct: testuser@example.com
-
Incorrect: testuser@example
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
identityInfo
The information about the identity of the user.
- Parameters:
identityInfo
- The information about the identity of the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identityInfo
The information about the identity of the user.
This is a convenience method that creates an instance of theUserIdentityInfo.Builder
avoiding the need to create one manually viaUserIdentityInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toidentityInfo(UserIdentityInfo)
.- Parameters:
identityInfo
- a consumer that will call methods onUserIdentityInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
phoneConfig
The phone settings for the user.
- Parameters:
phoneConfig
- The phone settings for the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phoneConfig
The phone settings for the user.
This is a convenience method that creates an instance of theUserPhoneConfig.Builder
avoiding the need to create one manually viaUserPhoneConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tophoneConfig(UserPhoneConfig)
.- Parameters:
phoneConfig
- a consumer that will call methods onUserPhoneConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
securityProfileIds
The identifier of the security profile for the user.
- Parameters:
securityProfileIds
- The identifier of the security profile for the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityProfileIds
The identifier of the security profile for the user.
- Parameters:
securityProfileIds
- The identifier of the security profile for the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routingProfileId
The identifier of the routing profile for the user.
- Parameters:
routingProfileId
- The identifier of the routing profile for the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hierarchyGroupId
The identifier of the hierarchy group for the user.
- Parameters:
hierarchyGroupId
- The identifier of the hierarchy group for the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
- Parameters:
instanceId
- The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
- Parameters:
tags
- The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateUserRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateUserRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-