public class Service extends SidResource
Modifier and Type | Method and Description |
---|---|
static ServiceCreator |
create(String friendlyName)
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.
|
Integer |
getConsumptionReportInterval()
Returns The The consumption_report_interval.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getDefaultChannelCreatorRoleSid()
Returns The The default_channel_creator_role_sid.
|
String |
getDefaultChannelRoleSid()
Returns The The default_channel_role_sid.
|
String |
getDefaultServiceRoleSid()
Returns The The default_service_role_sid.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
Map<String,String> |
getLinks()
Returns The The links.
|
Boolean |
getReadStatusEnabled()
Returns The The read_status_enabled.
|
String |
getSid()
Returns The The sid.
|
Integer |
getTypingIndicatorTimeout()
Returns The The typing_indicator_timeout.
|
URI |
getUrl()
Returns The The url.
|
com.fasterxml.jackson.databind.JsonNode |
getWebhooks()
Returns The The webhooks.
|
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 ServiceFetcher fetch(String sid)
sid
- The sidpublic static ServiceDeleter delete(String sid)
sid
- The sidpublic static ServiceCreator create(String friendlyName)
friendlyName
- The friendly_namepublic 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 getDefaultServiceRoleSid()
public final String getDefaultChannelRoleSid()
public final String getDefaultChannelCreatorRoleSid()
public final Boolean getReadStatusEnabled()
public final Integer getTypingIndicatorTimeout()
public final Integer getConsumptionReportInterval()
public final com.fasterxml.jackson.databind.JsonNode getWebhooks()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.