Class DataTableResponseObject
java.lang.Object
com.azure.resourcemanager.appservice.models.DataTableResponseObject
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataTableResponseObject>
public final class DataTableResponseObject
extends Object
implements com.azure.json.JsonSerializable<DataTableResponseObject>
Data Table which defines columns and raw row values.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataTableResponseObject class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Get the columns property: List of columns with data types.static DataTableResponseObjectfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DataTableResponseObject from the JsonReader.rows()Get the rows property: Raw row values.Get the tableName property: Name of the table.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withColumns(List<DataTableResponseColumn> columns) Set the columns property: List of columns with data types.Set the rows property: Raw row values.withTableName(String tableName) Set the tableName property: Name of the table.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DataTableResponseObject
public DataTableResponseObject()Creates an instance of DataTableResponseObject class.
-
-
Method Details
-
tableName
Get the tableName property: Name of the table.- Returns:
- the tableName value.
-
withTableName
Set the tableName property: Name of the table.- Parameters:
tableName- the tableName value to set.- Returns:
- the DataTableResponseObject object itself.
-
columns
Get the columns property: List of columns with data types.- Returns:
- the columns value.
-
withColumns
Set the columns property: List of columns with data types.- Parameters:
columns- the columns value to set.- Returns:
- the DataTableResponseObject object itself.
-
rows
Get the rows property: Raw row values.- Returns:
- the rows value.
-
withRows
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DataTableResponseObject>- Throws:
IOException
-
fromJson
public static DataTableResponseObject fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DataTableResponseObject from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DataTableResponseObject if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the DataTableResponseObject.
-