Package zendesk.support
Class CreateRequest
- java.lang.Object
-
- zendesk.support.CreateRequest
-
public class CreateRequest extends java.lang.ObjectThis is a model class for a request which will be created by theRequestProvider
-
-
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 aListof attachmentUploadResponse#tokens attached to the Request.java.util.List<CustomField>getCustomFields()java.lang.StringgetDescription()Gets the description of this requestjava.lang.StringgetId()Gets the ID for this requestjava.lang.StringgetSubject()Gets the subject of this requestjava.util.List<java.lang.String>getTags()Gets the tags for this requestjava.lang.LonggetTicketFormId()voidsetAttachments(java.util.List<java.lang.String> attachments)Sets aListof attachmentUploadResponse#tokento this Request.voidsetCustomFields(java.util.List<CustomField> customFields)Sets the custom fields for this Request.voidsetDescription(java.lang.String description)Sets the description of this requestvoidsetId(java.lang.String id)Sets the ID for this requestvoidsetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Sets the metadata for this Request.voidsetSubject(java.lang.String subject)Sets the subject of this requestvoidsetTags(java.util.List<java.lang.String> tags)Sets the tags for this requestvoidsetTicketFormId(java.lang.Long ticketFormId)Sets the ticket form id for this Request.
-
-
-
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 aListof attachmentUploadResponse#tokento this Request.- Parameters:
attachments- The list of tokens to set- See Also:
- Uploading attachments
-
getAttachments
public java.util.List<java.lang.String> getAttachments()
Returns aListof attachmentUploadResponse#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
-
setCustomFields
public void setCustomFields(java.util.List<CustomField> customFields)
Sets the custom fields for this Request.- Parameters:
customFields- The list of custom fields to set- See Also:
- Custom fields and forms documentation
-
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()
-
-