Package com.affinda.api.client.models
Class DataField
- java.lang.Object
-
- com.affinda.api.client.models.DataField
-
public final class DataField extends Object
The DataField model.
-
-
Constructor Summary
Constructors Constructor Description DataField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategoryLabel()Get the categoryLabel property: The label of the category that this field will be put into.DataFieldDataPointgetDataPoint()Get the dataPoint property: The data point to be created for this field.DataFieldFieldgetField()Get the field property: The field to be created.DataFieldsetCategoryLabel(String categoryLabel)Set the categoryLabel property: The label of the category that this field will be put into.DataFieldsetDataPoint(DataFieldDataPoint dataPoint)Set the dataPoint property: The data point to be created for this field.DataFieldsetField(DataFieldField field)Set the field property: The field to be created.
-
-
-
Method Detail
-
getCategoryLabel
public String getCategoryLabel()
Get the categoryLabel property: The label of the category that this field will be put into. If not provided, the field will be put into the default category. If no category exists with the specified label, a new category will be created.- Returns:
- the categoryLabel value.
-
setCategoryLabel
public DataField setCategoryLabel(String categoryLabel)
Set the categoryLabel property: The label of the category that this field will be put into. If not provided, the field will be put into the default category. If no category exists with the specified label, a new category will be created.- Parameters:
categoryLabel- the categoryLabel value to set.- Returns:
- the DataField object itself.
-
getField
public DataFieldField getField()
Get the field property: The field to be created.- Returns:
- the field value.
-
setField
public DataField setField(DataFieldField field)
Set the field property: The field to be created.- Parameters:
field- the field value to set.- Returns:
- the DataField object itself.
-
getDataPoint
public DataFieldDataPoint getDataPoint()
Get the dataPoint property: The data point to be created for this field. If a data point with the same slug and collection already exists, it will be reused.- Returns:
- the dataPoint value.
-
setDataPoint
public DataField setDataPoint(DataFieldDataPoint dataPoint)
Set the dataPoint property: The data point to be created for this field. If a data point with the same slug and collection already exists, it will be reused.- Parameters:
dataPoint- the dataPoint value to set.- Returns:
- the DataField object itself.
-
-