PhoneNumberSearchResult Class
- java.
lang. Object - com.
azure. communication. phonenumbers. models. PhoneNumberSearchResult
- com.
public final class PhoneNumberSearchResult
The PhoneNumberSearchResult model.
Constructor Summary
Constructor | Description | |
---|---|---|
PhoneNumberSearchResult() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Phone |
getAssignmentType()
Get the assignment |
Phone |
getCapabilities()
Get the capabilities property: Capabilities of a phone number. |
Phone |
getCost()
Get the cost property: The incurred cost for a single phone number. |
Phone |
getPhoneNumberType()
Get the phone |
List<String> |
getPhoneNumbers()
Get the phone |
Offset |
getSearchExpiresBy()
Get the search |
String |
getSearchId()
Get the search |
Methods inherited from java.lang.Object
Constructor Details
PhoneNumberSearchResult
public PhoneNumberSearchResult()
Method Details
getAssignmentType
public PhoneNumberAssignmentType getAssignmentType()
Get the assignmentType property: Phone number's assignment type.
Returns:
getCapabilities
public PhoneNumberCapabilities getCapabilities()
Get the capabilities property: Capabilities of a phone number.
Returns:
getCost
public PhoneNumberCost getCost()
Get the cost property: The incurred cost for a single phone number.
Returns:
getPhoneNumberType
public PhoneNumberType getPhoneNumberType()
Get the phoneNumberType property: The phone number's type, e.g. geographic, or tollFree.
Returns:
getPhoneNumbers
public List
Get the phoneNumbers property: The phone numbers that are available. Can be fewer than the desired search quantity.
Returns:
getSearchExpiresBy
public OffsetDateTime getSearchExpiresBy()
Get the searchExpiresBy property: The date that this search result expires and phone numbers are no longer on hold. A search result expires in less than 15min, e.g. 2020-11-19T16:31:49.048Z.
Returns:
getSearchId
public String getSearchId()
Get the searchId property: The search id.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for