Class TicketField
- java.lang.Object
-
- com.zendesk.sdk.model.request.fields.TicketField
-
public class TicketField extends java.lang.Object
Model class for ticket fields.
-
-
Constructor Summary
Constructors Constructor and Description TicketField(long id, TicketFieldType type, java.lang.String title, java.lang.String titleInPortal, java.lang.String description, java.lang.String regexpForValidation, java.util.List<TicketFieldOption> ticketFieldOptions)
Constructor for creating an instance of a ticket field.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static TicketField
create(RawTicketField rawTicketField)
Convert aRawTicketField
into aTicketField
java.lang.String
getDescription()
Gets the description of the ticket field.long
getId()
Gets the ID of the ticket field.java.lang.String
getRegexpForValidation()
Gets a regular expression for validation.java.util.List<TicketFieldOption>
getTicketFieldOptions()
Ticket field options, this field will only be populated forTicketFieldType.Tagger
field typesjava.lang.String
getTitle()
Gets the title of the ticket field.java.lang.String
getTitleInPortal()
Gets title of the ticket field for end userTicketFieldType
getType()
Gets the type of the ticket field.
-
-
-
Constructor Detail
-
TicketField
public TicketField(long id, TicketFieldType type, java.lang.String title, java.lang.String titleInPortal, java.lang.String description, java.lang.String regexpForValidation, java.util.List<TicketFieldOption> ticketFieldOptions)
Constructor for creating an instance of a ticket field.- Parameters:
id
- ticket field idtype
- ticket field typetitle
- ticket field titledescription
- ticket field descriptionregexpForValidation
- regular expression for validation
-
-
Method Detail
-
create
public static TicketField create(RawTicketField rawTicketField)
Convert aRawTicketField
into aTicketField
- Parameters:
rawTicketField
- a raw ticket field- Returns:
- the new
TicketField
-
getId
public long getId()
Gets the ID of the ticket field.- Returns:
- the ID of the ticket field
-
getType
public TicketFieldType getType()
Gets the type of the ticket field.- Returns:
- the type of the ticket field.
-
getTitle
public java.lang.String getTitle()
Gets the title of the ticket field.- Returns:
- the title of the ticket field.
-
getTitleInPortal
public java.lang.String getTitleInPortal()
Gets title of the ticket field for end user- Returns:
- title the ticket field title for end users
-
getDescription
public java.lang.String getDescription()
Gets the description of the ticket field.- Returns:
- the description of the ticket field.
-
getRegexpForValidation
public java.lang.String getRegexpForValidation()
Gets a regular expression for validation.- Returns:
- a regular expression for validation
-
getTicketFieldOptions
public java.util.List<TicketFieldOption> getTicketFieldOptions()
Ticket field options, this field will only be populated forTicketFieldType.Tagger
field types- Returns:
- a list of ticket field options
-
-