Class TelephonyPhoneNumbers

java.lang.Object
com.azure.resourcemanager.botservice.models.TelephonyPhoneNumbers
All Implemented Interfaces:
com.azure.json.JsonSerializable<TelephonyPhoneNumbers>

public final class TelephonyPhoneNumbers extends Object implements com.azure.json.JsonSerializable<TelephonyPhoneNumbers>
A telephone number for the Telephony channel.
  • Constructor Details

    • TelephonyPhoneNumbers

      public TelephonyPhoneNumbers()
      Creates an instance of TelephonyPhoneNumbers class.
  • Method Details

    • id

      public String id()
      Get the id property: The element id.
      Returns:
      the id value.
    • withId

      public TelephonyPhoneNumbers withId(String id)
      Set the id property: The element id.
      Parameters:
      id - the id value to set.
      Returns:
      the TelephonyPhoneNumbers object itself.
    • phoneNumber

      public String phoneNumber()
      Get the phoneNumber property: The phone number.
      Returns:
      the phoneNumber value.
    • withPhoneNumber

      public TelephonyPhoneNumbers withPhoneNumber(String phoneNumber)
      Set the phoneNumber property: The phone number.
      Parameters:
      phoneNumber - the phoneNumber value to set.
      Returns:
      the TelephonyPhoneNumbers object itself.
    • acsEndpoint

      public String acsEndpoint()
      Get the acsEndpoint property: The endpoint of ACS.
      Returns:
      the acsEndpoint value.
    • withAcsEndpoint

      public TelephonyPhoneNumbers withAcsEndpoint(String acsEndpoint)
      Set the acsEndpoint property: The endpoint of ACS.
      Parameters:
      acsEndpoint - the acsEndpoint value to set.
      Returns:
      the TelephonyPhoneNumbers object itself.
    • acsSecret

      public String acsSecret()
      Get the acsSecret property: The secret of ACS.
      Returns:
      the acsSecret value.
    • withAcsSecret

      public TelephonyPhoneNumbers withAcsSecret(String acsSecret)
      Set the acsSecret property: The secret of ACS.
      Parameters:
      acsSecret - the acsSecret value to set.
      Returns:
      the TelephonyPhoneNumbers object itself.
    • acsResourceId

      public String acsResourceId()
      Get the acsResourceId property: The resource id of ACS.
      Returns:
      the acsResourceId value.
    • withAcsResourceId

      public TelephonyPhoneNumbers withAcsResourceId(String acsResourceId)
      Set the acsResourceId property: The resource id of ACS.
      Parameters:
      acsResourceId - the acsResourceId value to set.
      Returns:
      the TelephonyPhoneNumbers object itself.
    • cognitiveServiceSubscriptionKey

      public String cognitiveServiceSubscriptionKey()
      Get the cognitiveServiceSubscriptionKey property: The subscription key of cognitive service.
      Returns:
      the cognitiveServiceSubscriptionKey value.
    • withCognitiveServiceSubscriptionKey

      public TelephonyPhoneNumbers withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)
      Set the cognitiveServiceSubscriptionKey property: The subscription key of cognitive service.
      Parameters:
      cognitiveServiceSubscriptionKey - the cognitiveServiceSubscriptionKey value to set.
      Returns:
      the TelephonyPhoneNumbers object itself.
    • cognitiveServiceRegion

      public String cognitiveServiceRegion()
      Get the cognitiveServiceRegion property: The service region of cognitive service.
      Returns:
      the cognitiveServiceRegion value.
    • withCognitiveServiceRegion

      public TelephonyPhoneNumbers withCognitiveServiceRegion(String cognitiveServiceRegion)
      Set the cognitiveServiceRegion property: The service region of cognitive service.
      Parameters:
      cognitiveServiceRegion - the cognitiveServiceRegion value to set.
      Returns:
      the TelephonyPhoneNumbers object itself.
    • cognitiveServiceResourceId

      public String cognitiveServiceResourceId()
      Get the cognitiveServiceResourceId property: The resource id of cognitive service.
      Returns:
      the cognitiveServiceResourceId value.
    • withCognitiveServiceResourceId

      public TelephonyPhoneNumbers withCognitiveServiceResourceId(String cognitiveServiceResourceId)
      Set the cognitiveServiceResourceId property: The resource id of cognitive service.
      Parameters:
      cognitiveServiceResourceId - the cognitiveServiceResourceId value to set.
      Returns:
      the TelephonyPhoneNumbers object itself.
    • defaultLocale

      public String defaultLocale()
      Get the defaultLocale property: The default locale of the phone number.
      Returns:
      the defaultLocale value.
    • withDefaultLocale

      public TelephonyPhoneNumbers withDefaultLocale(String defaultLocale)
      Set the defaultLocale property: The default locale of the phone number.
      Parameters:
      defaultLocale - the defaultLocale value to set.
      Returns:
      the TelephonyPhoneNumbers object itself.
    • offerType

      public String offerType()
      Get the offerType property: Optional Property that will determine the offering type of the phone.
      Returns:
      the offerType value.
    • withOfferType

      public TelephonyPhoneNumbers withOfferType(String offerType)
      Set the offerType property: Optional Property that will determine the offering type of the phone.
      Parameters:
      offerType - the offerType value to set.
      Returns:
      the TelephonyPhoneNumbers object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TelephonyPhoneNumbers>
      Throws:
      IOException
    • fromJson

      public static TelephonyPhoneNumbers fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TelephonyPhoneNumbers from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TelephonyPhoneNumbers if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the TelephonyPhoneNumbers.