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 pathChatServiceSid,
String pathSid)
Create a BindingDeleter to execute delete.
|
boolean |
equals(Object o) |
static BindingFetcher |
fetcher(String pathChatServiceSid,
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 unique ID of the Account responsible for this binding..
|
Binding.BindingType |
getBindingType()
Returns The push technology to use for the binding..
|
String |
getChatServiceSid()
Returns The SID of the Conversation Service that the resource is associated
with..
|
String |
getCredentialSid()
Returns The SID of the Credential for the binding..
|
ZonedDateTime |
getDateCreated()
Returns The date that this resource was created..
|
ZonedDateTime |
getDateUpdated()
Returns The date that this resource was last updated..
|
String |
getEndpoint()
Returns The unique endpoint identifier for the Binding..
|
String |
getIdentity()
Returns The identity of Conversation User associated with this binding..
|
List<String> |
getMessageTypes()
Returns The Conversation message types the binding is subscribed to..
|
String |
getSid()
Returns A 34 character string that uniquely identifies this resource..
|
URI |
getUrl()
Returns An absolute URL for this binding..
|
int |
hashCode() |
static BindingReader |
reader(String pathChatServiceSid)
Create a BindingReader to execute read.
|
public static BindingDeleter deleter(String pathChatServiceSid, String pathSid)
pathChatServiceSid
- The SID of the Conversation Service to delete the
resource frompathSid
- The SID of the resource to deletepublic static BindingFetcher fetcher(String pathChatServiceSid, String pathSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.pathSid
- A 34 character string that uniquely identifies this resource.public static BindingReader reader(String pathChatServiceSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.public 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 getChatServiceSid()
public final String getCredentialSid()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getEndpoint()
public final String getIdentity()
public final Binding.BindingType getBindingType()
public final List<String> getMessageTypes()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.