Class CfnQuickConnect.QuickConnectConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnQuickConnect.QuickConnectConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQuickConnect.QuickConnectConfigProperty>
- Enclosing interface:
CfnQuickConnect.QuickConnectConfigProperty
@Stability(Stable)
public static final class CfnQuickConnect.QuickConnectConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnQuickConnect.QuickConnectConfigProperty>
A builder for
CfnQuickConnect.QuickConnectConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.phoneConfig
(IResolvable phoneConfig) Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getPhoneConfig()
Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getPhoneConfig()
queueConfig
(IResolvable queueConfig) Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getQueueConfig()
Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getQueueConfig()
quickConnectType
(String quickConnectType) Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getQuickConnectType()
userConfig
(IResolvable userConfig) Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getUserConfig()
Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getUserConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
quickConnectType
@Stability(Stable) public CfnQuickConnect.QuickConnectConfigProperty.Builder quickConnectType(String quickConnectType) Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getQuickConnectType()
- Parameters:
quickConnectType
- The type of quick connect. This parameter is required. In the Amazon Connect console, when you create a quick connect, you are prompted to assign one of the following types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE).- Returns:
this
-
phoneConfig
@Stability(Stable) public CfnQuickConnect.QuickConnectConfigProperty.Builder phoneConfig(IResolvable phoneConfig) Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getPhoneConfig()
- Parameters:
phoneConfig
- The phone configuration. This is required only if QuickConnectType is PHONE_NUMBER.- Returns:
this
-
phoneConfig
@Stability(Stable) public CfnQuickConnect.QuickConnectConfigProperty.Builder phoneConfig(CfnQuickConnect.PhoneNumberQuickConnectConfigProperty phoneConfig) Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getPhoneConfig()
- Parameters:
phoneConfig
- The phone configuration. This is required only if QuickConnectType is PHONE_NUMBER.- Returns:
this
-
queueConfig
@Stability(Stable) public CfnQuickConnect.QuickConnectConfigProperty.Builder queueConfig(IResolvable queueConfig) Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getQueueConfig()
- Parameters:
queueConfig
- The queue configuration. This is required only if QuickConnectType is QUEUE.- Returns:
this
-
queueConfig
@Stability(Stable) public CfnQuickConnect.QuickConnectConfigProperty.Builder queueConfig(CfnQuickConnect.QueueQuickConnectConfigProperty queueConfig) Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getQueueConfig()
- Parameters:
queueConfig
- The queue configuration. This is required only if QuickConnectType is QUEUE.- Returns:
this
-
userConfig
@Stability(Stable) public CfnQuickConnect.QuickConnectConfigProperty.Builder userConfig(IResolvable userConfig) Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getUserConfig()
- Parameters:
userConfig
- The user configuration. This is required only if QuickConnectType is USER.- Returns:
this
-
userConfig
@Stability(Stable) public CfnQuickConnect.QuickConnectConfigProperty.Builder userConfig(CfnQuickConnect.UserQuickConnectConfigProperty userConfig) Sets the value ofCfnQuickConnect.QuickConnectConfigProperty.getUserConfig()
- Parameters:
userConfig
- The user configuration. This is required only if QuickConnectType is USER.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnQuickConnect.QuickConnectConfigProperty>
- Returns:
- a new instance of
CfnQuickConnect.QuickConnectConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-