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 booleanequals(Object o)static NumberFetcherfetcher(PhoneNumber pathNumber)static NumberfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Number object using the provided ObjectMapper.static NumberfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Number object using the provided ObjectMapper.StringgetCountry()InboundCallPricegetInboundCallPrice()StringgetIsoCountry()PhoneNumbergetNumber()OutboundCallPricegetOutboundCallPrice()CurrencygetPriceUnit()URIgetUrl()inthashCode()
-
-
-
Method Detail
-
fetcher
public static NumberFetcher fetcher(PhoneNumber pathNumber)
-
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()
-
getCountry
public final String getCountry()
-
getIsoCountry
public final String getIsoCountry()
-
getOutboundCallPrice
public final OutboundCallPrice getOutboundCallPrice()
-
getInboundCallPrice
public final InboundCallPrice getInboundCallPrice()
-
getPriceUnit
public final Currency getPriceUnit()
-
getUrl
public final URI getUrl()
-
-