Class Voice.Builder

Enclosing class:
Voice

  • Constructor Details

  • Method Details

    • region

      public Voice.Builder region(Region 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

      public Voice.Builder signedCallbacks(boolean signed)
      Whether to use signed webhooks. See the documentation on webhooks for details.
      Parameters:
      signed - true to use signed webhooks, false otherwise.
      Returns:
      This builder.
      Since:
      7.7.0
    • conversationsTtl

      public Voice.Builder conversationsTtl(int ttl)
      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

      public Voice.Builder legPersistenceTime(int 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

      public Voice.Builder addWebhook(Webhook.Type type, Webhook webhook)
    • removeWebhook

    • build

      public Voice build()
      Builds the Voice object.
      Specified by:
      build in class Capability.Builder<Voice,Voice.Builder>
      Returns:
      A new Voice capability containing the configured properties.