Class DataCollectionRuleResourceProperties
java.lang.Object
com.azure.resourcemanager.monitor.models.DataCollectionRule
com.azure.resourcemanager.monitor.fluent.models.DataCollectionRuleResourceProperties
Resource properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataCollectionRuleResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates the instance.withDataCollectionEndpointId(String dataCollectionEndpointId) Set the dataCollectionEndpointId property: The resource ID of the data collection endpoint that this rule can be used with.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.withStreamDeclarations(Map<String, StreamDeclaration> streamDeclarations) Set the streamDeclarations property: Declaration of custom streams used in this rule.Methods inherited from class com.azure.resourcemanager.monitor.models.DataCollectionRule
dataCollectionEndpointId, dataFlows, dataSources, description, destinations, immutableId, metadata, provisioningState, streamDeclarations
-
Constructor Details
-
DataCollectionRuleResourceProperties
public DataCollectionRuleResourceProperties()Creates an instance of DataCollectionRuleResourceProperties class.
-
-
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.
-
withDataCollectionEndpointId
public DataCollectionRuleResourceProperties withDataCollectionEndpointId(String dataCollectionEndpointId) Set the dataCollectionEndpointId property: The resource ID of the data collection endpoint that this rule can be used with.- Overrides:
withDataCollectionEndpointIdin classDataCollectionRule- Parameters:
dataCollectionEndpointId- the dataCollectionEndpointId value to set.- Returns:
- the DataCollectionRule object itself.
-
withStreamDeclarations
public DataCollectionRuleResourceProperties withStreamDeclarations(Map<String, StreamDeclaration> streamDeclarations) Set the streamDeclarations property: Declaration of custom streams used in this rule.- Overrides:
withStreamDeclarationsin classDataCollectionRule- Parameters:
streamDeclarations- the streamDeclarations 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.
-