Package com.twilio.rest.chat.v2.service
Class Binding
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.chat.v2.service.Binding
-
- All Implemented Interfaces:
Serializable
public class Binding extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Binding.BindingType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 The SID of the Account that created the resource.Binding.BindingType
getBindingType()
Returns The The push technology to use for the binding.String
getCredentialSid()
Returns The The SID of the Credential for the binding.org.joda.time.DateTime
getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.org.joda.time.DateTime
getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.String
getEndpoint()
Returns The The unique endpoint identifier for the Binding.String
getIdentity()
Returns The The string that identifies the resource's User.Map<String,String>
getLinks()
Returns The The absolute URLs of the Users for the Binding.List<String>
getMessageTypes()
Returns The The Programmable Chat message types the binding is subscribed to.String
getServiceSid()
Returns The The SID of the Service that the resource is associated with.String
getSid()
Returns The The unique string that identifies the resource.URI
getUrl()
Returns The The absolute URL of the Binding resource.int
hashCode()
static BindingReader
reader(String pathServiceSid)
Create a BindingReader to execute read.String
toString()
-
-
-
Method Detail
-
reader
public static BindingReader reader(String pathServiceSid)
Create a BindingReader to execute read.- Parameters:
pathServiceSid
- The SID of the Service to read the resources from- Returns:
- BindingReader capable of executing the read
-
fetcher
public static BindingFetcher fetcher(String pathServiceSid, String pathSid)
Create a BindingFetcher to execute fetch.- Parameters:
pathServiceSid
- The SID of the Service to fetch the resource frompathSid
- The unique string that identifies the resource- Returns:
- BindingFetcher capable of executing the fetch
-
deleter
public static BindingDeleter deleter(String pathServiceSid, String pathSid)
Create a BindingDeleter to execute delete.- Parameters:
pathServiceSid
- The SID of the Service to delete the resource frompathSid
- The unique string that identifies the resource- Returns:
- BindingDeleter capable of executing the delete
-
fromJson
public static Binding fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Binding object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Binding object represented by the provided JSON
-
fromJson
public static Binding fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Binding object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Binding object represented by the provided JSON
-
getSid
public final String getSid()
Returns The The unique string that identifies the resource.- Returns:
- The unique string that identifies the resource
-
getAccountSid
public final String getAccountSid()
Returns The The SID of the Account that created the resource.- Returns:
- The SID of the Account that created the resource
-
getServiceSid
public final String getServiceSid()
Returns The The SID of the Service that the resource is associated with.- Returns:
- The SID of the Service that the resource is associated with
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.- Returns:
- The RFC 2822 date and time in GMT when the resource was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.- Returns:
- The RFC 2822 date and time in GMT when the resource was last updated
-
getEndpoint
public final String getEndpoint()
Returns The The unique endpoint identifier for the Binding.- Returns:
- The unique endpoint identifier for the Binding
-
getIdentity
public final String getIdentity()
Returns The The string that identifies the resource's User.- Returns:
- The string that identifies the resource's User
-
getCredentialSid
public final String getCredentialSid()
Returns The The SID of the Credential for the binding.- Returns:
- The SID of the Credential for the binding
-
getBindingType
public final Binding.BindingType getBindingType()
Returns The The push technology to use for the binding.- Returns:
- The push technology to use for the binding
-
getMessageTypes
public final List<String> getMessageTypes()
Returns The The Programmable Chat message types the binding is subscribed to.- Returns:
- The Programmable Chat message types the binding is subscribed to
-
getUrl
public final URI getUrl()
Returns The The absolute URL of the Binding resource.- Returns:
- The absolute URL of the Binding resource
-
getLinks
public final Map<String,String> getLinks()
Returns The The absolute URLs of the Users for the Binding.- Returns:
- The absolute URLs of the Users for the Binding
-
-