Class Invite
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.chat.v2.service.channel.Invite
-
- All Implemented Interfaces:
Serializable
public class Invite extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InviteCreator
creator(String pathServiceSid, String pathChannelSid, String identity)
Create a InviteCreator to execute create.static InviteDeleter
deleter(String pathServiceSid, String pathChannelSid, String pathSid)
Create a InviteDeleter to execute delete.boolean
equals(Object o)
static InviteFetcher
fetcher(String pathServiceSid, String pathChannelSid, String pathSid)
Create a InviteFetcher to execute fetch.static Invite
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Invite object using the provided ObjectMapper.static Invite
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Invite object using the provided ObjectMapper.String
getAccountSid()
Returns The The SID of the Account that created the resource.String
getChannelSid()
Returns The The SID of the Channel the new resource belongs to.String
getCreatedBy()
Returns The The identity of the User that created the invite.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
getIdentity()
Returns The The string that identifies the resource's User.String
getRoleSid()
Returns The The SID of the Role assigned to the member.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 Invite resource.int
hashCode()
static InviteReader
reader(String pathServiceSid, String pathChannelSid)
Create a InviteReader to execute read.String
toString()
-
-
-
Method Detail
-
fetcher
public static InviteFetcher fetcher(String pathServiceSid, String pathChannelSid, String pathSid)
Create a InviteFetcher to execute fetch.- Parameters:
pathServiceSid
- The SID of the Service to fetch the resource frompathChannelSid
- The SID of the Channel the resource to fetch belongs topathSid
- The unique string that identifies the resource- Returns:
- InviteFetcher capable of executing the fetch
-
creator
public static InviteCreator creator(String pathServiceSid, String pathChannelSid, String identity)
Create a InviteCreator to execute create.- Parameters:
pathServiceSid
- The SID of the Service to create the resource underpathChannelSid
- The SID of the Channel the new resource belongs toidentity
- The `identity` value that identifies the new resource's User- Returns:
- InviteCreator capable of executing the create
-
reader
public static InviteReader reader(String pathServiceSid, String pathChannelSid)
Create a InviteReader to execute read.- Parameters:
pathServiceSid
- The SID of the Service to read the resources frompathChannelSid
- The SID of the Channel the resources to read belong to- Returns:
- InviteReader capable of executing the read
-
deleter
public static InviteDeleter deleter(String pathServiceSid, String pathChannelSid, String pathSid)
Create a InviteDeleter to execute delete.- Parameters:
pathServiceSid
- The SID of the Service to delete the resource frompathChannelSid
- The SID of the Channel the resource to delete belongs topathSid
- The unique string that identifies the resource- Returns:
- InviteDeleter capable of executing the delete
-
fromJson
public static Invite fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Invite object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Invite object represented by the provided JSON
-
fromJson
public static Invite fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Invite object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Invite 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
-
getChannelSid
public final String getChannelSid()
Returns The The SID of the Channel the new resource belongs to.- Returns:
- The SID of the Channel the new resource belongs to
-
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
-
getIdentity
public final String getIdentity()
Returns The The string that identifies the resource's User.- Returns:
- The string that identifies the resource's User
-
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
-
getRoleSid
public final String getRoleSid()
Returns The The SID of the Role assigned to the member.- Returns:
- The SID of the Role assigned to the member
-
getCreatedBy
public final String getCreatedBy()
Returns The The identity of the User that created the invite.- Returns:
- The identity of the User that created the invite
-
getUrl
public final URI getUrl()
Returns The The absolute URL of the Invite resource.- Returns:
- The absolute URL of the Invite resource
-
-