Package com.twilio.rest.pricing.v2.voice
Class Number
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.pricing.v2.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 pathDestinationNumber)
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()
PhoneNumber
getDestinationNumber()
InboundCallPrice
getInboundCallPrice()
String
getIsoCountry()
PhoneNumber
getOriginationNumber()
List<OutboundCallPriceWithOrigin>
getOutboundCallPrices()
Currency
getPriceUnit()
URI
getUrl()
int
hashCode()
-
-
-
Method Detail
-
fetcher
public static NumberFetcher fetcher(PhoneNumber pathDestinationNumber)
-
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
-
getDestinationNumber
public final PhoneNumber getDestinationNumber()
-
getOriginationNumber
public final PhoneNumber getOriginationNumber()
-
getCountry
public final String getCountry()
-
getIsoCountry
public final String getIsoCountry()
-
getOutboundCallPrices
public final List<OutboundCallPriceWithOrigin> getOutboundCallPrices()
-
getInboundCallPrice
public final InboundCallPrice getInboundCallPrice()
-
getPriceUnit
public final Currency getPriceUnit()
-
getUrl
public final URI getUrl()
-
-