Package zendesk.support
Class CreateRequest
- java.lang.Object
-
- zendesk.support.CreateRequest
-
public class CreateRequest extends java.lang.Object
This 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<CustomField>
getCustomFields()
java.lang.String
getDescription()
Gets the description of this requestjava.lang.String
getId()
Gets the ID for this requestjava.lang.String
getSubject()
Gets the subject of this requestjava.util.List<java.lang.String>
getTags()
Gets the tags for this requestjava.lang.Long
getTicketFormId()
void
setAttachments(java.util.List<java.lang.String> attachments)
Sets aList
of attachmentUploadResponse#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 requestvoid
setId(java.lang.String id)
Sets the ID for this requestvoid
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 requestvoid
setTags(java.util.List<java.lang.String> tags)
Sets the tags for this requestvoid
setTicketFormId(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 aList
of attachmentUploadResponse#token
to this Request.- Parameters:
attachments
- The list of tokens to set- See Also:
- Uploading attachments
-
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()
-
-