Class StreamDeclaration

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

public final class StreamDeclaration extends Object implements com.azure.json.JsonSerializable<StreamDeclaration>
Declaration of a custom stream.
  • Constructor Details

    • StreamDeclaration

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

    • columns

      public List<ColumnDefinition> columns()
      Get the columns property: List of columns used by data in this stream.
      Returns:
      the columns value.
    • withColumns

      public StreamDeclaration withColumns(List<ColumnDefinition> columns)
      Set the columns property: List of columns used by data in this stream.
      Parameters:
      columns - the columns value to set.
      Returns:
      the StreamDeclaration 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<StreamDeclaration>
      Throws:
      IOException
    • fromJson

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