public class UserBinding extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
UserBinding.BindingType |
Modifier and Type | Method and Description |
---|---|
static UserBindingDeleter |
deleter(String pathServiceSid,
String pathUserSid,
String pathSid)
Create a UserBindingDeleter to execute delete.
|
boolean |
equals(Object o) |
static UserBindingFetcher |
fetcher(String pathServiceSid,
String pathUserSid,
String pathSid)
Create a UserBindingFetcher to execute fetch.
|
static UserBinding |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a UserBinding object using the provided
ObjectMapper.
|
static UserBinding |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a UserBinding object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
UserBinding.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 User Binding.
|
String |
getIdentity()
Returns The string that identifies the resource'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 resource is associated with.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the User Binding resource.
|
String |
getUserSid()
Returns The SID of the User with the binding.
|
int |
hashCode() |
static UserBindingReader |
reader(String pathServiceSid,
String pathUserSid)
Create a UserBindingReader to execute read.
|
public static UserBindingReader reader(String pathServiceSid, String pathUserSid)
pathServiceSid
- The SID of the Service to read the resource frompathUserSid
- The SID of the User with the User Bindings to readpublic static UserBindingFetcher fetcher(String pathServiceSid, String pathUserSid, String pathSid)
pathServiceSid
- The SID of the Service to fetch the resource frompathUserSid
- The SID of the User with the bindingpathSid
- The SID of the User Binding resource to fetchpublic static UserBindingDeleter deleter(String pathServiceSid, String pathUserSid, String pathSid)
pathServiceSid
- The SID of the Service to delete the resource frompathUserSid
- The SID of the User of the User Bindings to deletepathSid
- The SID of the User Binding resource to deletepublic static UserBinding fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static UserBinding 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 getUserSid()
public final String getCredentialSid()
public final UserBinding.BindingType getBindingType()
public final List<String> getMessageTypes()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.