Package com.twilio.rest.sync.v1
Class Service
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.sync.v1.Service
-
- All Implemented Interfaces:
Serializable
public class Service extends Resource
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 The account_sid.Boolean
getAclEnabled()
Returns The true or false - determines whether token identities must be granted access to Sync objects via the Permissions API in this Service..org.joda.time.DateTime
getDateCreated()
Returns The The date_created.org.joda.time.DateTime
getDateUpdated()
Returns The The date_updated.String
getFriendlyName()
Returns The Human-readable name for this service instance.Map<String,String>
getLinks()
Returns The The links.Boolean
getReachabilityDebouncingEnabled()
Returns The true or false - Determines whether transient disconnections (i.e.Integer
getReachabilityDebouncingWindow()
Returns The Determines how long an identity must be offline before reachability webhooks fire..Boolean
getReachabilityWebhooksEnabled()
Returns The true or false - controls whether this instance fires webhooks when client endpoints connect to Sync.String
getSid()
Returns The A unique identifier for this service instance..String
getUniqueName()
Returns The The unique_name.URI
getUrl()
Returns The The url.URI
getWebhookUrl()
Returns The A URL that will receive event updates when objects are manipulated..int
hashCode()
static ServiceReader
reader()
Create a ServiceReader to execute read.String
toString()
static ServiceUpdater
updater(String pathSid)
Create a ServiceUpdater to execute update.
-
-
-
Method Detail
-
fetcher
public static ServiceFetcher fetcher(String pathSid)
Create a ServiceFetcher to execute fetch.- Parameters:
pathSid
- A unique identifier for this service instance.- Returns:
- ServiceFetcher capable of executing the fetch
-
deleter
public static ServiceDeleter deleter(String pathSid)
Create a ServiceDeleter to execute delete.- Parameters:
pathSid
- A unique identifier for this service instance.- Returns:
- ServiceDeleter capable of executing the delete
-
creator
public static ServiceCreator creator()
Create a ServiceCreator to execute create.- Returns:
- ServiceCreator capable of executing the create
-
reader
public static ServiceReader reader()
Create a ServiceReader to execute read.- Returns:
- ServiceReader capable of executing the read
-
updater
public static ServiceUpdater updater(String pathSid)
Create a ServiceUpdater to execute update.- Parameters:
pathSid
- A unique identifier for this service instance.- Returns:
- ServiceUpdater capable of executing the update
-
fromJson
public static Service fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Service object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Service object represented by the provided JSON
-
fromJson
public static Service fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Service object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Service object represented by the provided JSON
-
getSid
public final String getSid()
Returns The A unique identifier for this service instance..- Returns:
- A unique identifier for this service instance.
-
getUniqueName
public final String getUniqueName()
Returns The The unique_name.- Returns:
- The unique_name
-
getAccountSid
public final String getAccountSid()
Returns The The account_sid.- Returns:
- The account_sid
-
getFriendlyName
public final String getFriendlyName()
Returns The Human-readable name for this service instance.- Returns:
- Human-readable name for this service instance
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The date_created.- Returns:
- The date_created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The date_updated.- Returns:
- The date_updated
-
getUrl
public final URI getUrl()
Returns The The url.- Returns:
- The url
-
getWebhookUrl
public final URI getWebhookUrl()
Returns The A URL that will receive event updates when objects are manipulated..- Returns:
- A URL that will receive event updates when objects are manipulated.
-
getReachabilityWebhooksEnabled
public final Boolean getReachabilityWebhooksEnabled()
Returns The true or false - controls whether this instance fires webhooks when client endpoints connect to Sync.- Returns:
- true or false - controls whether this instance fires webhooks when client endpoints connect to Sync
-
getAclEnabled
public final Boolean getAclEnabled()
Returns The true or false - determines whether token identities must be granted access to Sync objects via the Permissions API in this Service..- Returns:
- true or false - determines whether token identities must be granted access to Sync objects via the Permissions API in this Service.
-
getReachabilityDebouncingEnabled
public final Boolean getReachabilityDebouncingEnabled()
Returns The true or false - Determines whether transient disconnections (i.e. an immediate reconnect succeeds) cause reachability webhooks..- Returns:
- true or false - Determines whether transient disconnections (i.e. an immediate reconnect succeeds) cause reachability webhooks.
-
getReachabilityDebouncingWindow
public final Integer getReachabilityDebouncingWindow()
Returns The Determines how long an identity must be offline before reachability webhooks fire..- Returns:
- Determines how long an identity must be offline before reachability webhooks fire.
-
-