Package com.twilio.rest.pricing.v1.voice
Class Number
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.pricing.v1.voice.Number
-
- All Implemented Interfaces:
Serializable
public class Number extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static NumberFetcher
fetcher(PhoneNumber pathNumber)
Create a NumberFetcher to execute fetch.static Number
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Number object using the provided ObjectMapper.static Number
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Number object using the provided ObjectMapper.String
getCountry()
Returns The The name of the country.InboundCallPrice
getInboundCallPrice()
Returns The The InboundCallPrice record.String
getIsoCountry()
Returns The The ISO country code.PhoneNumber
getNumber()
Returns The The phone number.OutboundCallPrice
getOutboundCallPrice()
Returns The The OutboundCallPrice record.Currency
getPriceUnit()
Returns The The currency in which prices are measured, in ISO 4127 format (e.g.URI
getUrl()
Returns The The absolute URL of the resource.int
hashCode()
String
toString()
-
-
-
Method Detail
-
fetcher
public static NumberFetcher fetcher(PhoneNumber pathNumber)
Create a NumberFetcher to execute fetch.- Parameters:
pathNumber
- The phone number to fetch- Returns:
- NumberFetcher capable of executing the fetch
-
fromJson
public static Number fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Number object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Number object represented by the provided JSON
-
fromJson
public static Number fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Number object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Number object represented by the provided JSON
-
getNumber
public final PhoneNumber getNumber()
Returns The The phone number.- Returns:
- The phone number
-
getCountry
public final String getCountry()
Returns The The name of the country.- Returns:
- The name of the country
-
getIsoCountry
public final String getIsoCountry()
Returns The The ISO country code.- Returns:
- The ISO country code
-
getOutboundCallPrice
public final OutboundCallPrice getOutboundCallPrice()
Returns The The OutboundCallPrice record.- Returns:
- The OutboundCallPrice record
-
getInboundCallPrice
public final InboundCallPrice getInboundCallPrice()
Returns The The InboundCallPrice record.- Returns:
- The InboundCallPrice record
-
getPriceUnit
public final Currency getPriceUnit()
Returns The The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy).- Returns:
- The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy)
-
getUrl
public final URI getUrl()
Returns The The absolute URL of the resource.- Returns:
- The absolute URL of the resource
-
-