Del via


DatabaseColumnProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.DatabaseColumnProperties

Implements

public final class DatabaseColumnProperties
implements JsonSerializable<DatabaseColumnProperties>

Database column properties.

Constructor Summary

Constructor Description
DatabaseColumnProperties()

Creates an instance of DatabaseColumnProperties class.

Method Summary

Modifier and Type Method and Description
ColumnDataType columnType()

Get the columnType property: The column data type.

static DatabaseColumnProperties fromJson(JsonReader jsonReader)

Reads an instance of DatabaseColumnProperties from the JsonReader.

Boolean isComputed()

Get the isComputed property: Whether or not the column is computed.

Boolean memoryOptimized()

Get the memoryOptimized property: Whether or not the column belongs to a memory optimized table.

TableTemporalType temporalType()

Get the temporalType property: The table temporal type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DatabaseColumnProperties withColumnType(ColumnDataType columnType)

Set the columnType property: The column data type.

DatabaseColumnProperties withIsComputed(Boolean isComputed)

Set the isComputed property: Whether or not the column is computed.

DatabaseColumnProperties withMemoryOptimized(Boolean memoryOptimized)

Set the memoryOptimized property: Whether or not the column belongs to a memory optimized table.

DatabaseColumnProperties withTemporalType(TableTemporalType temporalType)

Set the temporalType property: The table temporal type.

Methods inherited from java.lang.Object

Constructor Details

DatabaseColumnProperties

public DatabaseColumnProperties()

Creates an instance of DatabaseColumnProperties class.

Method Details

columnType

public ColumnDataType columnType()

Get the columnType property: The column data type.

Returns:

the columnType value.

fromJson

public static DatabaseColumnProperties fromJson(JsonReader jsonReader)

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.

isComputed

public Boolean isComputed()

Get the isComputed property: Whether or not the column is computed.

Returns:

the isComputed value.

memoryOptimized

public Boolean memoryOptimized()

Get the memoryOptimized property: Whether or not the column belongs to a memory optimized table.

Returns:

the memoryOptimized value.

temporalType

public TableTemporalType temporalType()

Get the temporalType property: The table temporal type.

Returns:

the temporalType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withColumnType

public DatabaseColumnProperties withColumnType(ColumnDataType columnType)

Set the columnType property: The column data type.

Parameters:

columnType - the columnType value to set.

Returns:

the DatabaseColumnProperties object itself.

withIsComputed

public DatabaseColumnProperties withIsComputed(Boolean isComputed)

Set the isComputed property: Whether or not the column is computed.

Parameters:

isComputed - the isComputed value to set.

Returns:

the DatabaseColumnProperties object itself.

withMemoryOptimized

public DatabaseColumnProperties withMemoryOptimized(Boolean memoryOptimized)

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.

withTemporalType

public DatabaseColumnProperties withTemporalType(TableTemporalType temporalType)

Set the temporalType property: The table temporal type.

Parameters:

temporalType - the temporalType value to set.

Returns:

the DatabaseColumnProperties object itself.

Applies to