Class Voice.Builder
java.lang.Object
com.vonage.client.application.capabilities.Capability.Builder<Voice,Voice.Builder>
com.vonage.client.application.capabilities.Voice.Builder
- Enclosing class:
Voice
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddWebhook(Webhook.Type type, Webhook webhook) build()Builds the Voice object.conversationsTtl(int ttl) The length of time named conversations will remain active for after creation, in hours. 0 means infinite.legPersistenceTime(int legPersistenceTime) Persistence duration for conversation legs, in days.Selecting a region means all inbound, programmable SIP and SIP connect calls will be sent to the selected region unless the call is sent to a regional endpoint, if the call is using a regional endpoint this will override the application setting.removeWebhook(Webhook.Type type) signedCallbacks(boolean signed) Whether to use signed webhooks.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
region
Selecting a region means all inbound, programmable SIP and SIP connect calls will be sent to the selected region unless the call is sent to a regional endpoint, if the call is using a regional endpoint this will override the application setting. This is an optional parameter.- Parameters:
region- The region to process calls through as an enum.- Returns:
- This builder.
- Since:
- 7.7.0
-
signedCallbacks
Whether to use signed webhooks. See the documentation on webhooks for details.- Parameters:
signed-trueto use signed webhooks,falseotherwise.- Returns:
- This builder.
- Since:
- 7.7.0
-
conversationsTtl
The length of time named conversations will remain active for after creation, in hours. 0 means infinite. Maximum value is 744 (i.e. 31 days).- Parameters:
ttl- The conversations time-to-live in hours.- Returns:
- This builder.
- Since:
- 7.7.0
-
legPersistenceTime
Persistence duration for conversation legs, in days. Maximum value is 31, default is 7.- Parameters:
legPersistenceTime- The leg persistence time in days.- Returns:
- This builder.
- Since:
- 8.12.0
-
addWebhook
-
removeWebhook
-
build
Builds the Voice object.- Specified by:
buildin classCapability.Builder<Voice,Voice.Builder> - Returns:
- A new Voice capability containing the configured properties.
-