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 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.
    • 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.
    • temporalType

      public TableTemporalType temporalType()
      Get the temporalType property: The table temporal type.
      Returns:
      the temporalType value.
    • 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.
    • memoryOptimized

      public Boolean memoryOptimized()
      Get the memoryOptimized property: Whether or not the column belongs to a memory optimized table.
      Returns:
      the memoryOptimized value.
    • 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.
    • isComputed

      public Boolean isComputed()
      Get the isComputed property: Whether or not the column is computed.
      Returns:
      the isComputed value.
    • 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.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.