java.lang.Object
com.azure.communication.phonenumbers.siprouting.models.SipTrunkRoute

public final class SipTrunkRoute extends Object
Represents a trunk route for routing calls.
  • Constructor Details

    • SipTrunkRoute

      public SipTrunkRoute(String name, String numberPattern)
      Constructor with required properties.
      Parameters:
      name - the name of the route.
      numberPattern - the regex number pattern for routing calls.
  • Method Details

    • getDescription

      public String getDescription()
      Get the description property: Gets or sets description of the route.
      Returns:
      the description value.
    • setDescription

      public SipTrunkRoute setDescription(String description)
      Set the description property: Gets or sets description of the route.
      Parameters:
      description - the description value to set.
      Returns:
      the SipTrunkRoute object itself.
    • getName

      public String getName()
      Get the name property: Gets or sets name of the route.
      Returns:
      the name value.
    • getNumberPattern

      public String getNumberPattern()
      Get the numberPattern property: Gets or sets regex number pattern for routing calls. .NET regex format is supported. The regex should match only digits with an optional '+' prefix without spaces. I.e. "^\+[1-9][0-9]{3,23}$".
      Returns:
      the numberPattern value.
    • getTrunks

      public List<String> getTrunks()
      Get the trunks property: Gets or sets list of SIP trunks for routing calls. Trunks are represented as FQDN.
      Returns:
      the trunks value.
    • setTrunks

      public SipTrunkRoute setTrunks(List<String> trunks)
      Set the trunks property: Gets or sets list of SIP trunks for routing calls. Trunks are represented as FQDN.
      Parameters:
      trunks - the trunks value to set.
      Returns:
      the SipTrunkRoute object itself.