public class Service extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Service.ScanMessageContent |
Modifier and Type | Method and Description |
---|---|
static ServiceCreator |
creator(String friendlyName)
Create a ServiceCreator to execute create.
|
static ServiceDeleter |
deleter(String pathSid)
Create a ServiceDeleter to execute delete.
|
boolean |
equals(Object o) |
static ServiceFetcher |
fetcher(String pathSid)
Create a ServiceFetcher to execute fetch.
|
static Service |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Service object using the provided
ObjectMapper.
|
static Service |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Service object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The The account_sid.
|
Boolean |
getAreaCodeGeomatch()
Returns The The area_code_geomatch.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
HttpMethod |
getFallbackMethod()
Returns The The fallback_method.
|
Boolean |
getFallbackToLongCode()
Returns The The fallback_to_long_code.
|
URI |
getFallbackUrl()
Returns The The fallback_url.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
HttpMethod |
getInboundMethod()
Returns The The inbound_method.
|
URI |
getInboundRequestUrl()
Returns The The inbound_request_url.
|
Map<String,String> |
getLinks()
Returns The The links.
|
Boolean |
getMmsConverter()
Returns The The mms_converter.
|
Service.ScanMessageContent |
getScanMessageContent()
Returns The The scan_message_content.
|
String |
getSid()
Returns The The sid.
|
Boolean |
getSmartEncoding()
Returns The The smart_encoding.
|
URI |
getStatusCallback()
Returns The The status_callback.
|
Boolean |
getStickySender()
Returns The The sticky_sender.
|
URI |
getUrl()
Returns The The url.
|
Integer |
getValidityPeriod()
Returns The The validity_period.
|
int |
hashCode() |
static ServiceReader |
reader()
Create a ServiceReader to execute read.
|
String |
toString() |
static ServiceUpdater |
updater(String pathSid)
Create a ServiceUpdater to execute update.
|
public static ServiceCreator creator(String friendlyName)
friendlyName
- The friendly_namepublic static ServiceUpdater updater(String pathSid)
pathSid
- The sidpublic static ServiceReader reader()
public static ServiceFetcher fetcher(String pathSid)
pathSid
- The sidpublic static ServiceDeleter deleter(String pathSid)
pathSid
- The sidpublic static Service fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Service fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getFriendlyName()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getInboundRequestUrl()
public final HttpMethod getInboundMethod()
public final URI getFallbackUrl()
public final HttpMethod getFallbackMethod()
public final URI getStatusCallback()
public final Boolean getStickySender()
public final Boolean getMmsConverter()
public final Boolean getSmartEncoding()
public final Service.ScanMessageContent getScanMessageContent()
public final Boolean getFallbackToLongCode()
public final Boolean getAreaCodeGeomatch()
public final Integer getValidityPeriod()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.