Package com.affinda.api.client.models
Class DataFieldCreate
- java.lang.Object
-
- com.affinda.api.client.models.DataFieldCreate
-
public final class DataFieldCreate extends Object
The DataFieldCreate model.
-
-
Constructor Summary
Constructors Constructor Description DataFieldCreate()
-
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.DataFieldCreateDataPointgetDataPoint()Get the dataPoint property: The data point to be created for this field.DataFieldCreateFieldgetField()Get the field property: The field to be created.DataFieldCreatesetCategoryLabel(String categoryLabel)Set the categoryLabel property: The label of the category that this field will be put into.DataFieldCreatesetDataPoint(DataFieldCreateDataPoint dataPoint)Set the dataPoint property: The data point to be created for this field.DataFieldCreatesetField(DataFieldCreateField 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 DataFieldCreate 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 DataFieldCreate object itself.
-
getField
public DataFieldCreateField getField()
Get the field property: The field to be created.- Returns:
- the field value.
-
setField
public DataFieldCreate setField(DataFieldCreateField field)
Set the field property: The field to be created.- Parameters:
field- the field value to set.- Returns:
- the DataFieldCreate object itself.
-
getDataPoint
public DataFieldCreateDataPoint 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 DataFieldCreate setDataPoint(DataFieldCreateDataPoint 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 DataFieldCreate object itself.
-
-