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

public final class DataFlow extends Object implements com.azure.json.JsonSerializable<DataFlow>
Definition of which streams are sent to which destinations.
  • Constructor Details

    • DataFlow

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

    • streams

      public List<KnownDataFlowStreams> streams()
      Get the streams property: List of streams for this data flow.
      Returns:
      the streams value.
    • withStreams

      public DataFlow withStreams(List<KnownDataFlowStreams> streams)
      Set the streams property: List of streams for this data flow.
      Parameters:
      streams - the streams value to set.
      Returns:
      the DataFlow object itself.
    • destinations

      public List<String> destinations()
      Get the destinations property: List of destinations for this data flow.
      Returns:
      the destinations value.
    • withDestinations

      public DataFlow withDestinations(List<String> destinations)
      Set the destinations property: List of destinations for this data flow.
      Parameters:
      destinations - the destinations value to set.
      Returns:
      the DataFlow object itself.
    • transformKql

      public String transformKql()
      Get the transformKql property: The KQL query to transform stream data.
      Returns:
      the transformKql value.
    • withTransformKql

      public DataFlow withTransformKql(String transformKql)
      Set the transformKql property: The KQL query to transform stream data.
      Parameters:
      transformKql - the transformKql value to set.
      Returns:
      the DataFlow object itself.
    • outputStream

      public String outputStream()
      Get the outputStream property: The output stream of the transform. Only required if the transform changes data to a different stream.
      Returns:
      the outputStream value.
    • withOutputStream

      public DataFlow withOutputStream(String outputStream)
      Set the outputStream property: The output stream of the transform. Only required if the transform changes data to a different stream.
      Parameters:
      outputStream - the outputStream value to set.
      Returns:
      the DataFlow 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<DataFlow>
      Throws:
      IOException
    • fromJson

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