public class Service extends Resource
Modifier and Type | Method and 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 SID of the Account that created the resource.
|
Integer |
getCodeLength()
Returns The length of the verification code.
|
org.joda.time.DateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT when the resource was last updated.
|
Boolean |
getDoNotShareWarningEnabled()
Returns Whether to add a privacy warning at the end of an SMS..
|
Boolean |
getDtmfInputRequired()
Returns Whether to ask the user to press a number before delivering the
verify code in a phone call.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the verification service.
|
Map<String,String> |
getLinks()
Returns The URLs of related resources.
|
Boolean |
getLookupEnabled()
Returns Whether to perform a lookup with each verification.
|
Boolean |
getPsd2Enabled()
Returns Whether to pass PSD2 transaction parameters when starting a
verification.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
Boolean |
getSkipSmsToLandlines()
Returns Whether to skip sending SMS verifications to landlines.
|
String |
getTtsName()
Returns The name of an alternative text-to-speech service to use in phone
calls.
|
URI |
getUrl()
Returns The absolute URL of the 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.
|
public static ServiceCreator creator(String friendlyName)
friendlyName
- A string to describe the verification servicepublic static ServiceFetcher fetcher(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static ServiceDeleter deleter(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static ServiceReader reader()
public static ServiceUpdater updater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic 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 Integer getCodeLength()
public final Boolean getLookupEnabled()
public final Boolean getPsd2Enabled()
public final Boolean getSkipSmsToLandlines()
public final Boolean getDtmfInputRequired()
public final String getTtsName()
public final Boolean getDoNotShareWarningEnabled()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.