public class Binding extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Binding.BindingType |
Modifier and Type | Method and Description |
---|---|
static BindingDeleter |
deleter(String pathServiceSid,
String pathSid)
Create a BindingDeleter to execute delete.
|
boolean |
equals(Object o) |
static BindingFetcher |
fetcher(String pathServiceSid,
String pathSid)
Create a BindingFetcher to execute fetch.
|
static Binding |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Binding object using the provided
ObjectMapper.
|
static Binding |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Binding object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
Binding.BindingType |
getBindingType()
Returns The push technology to use for the binding.
|
String |
getCredentialSid()
Returns The SID of the Credential for the binding.
|
ZonedDateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the resource was last updated.
|
String |
getEndpoint()
Returns The unique endpoint identifier for the Binding.
|
String |
getIdentity()
Returns The string that identifies the resource's User.
|
Map<String,String> |
getLinks()
Returns The absolute URLs of the Binding's User.
|
List<String> |
getMessageTypes()
Returns The Programmable Chat message types the binding is subscribed to.
|
String |
getServiceSid()
Returns The SID of the Service that the Binding resource is associated with.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the Binding resource.
|
int |
hashCode() |
static BindingReader |
reader(String pathServiceSid)
Create a BindingReader to execute read.
|
public static BindingReader reader(String pathServiceSid)
pathServiceSid
- The SID of the Service to read the resources frompublic static BindingFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to fetch the resource frompathSid
- The SID of the resource to fetchpublic static BindingDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to delete the resource frompathSid
- The SID of the resource to deletepublic static Binding fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Binding 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 getServiceSid()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getEndpoint()
public final String getIdentity()
public final String getCredentialSid()
public final Binding.BindingType getBindingType()
public final List<String> getMessageTypes()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.