Class CreateRequest



  • public class CreateRequest
    extends java.lang.Object
    This is a model class for a request which will be created by the RequestProvider
    • Constructor Summary

      Constructors 
      Constructor and Description
      CreateRequest() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.List<java.lang.String> getAttachments()
      Returns a List of attachment UploadResponse#tokens attached to the Request.
      java.util.List<CustomField> getCustomFields() 
      java.lang.String getDescription()
      Gets the description of this request
      java.lang.String getId()
      Gets the ID for this request
      java.lang.String getSubject()
      Gets the subject of this request
      java.util.List<java.lang.String> getTags()
      Gets the tags for this request
      java.lang.Long getTicketFormId() 
      void setAttachments(java.util.List<java.lang.String> attachments)
      Sets a List of attachment UploadResponse#token to this Request.
      void setCustomFields(java.util.List<CustomField> customFields)
      Sets the custom fields for this Request.
      void setDescription(java.lang.String description)
      Sets the description of this request
      void setId(java.lang.String id)
      Sets the ID for this request
      void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
      Sets the metadata for this Request.
      void setSubject(java.lang.String subject)
      Sets the subject of this request
      void setTags(java.util.List<java.lang.String> tags)
      Sets the tags for this request
      void setTicketFormId(java.lang.Long ticketFormId)
      Sets the ticket form id for this Request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CreateRequest

        public CreateRequest()
    • Method Detail

      • getId

        public java.lang.String getId()
        Gets the ID for this request
        Returns:
        the ID for this request
      • setId

        public void setId(java.lang.String id)
        Sets the ID for this request
        Parameters:
        id - the ID to set
      • getTags

        public java.util.List<java.lang.String> getTags()
        Gets the tags for this request
        Returns:
        the tags for this request, or null if there are none
      • setTags

        public void setTags(java.util.List<java.lang.String> tags)
        Sets the tags for this request
        Parameters:
        tags - the tags to set for this request
      • getDescription

        public java.lang.String getDescription()
        Gets the description of this request
        Returns:
        the description of this request, or null if there is none
      • setDescription

        public void setDescription(java.lang.String description)
        Sets the description of this request
        Parameters:
        description - the description to set
      • setAttachments

        public void setAttachments(java.util.List<java.lang.String> attachments)
        Sets a List of attachment UploadResponse#token to this Request.
        Parameters:
        attachments - The list of tokens to set
        See Also:
        Uploading attachments
      • getAttachments

        public java.util.List<java.lang.String> getAttachments()
        Returns a List of attachment UploadResponse#tokens attached to the Request. If no attachments have been added, the list will be empty.
        Returns:
      • getSubject

        public java.lang.String getSubject()
        Gets the subject of this request
        Returns:
        the subject of this request
      • setSubject

        public void setSubject(java.lang.String subject)
        Sets the subject of this request
        Parameters:
        subject - the subject to set
      • setMetadata

        public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
        Sets the metadata for this Request.
        Parameters:
        metadata - The metadata to set.
        See Also:
        Metadata documentation
      • setTicketFormId

        public void setTicketFormId(java.lang.Long ticketFormId)
        Sets the ticket form id for this Request.

        The ticket form id will be ignored if your Zendesk doesn't support it. Currently Enterprise and higher plans support this.

        Parameters:
        ticketFormId - The ticket form id to set
        See Also:
        Custom fields and forms documentation
      • getTicketFormId

        public java.lang.Long getTicketFormId()
      • getCustomFields

        public java.util.List<CustomField> getCustomFields()