java.lang.Object
com.azure.resourcemanager.machinelearning.models.IndexColumn
All Implemented Interfaces:
com.azure.json.JsonSerializable<IndexColumn>

public final class IndexColumn extends Object implements com.azure.json.JsonSerializable<IndexColumn>
DTO object representing index column.
  • Constructor Details

    • IndexColumn

      public IndexColumn()
      Creates an instance of IndexColumn class.
  • Method Details

    • dataType

      public FeatureDataType dataType()
      Get the dataType property: Specifies the data type.
      Returns:
      the dataType value.
    • withDataType

      public IndexColumn withDataType(FeatureDataType dataType)
      Set the dataType property: Specifies the data type.
      Parameters:
      dataType - the dataType value to set.
      Returns:
      the IndexColumn object itself.
    • columnName

      public String columnName()
      Get the columnName property: Specifies the column name.
      Returns:
      the columnName value.
    • withColumnName

      public IndexColumn withColumnName(String columnName)
      Set the columnName property: Specifies the column name.
      Parameters:
      columnName - the columnName value to set.
      Returns:
      the IndexColumn 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<IndexColumn>
      Throws:
      IOException
    • fromJson

      public static IndexColumn fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of IndexColumn from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of IndexColumn 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 IndexColumn.