Class DataCollectionRuleResourceProperties
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.DataCollectionRule
-
- com.azure.resourcemanager.monitor.models.DataCollectionRuleResourceProperties
-
public final class DataCollectionRuleResourceProperties extends DataCollectionRule
Resource properties.
-
-
Constructor Summary
Constructors Constructor Description DataCollectionRuleResourceProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate()Validates the instance.DataCollectionRuleResourcePropertieswithDataFlows(List<DataFlow> dataFlows)Set the dataFlows property: The specification of data flows.DataCollectionRuleResourcePropertieswithDataSources(DataCollectionRuleDataSources dataSources)Set the dataSources property: The specification of data sources.DataCollectionRuleResourcePropertieswithDescription(String description)Set the description property: Description of the data collection rule.DataCollectionRuleResourcePropertieswithDestinations(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
-
-
-
-
Method Detail
-
withDescription
public DataCollectionRuleResourceProperties withDescription(String description)
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
public DataCollectionRuleResourceProperties withDataFlows(List<DataFlow> dataFlows)
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.
-
-