Class PhoneNumberSearchOptions
java.lang.Object
com.azure.communication.phonenumbers.models.PhoneNumberSearchOptions
The PhoneNumberSearchOptions model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the administrative division property.Gets the area code property.Gets the locality property.Gets the quantity property.setAdministrativeDivision
(String administrativeDivision) Sets the administrative division property.setAreaCode
(String areaCode) Sets the area code property.setLocality
(String locality) Sets the locality property.setQuantity
(Integer quantity) Sets the quantity property.
-
Constructor Details
-
PhoneNumberSearchOptions
public PhoneNumberSearchOptions()
-
-
Method Details
-
setAreaCode
Sets the area code property.- Parameters:
areaCode
- the areaCode value to set.- Returns:
- the PhoneNumberSearchOptions object itself.
-
getAreaCode
Gets the area code property.- Returns:
- the area code.
-
setQuantity
Sets the quantity property.- Parameters:
quantity
- the quantity to set.- Returns:
- the PhoneNumberSearchOptions object itself.
-
getQuantity
Gets the quantity property.- Returns:
- the quantity.
-
setLocality
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
Gets the locality property. Examples of a locality are city and town.- Returns:
- the quantity.
-
setAdministrativeDivision
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
Gets the administrative division property. Examples of a administrative division are state and province.- Returns:
- the quantity.
-