Class UserBinding
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.ipmessaging.v2.service.user.UserBinding
-
- All Implemented Interfaces:
Serializable
public class UserBinding extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserBinding.BindingType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 The SID of the Account that created the resource.UserBinding.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 ISO 8601 date and time in GMT when the resource was created.org.joda.time.DateTime
getDateUpdated()
Returns The The ISO 8601 date and time in GMT when the resource was last updated.String
getEndpoint()
Returns The The unique endpoint identifier for the User Binding.String
getIdentity()
Returns The The string that identifies the resource's User.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 User Binding resource.String
getUserSid()
Returns The The SID of the User with the binding.int
hashCode()
static UserBindingReader
reader(String pathServiceSid, String pathUserSid)
Create a UserBindingReader to execute read.String
toString()
-
-
-
Method Detail
-
reader
public static UserBindingReader reader(String pathServiceSid, String pathUserSid)
Create a UserBindingReader to execute read.- Parameters:
pathServiceSid
- The SID of the Service to read the resource frompathUserSid
- The SID of the User with the User Bindings to read- Returns:
- UserBindingReader capable of executing the read
-
fetcher
public static UserBindingFetcher fetcher(String pathServiceSid, String pathUserSid, String pathSid)
Create a UserBindingFetcher to execute fetch.- Parameters:
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 fetch- Returns:
- UserBindingFetcher capable of executing the fetch
-
deleter
public static UserBindingDeleter deleter(String pathServiceSid, String pathUserSid, String pathSid)
Create a UserBindingDeleter to execute delete.- Parameters:
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 delete- Returns:
- UserBindingDeleter capable of executing the delete
-
fromJson
public static UserBinding fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a UserBinding object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- UserBinding object represented by the provided JSON
-
fromJson
public static UserBinding fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a UserBinding object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- UserBinding 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 ISO 8601 date and time in GMT when the resource was created.- Returns:
- The ISO 8601 date and time in GMT when the resource was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The ISO 8601 date and time in GMT when the resource was last updated.- Returns:
- The ISO 8601 date and time in GMT when the resource was last updated
-
getEndpoint
public final String getEndpoint()
Returns The The unique endpoint identifier for the User Binding.- Returns:
- The unique endpoint identifier for the User 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
-
getUserSid
public final String getUserSid()
Returns The The SID of the User with the binding.- Returns:
- The SID of the User with the binding
-
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 UserBinding.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 User Binding resource.- Returns:
- The absolute URL of the User Binding resource
-
-