public class RatePlan extends SidResource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static RatePlanFetcher |
fetch(String sid)
Create a RatePlanFetcher to execute fetch.
|
static RatePlan |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a RatePlan object using the provided
ObjectMapper.
|
static RatePlan |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a RatePlan object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The The account_sid.
|
String |
getAlias()
Returns The The alias.
|
Map<String,Object> |
getCapabilities()
Returns The The capabilities.
|
Integer |
getCapPeriod()
Returns The The cap_period.
|
String |
getCapUnit()
Returns The The cap_unit.
|
Integer |
getCommandsCap()
Returns The The commands_cap.
|
Integer |
getDataCap()
Returns The The data_cap.
|
String |
getDataMetering()
Returns The The data_metering.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
Integer |
getMessagingCap()
Returns The The messaging_cap.
|
String |
getSid()
Returns The The sid.
|
URI |
getUrl()
Returns The The url.
|
Integer |
getVoiceCap()
Returns The The voice_cap.
|
int |
hashCode() |
static RatePlanReader |
read()
Create a RatePlanReader to execute read.
|
String |
toString() |
public static RatePlanReader read()
public static RatePlanFetcher fetch(String sid)
sid
- The sidpublic static RatePlan fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static RatePlan fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
getSid
in class SidResource
public final String getAlias()
public final String getAccountSid()
public final String getFriendlyName()
public final String getDataMetering()
public final Map<String,Object> getCapabilities()
public final Integer getVoiceCap()
public final Integer getMessagingCap()
public final Integer getCommandsCap()
public final Integer getDataCap()
public final Integer getCapPeriod()
public final String getCapUnit()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.