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.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 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 DataCollectionRule
dataCollectionEndpointId, dataFlows, dataSources, description, destinations, streamDeclarationsMethods 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
-
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:
immutableIdin classDataCollectionRule- Returns:
- the immutableId value.
-
metadata
Get the metadata property: Metadata about the resource.- Overrides:
metadatain classDataCollectionRule- Returns:
- the metadata value.
-
provisioningState
Get the provisioningState property: The resource provisioning state.- Overrides:
provisioningStatein classDataCollectionRule- Returns:
- the provisioningState value.
-
withDescription
Set the description property: Description of the data collection rule.- Overrides:
withDescriptionin 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:
withDataCollectionEndpointIdin 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:
withStreamDeclarationsin 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:
withDataSourcesin 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:
withDestinationsin classDataCollectionRule- Parameters:
destinations- the destinations value to set.- Returns:
- the DataCollectionRule object itself.
-
withDataFlows
Set the dataFlows property: The specification of data flows.- Overrides:
withDataFlowsin classDataCollectionRule- Parameters:
dataFlows- the dataFlows value to set.- Returns:
- the DataCollectionRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classDataCollectionRule- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DataCollectionRule>- Overrides:
toJsonin 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.
-