Class DataCollectionRuleResourceInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.monitor.fluent.models.DataCollectionRuleResourceInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class DataCollectionRuleResourceInner extends com.azure.core.management.Resource
Definition of ARM tracked top level resource.
  • Constructor Details

    • DataCollectionRuleResourceInner

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

    • kind

      Get the kind property: The kind of the resource.
      Returns:
      the kind value.
    • withKind

      Set the kind property: The kind of the resource.
      Parameters:
      kind - the kind value to set.
      Returns:
      the DataCollectionRuleResourceInner object itself.
    • etag

      public String etag()
      Get the etag property: Resource entity tag (ETag).
      Returns:
      the etag value.
    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Metadata pertaining to creation and last modification of the resource.
      Returns:
      the systemData value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • withLocation

      public DataCollectionRuleResourceInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      Overrides:
      withTags in class com.azure.core.management.Resource
    • description

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

      public DataCollectionRuleResourceInner withDescription(String description)
      Set the description property: Description of the data collection rule.
      Parameters:
      description - the description value to set.
      Returns:
      the DataCollectionRuleResourceInner object itself.
    • immutableId

      public String immutableId()
      Get the immutableId property: The immutable ID of this data collection rule. This property is READ-ONLY.
      Returns:
      the immutableId value.
    • dataCollectionEndpointId

      public String dataCollectionEndpointId()
      Get the dataCollectionEndpointId property: The resource ID of the data collection endpoint that this rule can be used with.
      Returns:
      the dataCollectionEndpointId value.
    • withDataCollectionEndpointId

      public DataCollectionRuleResourceInner withDataCollectionEndpointId(String dataCollectionEndpointId)
      Set the dataCollectionEndpointId property: The resource ID of the data collection endpoint that this rule can be used with.
      Parameters:
      dataCollectionEndpointId - the dataCollectionEndpointId value to set.
      Returns:
      the DataCollectionRuleResourceInner object itself.
    • metadata

      public DataCollectionRuleMetadata metadata()
      Get the metadata property: Metadata about the resource.
      Returns:
      the metadata value.
    • streamDeclarations

      public Map<String,StreamDeclaration> streamDeclarations()
      Get the streamDeclarations property: Declaration of custom streams used in this rule.
      Returns:
      the streamDeclarations value.
    • withStreamDeclarations

      public DataCollectionRuleResourceInner withStreamDeclarations(Map<String,StreamDeclaration> streamDeclarations)
      Set the streamDeclarations property: Declaration of custom streams used in this rule.
      Parameters:
      streamDeclarations - the streamDeclarations value to set.
      Returns:
      the DataCollectionRuleResourceInner object itself.
    • dataSources

      public DataCollectionRuleDataSources dataSources()
      Get the dataSources property: The specification of data sources. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
      Returns:
      the dataSources value.
    • withDataSources

      public DataCollectionRuleResourceInner withDataSources(DataCollectionRuleDataSources dataSources)
      Set the dataSources property: The specification of data sources. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
      Parameters:
      dataSources - the dataSources value to set.
      Returns:
      the DataCollectionRuleResourceInner object itself.
    • destinations

      public DataCollectionRuleDestinations destinations()
      Get the destinations property: The specification of destinations.
      Returns:
      the destinations value.
    • withDestinations

      public DataCollectionRuleResourceInner withDestinations(DataCollectionRuleDestinations destinations)
      Set the destinations property: The specification of destinations.
      Parameters:
      destinations - the destinations value to set.
      Returns:
      the DataCollectionRuleResourceInner object itself.
    • dataFlows

      public List<DataFlow> dataFlows()
      Get the dataFlows property: The specification of data flows.
      Returns:
      the dataFlows value.
    • withDataFlows

      public DataCollectionRuleResourceInner withDataFlows(List<DataFlow> dataFlows)
      Set the dataFlows property: The specification of data flows.
      Parameters:
      dataFlows - the dataFlows value to set.
      Returns:
      the DataCollectionRuleResourceInner object itself.
    • provisioningState

      public KnownDataCollectionRuleProvisioningState provisioningState()
      Get the provisioningState property: The resource provisioning state.
      Returns:
      the provisioningState 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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.Resource
      Throws:
      IOException
    • fromJson

      public static DataCollectionRuleResourceInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DataCollectionRuleResourceInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DataCollectionRuleResourceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the DataCollectionRuleResourceInner.