Class DatabaseTableProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.DatabaseTableProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DatabaseTableProperties>
public final class DatabaseTableProperties
extends Object
implements com.azure.json.JsonSerializable<DatabaseTableProperties>
Database table properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DatabaseTableProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DatabaseTablePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DatabaseTableProperties from the JsonReader.Get the memoryOptimized property: Whether or not the table is memory optimized.Get the temporalType property: The table temporal type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMemoryOptimized(Boolean memoryOptimized) Set the memoryOptimized property: Whether or not the table is memory optimized.withTemporalType(TableTemporalType temporalType) Set the temporalType property: The table temporal type.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
-
DatabaseTableProperties
public DatabaseTableProperties()Creates an instance of DatabaseTableProperties class.
-
-
Method Details
-
temporalType
Get the temporalType property: The table temporal type.- Returns:
- the temporalType value.
-
withTemporalType
Set the temporalType property: The table temporal type.- Parameters:
temporalType- the temporalType value to set.- Returns:
- the DatabaseTableProperties object itself.
-
memoryOptimized
Get the memoryOptimized property: Whether or not the table is memory optimized.- Returns:
- the memoryOptimized value.
-
withMemoryOptimized
Set the memoryOptimized property: Whether or not the table is memory optimized.- Parameters:
memoryOptimized- the memoryOptimized value to set.- Returns:
- the DatabaseTableProperties 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<DatabaseTableProperties>- Throws:
IOException
-
fromJson
public static DatabaseTableProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DatabaseTableProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DatabaseTableProperties 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 DatabaseTableProperties.
-