@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.TaskTemplateFieldType
public String getType()
Indicates the type of field.
TaskTemplateFieldType
public TaskTemplateField withType(String type)
Indicates the type of field.
type
- Indicates the type of field.TaskTemplateFieldType
public TaskTemplateField withType(TaskTemplateFieldType type)
Indicates the type of field.
type
- Indicates the type of field.TaskTemplateFieldType
public 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 Object
Object.toString()
public TaskTemplateField clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.