@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TaskTemplateField extends Object implements Serializable, Cloneable, StructuredPojo
Describes a single task template field.
| Constructor and Description |
|---|
TaskTemplateField() |
| Modifier and Type | Method and Description |
|---|---|
TaskTemplateField |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The description of the field.
|
TaskTemplateFieldIdentifier |
getId()
The unique identifier for the field.
|
List<String> |
getSingleSelectOptions()
A list of options for a single select field.
|
String |
getType()
Indicates the type of field.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDescription(String description)
The description of the field.
|
void |
setId(TaskTemplateFieldIdentifier id)
The unique identifier for the field.
|
void |
setSingleSelectOptions(Collection<String> singleSelectOptions)
A list of options for a single select field.
|
void |
setType(String type)
Indicates the type of field.
|
String |
toString()
Returns a string representation of this object.
|
TaskTemplateField |
withDescription(String description)
The description of the field.
|
TaskTemplateField |
withId(TaskTemplateFieldIdentifier id)
The unique identifier for the field.
|
TaskTemplateField |
withSingleSelectOptions(Collection<String> singleSelectOptions)
A list of options for a single select field.
|
TaskTemplateField |
withSingleSelectOptions(String... singleSelectOptions)
A list of options for a single select field.
|
TaskTemplateField |
withType(String type)
Indicates the type of field.
|
TaskTemplateField |
withType(TaskTemplateFieldType type)
Indicates the type of field.
|
public void setId(TaskTemplateFieldIdentifier id)
The unique identifier for the field.
id - The unique identifier for the field.public TaskTemplateFieldIdentifier getId()
The unique identifier for the field.
public TaskTemplateField withId(TaskTemplateFieldIdentifier id)
The unique identifier for the field.
id - The unique identifier for the field.public void setDescription(String description)
The description of the field.
description - The description of the field.public String getDescription()
The description of the field.
public TaskTemplateField withDescription(String description)
The description of the field.
description - The description of the field.public void setType(String type)
Indicates the type of field.
type - Indicates the type of field.TaskTemplateFieldTypepublic String getType()
Indicates the type of field.
TaskTemplateFieldTypepublic TaskTemplateField withType(String type)
Indicates the type of field.
type - Indicates the type of field.TaskTemplateFieldTypepublic TaskTemplateField withType(TaskTemplateFieldType type)
Indicates the type of field.
type - Indicates the type of field.TaskTemplateFieldTypepublic List<String> getSingleSelectOptions()
A list of options for a single select field.
public void setSingleSelectOptions(Collection<String> singleSelectOptions)
A list of options for a single select field.
singleSelectOptions - A list of options for a single select field.public TaskTemplateField withSingleSelectOptions(String... singleSelectOptions)
A list of options for a single select field.
NOTE: This method appends the values to the existing list (if any). Use
setSingleSelectOptions(java.util.Collection) or withSingleSelectOptions(java.util.Collection)
if you want to override the existing values.
singleSelectOptions - A list of options for a single select field.public TaskTemplateField withSingleSelectOptions(Collection<String> singleSelectOptions)
A list of options for a single select field.
singleSelectOptions - A list of options for a single select field.public String toString()
toString in class ObjectObject.toString()public TaskTemplateField clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.