Class DataCollectionRuleAssociationProxyOnlyResourceProperties
java.lang.Object
com.azure.resourcemanager.monitor.models.DataCollectionRuleAssociation
com.azure.resourcemanager.monitor.fluent.models.DataCollectionRuleAssociationProxyOnlyResourceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataCollectionRuleAssociation>
public final class DataCollectionRuleAssociationProxyOnlyResourceProperties
extends DataCollectionRuleAssociation
Resource properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataCollectionRuleAssociationProxyOnlyResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DataCollectionRuleAssociationProxyOnlyResourceProperties from the JsonReader.metadata()Get the metadata property: Metadata about the resource.Get the provisioningState property: The resource provisioning state.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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 DataCollectionRuleAssociation
dataCollectionEndpointId, dataCollectionRuleId, descriptionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DataCollectionRuleAssociationProxyOnlyResourceProperties
public DataCollectionRuleAssociationProxyOnlyResourceProperties()Creates an instance of DataCollectionRuleAssociationProxyOnlyResourceProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: The resource provisioning state.- Overrides:
provisioningStatein classDataCollectionRuleAssociation- Returns:
- the provisioningState value.
-
metadata
Get the metadata property: Metadata about the resource.- Overrides:
metadatain classDataCollectionRuleAssociation- Returns:
- the metadata value.
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DataCollectionRuleAssociation>- Overrides:
toJsonin classDataCollectionRuleAssociation- Throws:
IOException
-
fromJson
public static DataCollectionRuleAssociationProxyOnlyResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DataCollectionRuleAssociationProxyOnlyResourceProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DataCollectionRuleAssociationProxyOnlyResourceProperties 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 DataCollectionRuleAssociationProxyOnlyResourceProperties.
-