Constructor and Description |
---|
FlexFlowCreator(String friendlyName,
String chatServiceSid,
FlexFlow.ChannelType channelType)
Construct a new FlexFlowCreator.
|
Modifier and Type | Method and Description |
---|---|
FlexFlow |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
FlexFlowCreator |
setContactIdentity(String contactIdentity)
The channel contact's Identity..
|
FlexFlowCreator |
setEnabled(Boolean enabled)
Whether the new Flex Flow is enabled..
|
FlexFlowCreator |
setIntegrationChannel(String integrationChannel)
The Task Channel SID (TCXXXX) or unique name (e.g., `sms`) to use for the
Task that will be created.
|
FlexFlowCreator |
setIntegrationCreationOnMessage(Boolean integrationCreationOnMessage)
In the context of outbound messaging, defines whether to create a Task
immediately (and therefore reserve the conversation to current agent), or
delay Task creation until the customer sends the first response.
|
FlexFlowCreator |
setIntegrationFlowSid(String integrationFlowSid)
The SID of the Studio Flow.
|
FlexFlowCreator |
setIntegrationPriority(Integer integrationPriority)
The Task priority of a new Task.
|
FlexFlowCreator |
setIntegrationRetryCount(Integer integrationRetryCount)
The number of times to retry the webhook if the first attempt fails.
|
FlexFlowCreator |
setIntegrationTimeout(Integer integrationTimeout)
The Task timeout in seconds for a new Task.
|
FlexFlowCreator |
setIntegrationType(FlexFlow.IntegrationType integrationType)
The software that will handle inbound messages.
|
FlexFlowCreator |
setIntegrationUrl(String integrationUrl)
The URL of the external webhook.
|
FlexFlowCreator |
setIntegrationUrl(URI integrationUrl)
The URL of the external webhook.
|
FlexFlowCreator |
setIntegrationWorkflowSid(String integrationWorkflowSid)
The Workflow SID for a new Task.
|
FlexFlowCreator |
setIntegrationWorkspaceSid(String integrationWorkspaceSid)
The Workspace SID for a new Task.
|
FlexFlowCreator |
setJanitorEnabled(Boolean janitorEnabled)
When enabled, the Messaging Channel Janitor will remove active Proxy sessions
if the associated Task is deleted outside of the Flex UI.
|
FlexFlowCreator |
setLongLived(Boolean longLived)
When enabled, Flex will keep the chat channel active so that it may be used
for subsequent interactions with a contact identity.
|
create, createAsync, createAsync
public FlexFlowCreator(String friendlyName, String chatServiceSid, FlexFlow.ChannelType channelType)
friendlyName
- A string to describe the resourcechatServiceSid
- The SID of the chat servicechannelType
- The channel typepublic FlexFlowCreator setContactIdentity(String contactIdentity)
contactIdentity
- The channel contact's Identitypublic FlexFlowCreator setEnabled(Boolean enabled)
enabled
- Whether the new Flex Flow is enabledpublic FlexFlowCreator setIntegrationType(FlexFlow.IntegrationType integrationType)
integrationType
- The software that will handle inbound messages.public FlexFlowCreator setIntegrationFlowSid(String integrationFlowSid)
integrationFlowSid
- The SID of the Studio Flowpublic FlexFlowCreator setIntegrationUrl(URI integrationUrl)
integrationUrl
- The External Webhook URLpublic FlexFlowCreator setIntegrationUrl(String integrationUrl)
integrationUrl
- The External Webhook URLpublic FlexFlowCreator setIntegrationWorkspaceSid(String integrationWorkspaceSid)
integrationWorkspaceSid
- The Workspace SID for a new Taskpublic FlexFlowCreator setIntegrationWorkflowSid(String integrationWorkflowSid)
integrationWorkflowSid
- The Workflow SID for a new Taskpublic FlexFlowCreator setIntegrationChannel(String integrationChannel)
integrationChannel
- The Task Channel for a new Taskpublic FlexFlowCreator setIntegrationTimeout(Integer integrationTimeout)
integrationTimeout
- The Task timeout in seconds for a new Taskpublic FlexFlowCreator setIntegrationPriority(Integer integrationPriority)
integrationPriority
- The Task priority of a new Taskpublic FlexFlowCreator setIntegrationCreationOnMessage(Boolean integrationCreationOnMessage)
integrationCreationOnMessage
- Whether to create a Task when the first
message arrivespublic FlexFlowCreator setLongLived(Boolean longLived)
longLived
- Reuse this chat channel for future interactions with a
contactpublic FlexFlowCreator setJanitorEnabled(Boolean janitorEnabled)
janitorEnabled
- Remove active Proxy sessions if the corresponding Task
is deletedpublic FlexFlowCreator setIntegrationRetryCount(Integer integrationRetryCount)
integrationRetryCount
- The number of times to retry the webhook if the
first attempt failspublic FlexFlow create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.