Class DataCollectionRuleResourceProperties
java.lang.Object
com.azure.resourcemanager.monitor.models.DataCollectionRule
com.azure.resourcemanager.monitor.models.DataCollectionRuleResourceProperties
Resource properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates the instance.withDataFlows(List<DataFlow> dataFlows) Set the dataFlows property: The specification of data flows.withDataSources(DataCollectionRuleDataSources dataSources) Set the dataSources property: The specification of data sources.withDescription(String description) Set the description property: Description of the data collection rule.withDestinations(DataCollectionRuleDestinations destinations) Set the destinations property: The specification of destinations.Methods inherited from class com.azure.resourcemanager.monitor.models.DataCollectionRule
dataFlows, dataSources, description, destinations, immutableId, provisioningState
-
Constructor Details
-
DataCollectionRuleResourceProperties
public DataCollectionRuleResourceProperties()
-
-
Method Details
-
withDescription
Set the description property: Description of the data collection rule.- Overrides:
withDescriptionin classDataCollectionRule- Parameters:
description- the description value to set.- Returns:
- the DataCollectionRule object itself.
-
withDataSources
public DataCollectionRuleResourceProperties withDataSources(DataCollectionRuleDataSources dataSources) Set the dataSources property: The specification of data sources. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.- Overrides:
withDataSourcesin classDataCollectionRule- Parameters:
dataSources- the dataSources value to set.- Returns:
- the DataCollectionRule object itself.
-
withDestinations
public DataCollectionRuleResourceProperties withDestinations(DataCollectionRuleDestinations destinations) Set the destinations property: The specification of destinations.- Overrides:
withDestinationsin classDataCollectionRule- Parameters:
destinations- the destinations value to set.- Returns:
- the DataCollectionRule object itself.
-
withDataFlows
Set the dataFlows property: The specification of data flows.- Overrides:
withDataFlowsin classDataCollectionRule- Parameters:
dataFlows- the dataFlows value to set.- Returns:
- the DataCollectionRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classDataCollectionRule- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-