public class Service extends SidResource
Modifier and Type | Method and Description |
---|---|
static ServiceCreator |
create()
Create a ServiceCreator to execute create.
|
static ServiceDeleter |
delete(String sid)
Create a ServiceDeleter to execute delete.
|
boolean |
equals(Object o) |
static ServiceFetcher |
fetch(String sid)
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.
|
String |
getApnCredentialSid()
Returns The The apn_credential_sid.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getDefaultApnNotificationProtocolVersion()
Returns The The default_apn_notification_protocol_version.
|
String |
getDefaultGcmNotificationProtocolVersion()
Returns The The default_gcm_notification_protocol_version.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
String |
getGcmCredentialSid()
Returns The The gcm_credential_sid.
|
Map<String,String> |
getLinks()
Returns The The links.
|
String |
getSid()
Returns The The sid.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static ServiceReader |
read()
Create a ServiceReader to execute read.
|
String |
toString() |
static ServiceUpdater |
update(String sid)
Create a ServiceUpdater to execute update.
|
public static ServiceCreator create()
public static ServiceDeleter delete(String sid)
sid
- The sidpublic static ServiceFetcher fetch(String sid)
sid
- The sidpublic static ServiceReader read()
public static ServiceUpdater update(String sid)
sid
- 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()
getSid
in class SidResource
public final String getAccountSid()
public final String getFriendlyName()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getApnCredentialSid()
public final String getGcmCredentialSid()
public final String getDefaultApnNotificationProtocolVersion()
public final String getDefaultGcmNotificationProtocolVersion()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.