Package com.twilio.rest.lookups.v2
Class PhoneNumber
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.lookups.v2.PhoneNumber
-
- All Implemented Interfaces:
Serializable
public class PhoneNumber extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PhoneNumber.ValidationError
-
Method Summary
-
-
-
Method Detail
-
fetcher
public static PhoneNumberFetcher fetcher(String pathPhoneNumber)
-
fromJson
public static PhoneNumber fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a PhoneNumber object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- PhoneNumber object represented by the provided JSON
-
fromJson
public static PhoneNumber fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a PhoneNumber object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- PhoneNumber object represented by the provided JSON
-
getCallingCountryCode
public final String getCallingCountryCode()
-
getCountryCode
public final String getCountryCode()
-
getPhoneNumber
public final PhoneNumber getPhoneNumber()
-
getNationalFormat
public final String getNationalFormat()
-
getValid
public final Boolean getValid()
-
getValidationErrors
public final List<PhoneNumber.ValidationError> getValidationErrors()
-
getUrl
public final URI getUrl()
-
-