Package com.twilio.rest.authy.v1
Class Service
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.authy.v1.Service
-
- All Implemented Interfaces:
Serializable
public class Service extends Resource
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceCreator
creator(String friendlyName)
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..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.String
getFriendlyName()
Returns The A human readable description of this resource..Map<String,String>
getLinks()
Returns The Nested resource URLs..String
getSid()
Returns The A string that uniquely identifies this Service..URI
getUrl()
Returns The The URL of this resource..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
-
creator
public static ServiceCreator creator(String friendlyName)
Create a ServiceCreator to execute create.- Parameters:
friendlyName
- A human readable description of this resource.- Returns:
- ServiceCreator capable of executing the create
-
deleter
public static ServiceDeleter deleter(String pathSid)
Create a ServiceDeleter to execute delete.- Parameters:
pathSid
- A string that uniquely identifies this Service.- Returns:
- ServiceDeleter capable of executing the delete
-
fetcher
public static ServiceFetcher fetcher(String pathSid)
Create a ServiceFetcher to execute fetch.- Parameters:
pathSid
- A string that uniquely identifies this Service.- Returns:
- ServiceFetcher capable of executing the fetch
-
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 string that uniquely identifies this Service.- 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 string that uniquely identifies this Service..- Returns:
- A string that uniquely identifies this Service.
-
getFriendlyName
public final String getFriendlyName()
Returns The A human readable description of this resource..- Returns:
- A human readable description of this resource.
-
getAccountSid
public final String getAccountSid()
Returns The Account Sid..- Returns:
- Account Sid.
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The date this Service was created.- Returns:
- The date this Service was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The date this Service was updated.- Returns:
- The date this Service was updated
-
getUrl
public final URI getUrl()
Returns The The URL of this resource..- Returns:
- The URL of this resource.
-
getLinks
public final Map<String,String> getLinks()
Returns The Nested resource URLs..- Returns:
- Nested resource URLs.
-
-