Class DataFieldCreate


  • public final class DataFieldCreate
    extends Object
    The DataFieldCreate model.
    • Constructor Detail

      • DataFieldCreate

        public DataFieldCreate()
    • 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.