Class DataCollectionRuleAssociation
java.lang.Object
com.azure.resourcemanager.monitor.models.DataCollectionRuleAssociation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataCollectionRuleAssociation>
- Direct Known Subclasses:
DataCollectionRuleAssociationProxyOnlyResourceProperties
public class DataCollectionRuleAssociation
extends Object
implements com.azure.json.JsonSerializable<DataCollectionRuleAssociation>
Definition of association of a data collection rule with a monitored Azure resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataCollectionRuleAssociation class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dataCollectionEndpointId property: The resource ID of the data collection endpoint that is to be associated.Get the dataCollectionRuleId property: The resource ID of the data collection rule that is to be associated.Get the description property: Description of the association.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DataCollectionRuleAssociation from the JsonReader.metadata()
Get the metadata property: Metadata about the resource.Get the provisioningState property: The resource provisioning state.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DataCollectionRuleAssociation
public DataCollectionRuleAssociation()Creates an instance of DataCollectionRuleAssociation class.
-
-
Method Details
-
description
Get the description property: Description of the association.- Returns:
- the description value.
-
withDescription
Set the description property: Description of the association.- Parameters:
description
- the description value to set.- Returns:
- the DataCollectionRuleAssociation object itself.
-
dataCollectionRuleId
Get the dataCollectionRuleId property: The resource ID of the data collection rule that is to be associated.- Returns:
- the dataCollectionRuleId value.
-
withDataCollectionRuleId
Set the dataCollectionRuleId property: The resource ID of the data collection rule that is to be associated.- Parameters:
dataCollectionRuleId
- the dataCollectionRuleId value to set.- Returns:
- the DataCollectionRuleAssociation object itself.
-
dataCollectionEndpointId
Get the dataCollectionEndpointId property: The resource ID of the data collection endpoint that is to be associated.- Returns:
- the dataCollectionEndpointId value.
-
withDataCollectionEndpointId
Set the dataCollectionEndpointId property: The resource ID of the data collection endpoint that is to be associated.- Parameters:
dataCollectionEndpointId
- the dataCollectionEndpointId value to set.- Returns:
- the DataCollectionRuleAssociation object itself.
-
provisioningState
Get the provisioningState property: The resource provisioning state.- Returns:
- the provisioningState value.
-
metadata
Get the metadata property: Metadata about the resource.- Returns:
- the metadata value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DataCollectionRuleAssociation>
- Throws:
IOException
-
fromJson
public static DataCollectionRuleAssociation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DataCollectionRuleAssociation from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DataCollectionRuleAssociation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the DataCollectionRuleAssociation.
-