Class ColumnDefinition

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

public final class ColumnDefinition extends Object implements com.azure.json.JsonSerializable<ColumnDefinition>
Definition of custom data column.
  • Constructor Details

    • ColumnDefinition

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

    • name

      public String name()
      Get the name property: The name of the column.
      Returns:
      the name value.
    • withName

      public ColumnDefinition withName(String name)
      Set the name property: The name of the column.
      Parameters:
      name - the name value to set.
      Returns:
      the ColumnDefinition object itself.
    • type

      Get the type property: The type of the column data.
      Returns:
      the type value.
    • withType

      Set the type property: The type of the column data.
      Parameters:
      type - the type value to set.
      Returns:
      the ColumnDefinition 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<ColumnDefinition>
      Throws:
      IOException
    • fromJson

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