public class RatePlan extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
RatePlan.DataLimitStrategy |
Modifier and Type | Method and Description |
---|---|
static RatePlanCreator |
creator()
Create a RatePlanCreator to execute create.
|
static RatePlanDeleter |
deleter(String pathSid)
Create a RatePlanDeleter to execute delete.
|
boolean |
equals(Object o) |
static RatePlanFetcher |
fetcher(String pathSid)
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 SID of the Account that created the resource.
|
Boolean |
getDataEnabled()
Returns Whether SIMs can use GPRS/3G/4G/LTE data connectivity.
|
Integer |
getDataLimit()
Returns The total data usage in Megabytes that the Network allows during one
month on the home network.
|
String |
getDataMetering()
Returns The model used to meter data usage.
|
ZonedDateTime |
getDateCreated()
Returns The date when the resource was created, given as GMT in ISO 8601
format.
|
ZonedDateTime |
getDateUpdated()
Returns The date when the resource was last updated, given as GMT in ISO 8601
format.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
List<String> |
getInternationalRoaming()
Returns The services that SIMs capable of using GPRS/3G/4G/LTE data
connectivity can use outside of the United States.
|
Integer |
getInternationalRoamingDataLimit()
Returns The total data usage (download and upload combined) in Megabytes that
the Network allows during one month when roaming outside the United States.
|
Boolean |
getMessagingEnabled()
Returns Whether SIMs can make, send, and receive SMS using Commands.
|
Integer |
getNationalRoamingDataLimit()
Returns The total data usage in Megabytes that the Network allows during one
month on non-home networks in the United States.
|
Boolean |
getNationalRoamingEnabled()
Returns Whether SIMs can roam on networks other than the home network in the
United States.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
String |
getUniqueName()
Returns An application-defined string that uniquely identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
Boolean |
getVoiceEnabled()
Returns Deprecated.
|
int |
hashCode() |
static RatePlanReader |
reader()
Create a RatePlanReader to execute read.
|
static RatePlanUpdater |
updater(String pathSid)
Create a RatePlanUpdater to execute update.
|
public static RatePlanReader reader()
public static RatePlanFetcher fetcher(String pathSid)
pathSid
- The SID that identifies the resource to fetchpublic static RatePlanCreator creator()
public static RatePlanUpdater updater(String pathSid)
pathSid
- The SID that identifies the resource to updatepublic static RatePlanDeleter deleter(String pathSid)
pathSid
- The SID that identifies the resource to deletepublic 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()
public final String getUniqueName()
public final String getAccountSid()
public final String getFriendlyName()
public final Boolean getDataEnabled()
public final String getDataMetering()
public final Integer getDataLimit()
public final Boolean getMessagingEnabled()
public final Boolean getVoiceEnabled()
public final Boolean getNationalRoamingEnabled()
public final Integer getNationalRoamingDataLimit()
public final List<String> getInternationalRoaming()
public final Integer getInternationalRoamingDataLimit()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.