Class DestinationsSpec

java.lang.Object
com.azure.resourcemanager.monitor.models.DestinationsSpec
All Implemented Interfaces:
com.azure.json.JsonSerializable<DestinationsSpec>
Direct Known Subclasses:
DataCollectionRuleDestinations

public class DestinationsSpec extends Object implements com.azure.json.JsonSerializable<DestinationsSpec>
Specification of destinations that can be used in data flows.
  • Constructor Details

    • DestinationsSpec

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

    • logAnalytics

      public List<LogAnalyticsDestination> logAnalytics()
      Get the logAnalytics property: List of Log Analytics destinations.
      Returns:
      the logAnalytics value.
    • withLogAnalytics

      public DestinationsSpec withLogAnalytics(List<LogAnalyticsDestination> logAnalytics)
      Set the logAnalytics property: List of Log Analytics destinations.
      Parameters:
      logAnalytics - the logAnalytics value to set.
      Returns:
      the DestinationsSpec object itself.
    • azureMonitorMetrics

      public DestinationsSpecAzureMonitorMetrics azureMonitorMetrics()
      Get the azureMonitorMetrics property: Azure Monitor Metrics destination.
      Returns:
      the azureMonitorMetrics value.
    • withAzureMonitorMetrics

      public DestinationsSpec withAzureMonitorMetrics(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics)
      Set the azureMonitorMetrics property: Azure Monitor Metrics destination.
      Parameters:
      azureMonitorMetrics - the azureMonitorMetrics value to set.
      Returns:
      the DestinationsSpec 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<DestinationsSpec>
      Throws:
      IOException
    • fromJson

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