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