Class DataCollectionRuleResourceProperties
java.lang.Object
com.azure.resourcemanager.monitor.models.DataCollectionRule
com.azure.resourcemanager.monitor.fluent.models.DataCollectionRuleResourceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataCollectionRule>
Resource properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataCollectionRuleResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DataCollectionRuleResourceProperties from the JsonReader.Get the immutableId property: The immutable ID of this data collection rule.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 this rule can be used with.withDataFlows
(List<DataFlow> dataFlows) Set the dataFlows property: The specification of data flows.withDataSources
(DataCollectionRuleDataSources dataSources) Set the dataSources property: The specification of data sources.withDescription
(String description) Set the description property: Description of the data collection rule.withDestinations
(DataCollectionRuleDestinations destinations) Set the destinations property: The specification of destinations.withStreamDeclarations
(Map<String, StreamDeclaration> streamDeclarations) Set the streamDeclarations property: Declaration of custom streams used in this rule.Methods inherited from class com.azure.resourcemanager.monitor.models.DataCollectionRule
dataCollectionEndpointId, dataFlows, dataSources, description, destinations, streamDeclarations
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
-
DataCollectionRuleResourceProperties
public DataCollectionRuleResourceProperties()Creates an instance of DataCollectionRuleResourceProperties class.
-
-
Method Details
-
immutableId
Get the immutableId property: The immutable ID of this data collection rule. This property is READ-ONLY.- Overrides:
immutableId
in classDataCollectionRule
- Returns:
- the immutableId value.
-
metadata
Get the metadata property: Metadata about the resource.- Overrides:
metadata
in classDataCollectionRule
- Returns:
- the metadata value.
-
provisioningState
Get the provisioningState property: The resource provisioning state.- Overrides:
provisioningState
in classDataCollectionRule
- Returns:
- the provisioningState value.
-
withDescription
Set the description property: Description of the data collection rule.- Overrides:
withDescription
in classDataCollectionRule
- Parameters:
description
- the description value to set.- Returns:
- the DataCollectionRule object itself.
-
withDataCollectionEndpointId
public DataCollectionRuleResourceProperties withDataCollectionEndpointId(String dataCollectionEndpointId) Set the dataCollectionEndpointId property: The resource ID of the data collection endpoint that this rule can be used with.- Overrides:
withDataCollectionEndpointId
in classDataCollectionRule
- Parameters:
dataCollectionEndpointId
- the dataCollectionEndpointId value to set.- Returns:
- the DataCollectionRule object itself.
-
withStreamDeclarations
public DataCollectionRuleResourceProperties withStreamDeclarations(Map<String, StreamDeclaration> streamDeclarations) Set the streamDeclarations property: Declaration of custom streams used in this rule.- Overrides:
withStreamDeclarations
in classDataCollectionRule
- Parameters:
streamDeclarations
- the streamDeclarations value to set.- Returns:
- the DataCollectionRule object itself.
-
withDataSources
public DataCollectionRuleResourceProperties 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.- Overrides:
withDataSources
in classDataCollectionRule
- Parameters:
dataSources
- the dataSources value to set.- Returns:
- the DataCollectionRule object itself.
-
withDestinations
public DataCollectionRuleResourceProperties withDestinations(DataCollectionRuleDestinations destinations) Set the destinations property: The specification of destinations.- Overrides:
withDestinations
in classDataCollectionRule
- Parameters:
destinations
- the destinations value to set.- Returns:
- the DataCollectionRule object itself.
-
withDataFlows
Set the dataFlows property: The specification of data flows.- Overrides:
withDataFlows
in classDataCollectionRule
- Parameters:
dataFlows
- the dataFlows value to set.- Returns:
- the DataCollectionRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classDataCollectionRule
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DataCollectionRule>
- Overrides:
toJson
in classDataCollectionRule
- Throws:
IOException
-
fromJson
public static DataCollectionRuleResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DataCollectionRuleResourceProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DataCollectionRuleResourceProperties 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 DataCollectionRuleResourceProperties.
-