Class CfnUser.UserPhoneConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnUser.UserPhoneConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUser.UserPhoneConfigProperty>
- Enclosing interface:
CfnUser.UserPhoneConfigProperty
@Stability(Stable)
public static final class CfnUser.UserPhoneConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUser.UserPhoneConfigProperty>
A builder for
CfnUser.UserPhoneConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterContactWorkTimeLimit
(Number afterContactWorkTimeLimit) Sets the value ofCfnUser.UserPhoneConfigProperty.getAfterContactWorkTimeLimit()
autoAccept
(Boolean autoAccept) Sets the value ofCfnUser.UserPhoneConfigProperty.getAutoAccept()
autoAccept
(IResolvable autoAccept) Sets the value ofCfnUser.UserPhoneConfigProperty.getAutoAccept()
build()
Builds the configured instance.deskPhoneNumber
(String deskPhoneNumber) Sets the value ofCfnUser.UserPhoneConfigProperty.getDeskPhoneNumber()
Sets the value ofCfnUser.UserPhoneConfigProperty.getPhoneType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
phoneType
Sets the value ofCfnUser.UserPhoneConfigProperty.getPhoneType()
- Parameters:
phoneType
- The phone type. This parameter is required.- Returns:
this
-
afterContactWorkTimeLimit
@Stability(Stable) public CfnUser.UserPhoneConfigProperty.Builder afterContactWorkTimeLimit(Number afterContactWorkTimeLimit) Sets the value ofCfnUser.UserPhoneConfigProperty.getAfterContactWorkTimeLimit()
- Parameters:
afterContactWorkTimeLimit
- The After Call Work (ACW) timeout setting, in seconds. This parameter has a minimum value of 0 and a maximum value of 2,000,000 seconds (24 days). Enter 0 if you don't want to allocate a specific amount of ACW time. It essentially means an indefinite amount of time. When the conversation ends, ACW starts; the agent must choose Close contact to end ACW.When returned by a
SearchUsers
call,AfterContactWorkTimeLimit
is returned in milliseconds.- Returns:
this
-
autoAccept
Sets the value ofCfnUser.UserPhoneConfigProperty.getAutoAccept()
- Parameters:
autoAccept
- The Auto accept setting.- Returns:
this
-
autoAccept
@Stability(Stable) public CfnUser.UserPhoneConfigProperty.Builder autoAccept(IResolvable autoAccept) Sets the value ofCfnUser.UserPhoneConfigProperty.getAutoAccept()
- Parameters:
autoAccept
- The Auto accept setting.- Returns:
this
-
deskPhoneNumber
@Stability(Stable) public CfnUser.UserPhoneConfigProperty.Builder deskPhoneNumber(String deskPhoneNumber) Sets the value ofCfnUser.UserPhoneConfigProperty.getDeskPhoneNumber()
- Parameters:
deskPhoneNumber
- The phone number for the user's desk phone.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUser.UserPhoneConfigProperty>
- Returns:
- a new instance of
CfnUser.UserPhoneConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-