Class TicketFieldOption
- java.lang.Object
-
- com.zendesk.sdk.model.request.fields.TicketFieldOption
-
public class TicketFieldOption extends java.lang.ObjectModel class for ticket field option.
-
-
Constructor Summary
Constructors Constructor and Description TicketFieldOption(long id, java.lang.String name, java.lang.String value, boolean isDefault)Constructor for creating an instance of a ticket field option.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static TicketFieldOptioncreate(RawTicketFieldOption rawTicketFieldOption)Convert aRawTicketFieldOptioninto aTicketFieldOptionlonggetId()Gets the ID of the ticket field option.java.lang.StringgetName()Gets the name of the ticket field option.java.lang.StringgetValue()Gets the value of the ticket field option.booleanisDefault()Gets if the field is the default value.
-
-
-
Constructor Detail
-
TicketFieldOption
public TicketFieldOption(long id, java.lang.String name, java.lang.String value, boolean isDefault)Constructor for creating an instance of a ticket field option.- Parameters:
id- ticket field option namename- ticket field option namevalue- ticket field option value
-
-
Method Detail
-
create
public static TicketFieldOption create(RawTicketFieldOption rawTicketFieldOption)
Convert aRawTicketFieldOptioninto aTicketFieldOption- Parameters:
rawTicketFieldOption- a raw ticket field option- Returns:
- the new ticket field option
-
getId
public long getId()
Gets the ID of the ticket field option.- Returns:
- the id of the ticket field option
-
getName
public java.lang.String getName()
Gets the name of the ticket field option.- Returns:
- the name of the ticket field option.
-
getValue
public java.lang.String getValue()
Gets the value of the ticket field option.- Returns:
- the value of the ticket field option.
-
isDefault
public boolean isDefault()
Gets if the field is the default value.- Returns:
trueif it is the default value,falseif not
-
-