Package zendesk.support
Class CustomField
- java.lang.Object
 - 
- zendesk.support.CustomField
 
 
- 
- All Implemented Interfaces:
 - java.io.Serializable
 
public class CustomField extends java.lang.Object implements java.io.SerializableCustomFields model which allows for custom data to be set on a request- See Also:
 - Zendesk Rest API on Requests, Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor and Description CustomField(java.lang.Long id, java.lang.Object value)Constructor for a custom field model to be included with a ticket 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description java.lang.LonggetId()java.lang.StringgetValue()Deprecated.use #getValueString()As of 2.2.2 #value is of type Object, and may be a String, a Boolean, or a List
This is to support multi-select custom fields. Use type specific getters for value, or use #getValueObject() to get the value as an object. java.lang.BooleangetValueBoolean()java.util.List<java.lang.String>getValueList()java.lang.ObjectgetValueObject()java.lang.StringgetValueString() 
 - 
 
- 
- 
Method Detail
- 
getId
public java.lang.Long getId()
- Returns:
 - the id of the custom ticket field
 
 
- 
getValue
@Deprecated public java.lang.String getValue()
Deprecated. use #getValueString()As of 2.2.2 #value is of type Object, and may be a String, a Boolean, or a List
This is to support multi-select custom fields. Use type specific getters for value, or use #getValueObject() to get the value as an object. - Returns:
 - the value as 
Stringof the custom ticket field 
 
- 
getValueObject
public java.lang.Object getValueObject()
- Returns:
 - the value as 
Objectof the custom ticket field 
 
- 
getValueString
public java.lang.String getValueString()
- Returns:
 - the value as 
Stringof the custom ticket field. Returns null if value is not a String 
 
- 
getValueBoolean
public java.lang.Boolean getValueBoolean()
- Returns:
 - the value as 
Booleanof the custom ticket field. Returns null if value is not a Boolean 
 
- 
getValueList
public java.util.List<java.lang.String> getValueList()
- Returns:
 - the value of the custom ticket field as a 
ListofString. Returns null if value is not a List 
 
 - 
 
 -