Class TicketFieldOption
- java.lang.Object
-
- com.zendesk.sdk.model.request.fields.TicketFieldOption
-
public class TicketFieldOption extends java.lang.Object
Model 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 TicketFieldOption
create(RawTicketFieldOption rawTicketFieldOption)
Convert aRawTicketFieldOption
into aTicketFieldOption
long
getId()
Gets the ID of the ticket field option.java.lang.String
getName()
Gets the name of the ticket field option.java.lang.String
getValue()
Gets the value of the ticket field option.boolean
isDefault()
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 aRawTicketFieldOption
into 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:
true
if it is the default value,false
if not
-
-