Class DataCollectionRuleAssociationProxyOnlyResourceProperties
java.lang.Object
com.azure.resourcemanager.monitor.models.DataCollectionRuleAssociation
com.azure.resourcemanager.monitor.fluent.models.DataCollectionRuleAssociationProxyOnlyResourceProperties
public final class DataCollectionRuleAssociationProxyOnlyResourceProperties
extends DataCollectionRuleAssociation
Resource properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataCollectionRuleAssociationProxyOnlyResourceProperties 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 is to be associated.withDataCollectionRuleId(String dataCollectionRuleId) Set the dataCollectionRuleId property: The resource ID of the data collection rule that is to be associated.withDescription(String description) Set the description property: Description of the association.Methods inherited from class com.azure.resourcemanager.monitor.models.DataCollectionRuleAssociation
dataCollectionEndpointId, dataCollectionRuleId, description, metadata, provisioningState
-
Constructor Details
-
DataCollectionRuleAssociationProxyOnlyResourceProperties
public DataCollectionRuleAssociationProxyOnlyResourceProperties()Creates an instance of DataCollectionRuleAssociationProxyOnlyResourceProperties class.
-
-
Method Details
-
withDescription
Set the description property: Description of the association.- Overrides:
withDescriptionin classDataCollectionRuleAssociation- Parameters:
description- the description value to set.- Returns:
- the DataCollectionRuleAssociation object itself.
-
withDataCollectionRuleId
public DataCollectionRuleAssociationProxyOnlyResourceProperties withDataCollectionRuleId(String dataCollectionRuleId) Set the dataCollectionRuleId property: The resource ID of the data collection rule that is to be associated.- Overrides:
withDataCollectionRuleIdin classDataCollectionRuleAssociation- Parameters:
dataCollectionRuleId- the dataCollectionRuleId value to set.- Returns:
- the DataCollectionRuleAssociation object itself.
-
withDataCollectionEndpointId
public DataCollectionRuleAssociationProxyOnlyResourceProperties withDataCollectionEndpointId(String dataCollectionEndpointId) Set the dataCollectionEndpointId property: The resource ID of the data collection endpoint that is to be associated.- Overrides:
withDataCollectionEndpointIdin classDataCollectionRuleAssociation- Parameters:
dataCollectionEndpointId- the dataCollectionEndpointId value to set.- Returns:
- the DataCollectionRuleAssociation object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classDataCollectionRuleAssociation- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-