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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the azureMonitorMetrics property: Azure Monitor Metrics destination.static DestinationsSpec
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DestinationsSpec from the JsonReader.Get the logAnalytics property: List of Log Analytics destinations.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAzureMonitorMetrics
(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics) Set the azureMonitorMetrics property: Azure Monitor Metrics destination.withLogAnalytics
(List<LogAnalyticsDestination> logAnalytics) Set the logAnalytics property: List of Log Analytics destinations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DestinationsSpec
public DestinationsSpec()Creates an instance of DestinationsSpec class.
-
-
Method Details
-
logAnalytics
Get the logAnalytics property: List of Log Analytics destinations.- Returns:
- the logAnalytics value.
-
withLogAnalytics
Set the logAnalytics property: List of Log Analytics destinations.- Parameters:
logAnalytics
- the logAnalytics value to set.- Returns:
- the DestinationsSpec object itself.
-
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DestinationsSpec>
- Throws:
IOException
-
fromJson
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.
-