Class DestinationsSpec
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.DestinationsSpec
-
- Direct Known Subclasses:
DataCollectionRuleDestinations
public class DestinationsSpec extends Object
Specification of destinations that can be used in data flows.
-
-
Constructor Summary
Constructors Constructor Description DestinationsSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DestinationsSpecAzureMonitorMetricsazureMonitorMetrics()Get the azureMonitorMetrics property: Azure Monitor Metrics destination.List<LogAnalyticsDestination>logAnalytics()Get the logAnalytics property: List of Log Analytics destinations.voidvalidate()Validates the instance.DestinationsSpecwithAzureMonitorMetrics(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics)Set the azureMonitorMetrics property: Azure Monitor Metrics destination.DestinationsSpecwithLogAnalytics(List<LogAnalyticsDestination> logAnalytics)Set the logAnalytics property: List of Log Analytics destinations.
-
-
-
Method Detail
-
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.
-
-