public class TaskTemplateField
extends java.lang.Object
implements java.io.Serializable
Describes a single task template field.
| Constructor and Description |
|---|
TaskTemplateField() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
The description of the field.
|
TaskTemplateFieldIdentifier |
getId()
The unique identifier for the field.
|
java.util.List<java.lang.String> |
getSingleSelectOptions()
A list of options for a single select field.
|
java.lang.String |
getType()
Indicates the type of field.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
The description of the field.
|
void |
setId(TaskTemplateFieldIdentifier id)
The unique identifier for the field.
|
void |
setSingleSelectOptions(java.util.Collection<java.lang.String> singleSelectOptions)
A list of options for a single select field.
|
void |
setType(java.lang.String type)
Indicates the type of field.
|
void |
setType(TaskTemplateFieldType type)
Indicates the type of field.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TaskTemplateField |
withDescription(java.lang.String description)
The description of the field.
|
TaskTemplateField |
withId(TaskTemplateFieldIdentifier id)
The unique identifier for the field.
|
TaskTemplateField |
withSingleSelectOptions(java.util.Collection<java.lang.String> singleSelectOptions)
A list of options for a single select field.
|
TaskTemplateField |
withSingleSelectOptions(java.lang.String... singleSelectOptions)
A list of options for a single select field.
|
TaskTemplateField |
withType(java.lang.String type)
Indicates the type of field.
|
TaskTemplateField |
withType(TaskTemplateFieldType type)
Indicates the type of field.
|
public TaskTemplateFieldIdentifier getId()
The unique identifier for the field.
The unique identifier for the field.
public void setId(TaskTemplateFieldIdentifier id)
The unique identifier for the field.
id - The unique identifier for the field.
public TaskTemplateField withId(TaskTemplateFieldIdentifier id)
The unique identifier for the field.
Returns a reference to this object so that method calls can be chained together.
id - The unique identifier for the field.
public java.lang.String getDescription()
The description of the field.
Constraints:
Length: 1 - 255
The description of the field.
public void setDescription(java.lang.String description)
The description of the field.
Constraints:
Length: 1 - 255
description - The description of the field.
public TaskTemplateField withDescription(java.lang.String description)
The description of the field.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
description - The description of the field.
public java.lang.String getType()
Indicates the type of field.
Constraints:
Allowed Values: NAME, DESCRIPTION, SCHEDULED_TIME, QUICK_CONNECT,
URL, NUMBER, TEXT, TEXT_AREA, DATE_TIME, BOOLEAN, SINGLE_SELECT, EMAIL
Indicates the type of field.
TaskTemplateFieldTypepublic void setType(java.lang.String type)
Indicates the type of field.
Constraints:
Allowed Values: NAME, DESCRIPTION, SCHEDULED_TIME, QUICK_CONNECT,
URL, NUMBER, TEXT, TEXT_AREA, DATE_TIME, BOOLEAN, SINGLE_SELECT, EMAIL
type - Indicates the type of field.
TaskTemplateFieldTypepublic TaskTemplateField withType(java.lang.String type)
Indicates the type of field.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: NAME, DESCRIPTION, SCHEDULED_TIME, QUICK_CONNECT,
URL, NUMBER, TEXT, TEXT_AREA, DATE_TIME, BOOLEAN, SINGLE_SELECT, EMAIL
type - Indicates the type of field.
TaskTemplateFieldTypepublic void setType(TaskTemplateFieldType type)
Indicates the type of field.
Constraints:
Allowed Values: NAME, DESCRIPTION, SCHEDULED_TIME, QUICK_CONNECT,
URL, NUMBER, TEXT, TEXT_AREA, DATE_TIME, BOOLEAN, SINGLE_SELECT, EMAIL
type - Indicates the type of field.
TaskTemplateFieldTypepublic TaskTemplateField withType(TaskTemplateFieldType type)
Indicates the type of field.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: NAME, DESCRIPTION, SCHEDULED_TIME, QUICK_CONNECT,
URL, NUMBER, TEXT, TEXT_AREA, DATE_TIME, BOOLEAN, SINGLE_SELECT, EMAIL
type - Indicates the type of field.
TaskTemplateFieldTypepublic java.util.List<java.lang.String> getSingleSelectOptions()
A list of options for a single select field.
A list of options for a single select field.
public void setSingleSelectOptions(java.util.Collection<java.lang.String> singleSelectOptions)
A list of options for a single select field.
singleSelectOptions - A list of options for a single select field.
public TaskTemplateField withSingleSelectOptions(java.lang.String... singleSelectOptions)
A list of options for a single select field.
Returns a reference to this object so that method calls can be chained together.
singleSelectOptions - A list of options for a single select field.
public TaskTemplateField withSingleSelectOptions(java.util.Collection<java.lang.String> singleSelectOptions)
A list of options for a single select field.
Returns a reference to this object so that method calls can be chained together.
singleSelectOptions - A list of options for a single select field.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object