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.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 com.azure.resourcemanager.monitor.models.DataCollectionRuleAssociation
dataCollectionEndpointId, dataCollectionRuleId, description
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
-
DataCollectionRuleAssociationProxyOnlyResourceProperties
public DataCollectionRuleAssociationProxyOnlyResourceProperties()Creates an instance of DataCollectionRuleAssociationProxyOnlyResourceProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: The resource provisioning state.- Overrides:
provisioningState
in classDataCollectionRuleAssociation
- Returns:
- the provisioningState value.
-
metadata
Get the metadata property: Metadata about the resource.- Overrides:
metadata
in classDataCollectionRuleAssociation
- Returns:
- the metadata value.
-
withDescription
Set the description property: Description of the association.- Overrides:
withDescription
in 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:
withDataCollectionRuleId
in 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:
withDataCollectionEndpointId
in classDataCollectionRuleAssociation
- Parameters:
dataCollectionEndpointId
- the dataCollectionEndpointId value to set.- Returns:
- the DataCollectionRuleAssociation object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classDataCollectionRuleAssociation
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DataCollectionRuleAssociation>
- Overrides:
toJson
in 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.
-