public TaskTemplateField withType(TaskTemplateFieldType type) {
        this.type = type.toString();
        return this;
    }
<p>
Indicates the type of field.
</p>

@param type
       Indicates the type of field.
@return Returns a reference to this object so that method calls can be chained together.
@see TaskTemplateFieldType
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateField.java