Class Invite

    • 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 from
        pathChannelSid - The SID of the Channel the resource to fetch belongs to
        pathSid - 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 under
        pathChannelSid - The SID of the Channel the new resource belongs to
        identity - 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 from
        pathChannelSid - 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 from
        pathChannelSid - The SID of the Channel the resource to delete belongs to
        pathSid - 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 String
        objectMapper - 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 InputStream
        objectMapper - 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object