public class Service extends Resource
| Modifier and Type | Method and Description |
|---|---|
static ServiceCreator |
creator(String name)
Create a ServiceCreator to execute create.
|
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..
|
Integer |
getCodeLength()
Returns The Length of verification code.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this Service was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this Service was updated.
|
Map<String,String> |
getLinks()
Returns The The links.
|
String |
getName()
Returns The Friendly name of the service.
|
String |
getSid()
Returns The A string that uniquely identifies this Service..
|
URI |
getUrl()
Returns The The 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 ServiceCreator creator(String name)
name - Friendly name of the servicepublic static ServiceFetcher fetcher(String pathSid)
pathSid - Verification Service Instance SID.public static ServiceReader reader()
public static ServiceUpdater updater(String pathSid)
pathSid - Service Sid.public 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 getName()
public final Integer getCodeLength()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.