Class DataTableResponseObject


  • public final class DataTableResponseObject
    extends Object
    Data Table which defines columns and raw row values.
    • Constructor Detail

      • DataTableResponseObject

        public DataTableResponseObject()
    • Method Detail

      • tableName

        public String tableName()
        Get the tableName property: Name of the table.
        Returns:
        the tableName value.
      • withTableName

        public DataTableResponseObject withTableName​(String tableName)
        Set the tableName property: Name of the table.
        Parameters:
        tableName - the tableName value to set.
        Returns:
        the DataTableResponseObject object itself.
      • columns

        public List<DataTableResponseColumn> columns()
        Get the columns property: List of columns with data types.
        Returns:
        the columns value.
      • withColumns

        public DataTableResponseObject withColumns​(List<DataTableResponseColumn> columns)
        Set the columns property: List of columns with data types.
        Parameters:
        columns - the columns value to set.
        Returns:
        the DataTableResponseObject object itself.
      • rows

        public List<List<String>> rows()
        Get the rows property: Raw row values.
        Returns:
        the rows value.
      • withRows

        public DataTableResponseObject withRows​(List<List<String>> rows)
        Set the rows property: Raw row values.
        Parameters:
        rows - the rows value to set.
        Returns:
        the DataTableResponseObject object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.