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 Details

    • DataCollectionRuleAssociation

      public DataCollectionRuleAssociation()
      Creates an instance of DataCollectionRuleAssociation class.
  • Method Details

    • description

      public String description()
      Get the description property: Description of the association.
      Returns:
      the description value.
    • withDescription

      public DataCollectionRuleAssociation withDescription(String description)
      Set the description property: Description of the association.
      Parameters:
      description - the description value to set.
      Returns:
      the DataCollectionRuleAssociation object itself.
    • dataCollectionRuleId

      public String dataCollectionRuleId()
      Get the dataCollectionRuleId property: The resource ID of the data collection rule that is to be associated.
      Returns:
      the dataCollectionRuleId value.
    • withDataCollectionRuleId

      public DataCollectionRuleAssociation withDataCollectionRuleId(String dataCollectionRuleId)
      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

      public String dataCollectionEndpointId()
      Get the dataCollectionEndpointId property: The resource ID of the data collection endpoint that is to be associated.
      Returns:
      the dataCollectionEndpointId value.
    • withDataCollectionEndpointId

      public DataCollectionRuleAssociation withDataCollectionEndpointId(String dataCollectionEndpointId)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.