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)
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()
InboundCallPrice
getInboundCallPrice()
String
getIsoCountry()
PhoneNumber
getNumber()
OutboundCallPrice
getOutboundCallPrice()
Currency
getPriceUnit()
URI
getUrl()
int
hashCode()
-
-
-
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()
-
-