public class Service extends Resource
Modifier and Type | Method and Description |
---|---|
static ServiceCreator |
creator()
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 account_sid.
|
Boolean |
getAclEnabled()
Returns The acl_enabled.
|
org.joda.time.DateTime |
getDateCreated()
Returns The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The date_updated.
|
String |
getFriendlyName()
Returns The friendly_name.
|
Map<String,String> |
getLinks()
Returns The links.
|
Boolean |
getReachabilityWebhooksEnabled()
Returns The reachability_webhooks_enabled.
|
String |
getSid()
Returns The sid.
|
URI |
getUrl()
Returns The url.
|
URI |
getWebhookUrl()
Returns The webhook_url.
|
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 ServiceFetcher fetcher(String pathSid)
pathSid
- The sidpublic static ServiceDeleter deleter(String pathSid)
pathSid
- The sidpublic static ServiceCreator creator()
public static ServiceReader reader()
public static ServiceUpdater updater(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 getUrl()
public final URI getWebhookUrl()
public final Boolean getReachabilityWebhooksEnabled()
public final Boolean getAclEnabled()
Copyright © 2019 Twilio, Inc. All Rights Reserved.