Class PhoneNumberSearchOptions

java.lang.Object
com.azure.communication.phonenumbers.models.PhoneNumberSearchOptions

public final class PhoneNumberSearchOptions extends Object
The PhoneNumberSearchOptions model.
  • Constructor Details

    • PhoneNumberSearchOptions

      public PhoneNumberSearchOptions()
  • Method Details

    • setAreaCode

      public PhoneNumberSearchOptions setAreaCode(String areaCode)
      Sets the area code property.
      Parameters:
      areaCode - the areaCode value to set.
      Returns:
      the PhoneNumberSearchOptions object itself.
    • getAreaCode

      public String getAreaCode()
      Gets the area code property.
      Returns:
      the area code.
    • setQuantity

      public PhoneNumberSearchOptions setQuantity(Integer quantity)
      Sets the quantity property.
      Parameters:
      quantity - the quantity to set.
      Returns:
      the PhoneNumberSearchOptions object itself.
    • getQuantity

      public Integer getQuantity()
      Gets the quantity property.
      Returns:
      the quantity.
    • setLocality

      public PhoneNumberSearchOptions setLocality(String locality)
      Sets the locality property. Examples of a locality are city and town. This is applied only on geographic phone number searches.
      Parameters:
      locality - the quantity to set.
      Returns:
      the PhoneNumberSearchOptions object itself.
    • getLocality

      public String getLocality()
      Gets the locality property. Examples of a locality are city and town.
      Returns:
      the quantity.
    • setAdministrativeDivision

      public PhoneNumberSearchOptions setAdministrativeDivision(String administrativeDivision)
      Sets the administrative division property. Examples of a administrative division are state and province. This is applied only on geographic phone number searches.
      Parameters:
      administrativeDivision - the quantity to set.
      Returns:
      the PhoneNumberSearchOptions object itself.
    • getAdministrativeDivision

      public String getAdministrativeDivision()
      Gets the administrative division property. Examples of a administrative division are state and province.
      Returns:
      the quantity.