Class Binding
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.notify.v1.service.Binding
-
- All Implemented Interfaces:
Serializable
public class Binding extends Resource
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.- 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 BindingCreator
creator(String pathServiceSid, String identity, Binding.BindingType bindingType, String address)
Create a BindingCreator to execute create.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.String
getAddress()
Returns The The channel-specific address.String
getBindingType()
Returns The The type of the Binding.String
getCredentialSid()
Returns The The SID of the Credential resource to be used to send notifications to this 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 Deprecated.String
getIdentity()
Returns The The `identity` value that identifies the new resource's User.Map<String,String>
getLinks()
Returns The The URLs of related resources.String
getNotificationProtocolVersion()
Returns The The protocol version to use to send the notification.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.List<String>
getTags()
Returns The The list of tags associated with this Binding.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
-
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
-
creator
public static BindingCreator creator(String pathServiceSid, String identity, Binding.BindingType bindingType, String address)
Create a BindingCreator to execute create.- Parameters:
pathServiceSid
- The SID of the Service to create the resource underidentity
- The `identity` value that identifies the new resource's UserbindingType
- The type of the Bindingaddress
- The channel-specific address- Returns:
- BindingCreator capable of executing the create
-
reader
public static BindingReader reader(String pathServiceSid)
Create a BindingReader to execute read.- Parameters:
pathServiceSid
- The SID of the Service to read the resource from- Returns:
- BindingReader capable of executing the read
-
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
-
getCredentialSid
public final String getCredentialSid()
Returns The The SID of the Credential resource to be used to send notifications to this Binding.- Returns:
- The SID of the Credential resource to be used to send notifications to this Binding
-
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
-
getNotificationProtocolVersion
public final String getNotificationProtocolVersion()
Returns The The protocol version to use to send the notification.- Returns:
- The protocol version to use to send the notification
-
getEndpoint
public final String getEndpoint()
Returns The Deprecated.- Returns:
- Deprecated
-
getIdentity
public final String getIdentity()
Returns The The `identity` value that identifies the new resource's User.- Returns:
- The `identity` value that identifies the new resource's User
-
getBindingType
public final String getBindingType()
Returns The The type of the Binding.- Returns:
- The type of the Binding
-
getAddress
public final String getAddress()
Returns The The channel-specific address.- Returns:
- The channel-specific address
-
getTags
public final List<String> getTags()
Returns The The list of tags associated with this Binding.- Returns:
- The list of tags associated with this Binding
-
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 URLs of related resources.- Returns:
- The URLs of related resources
-
-