Class MetricSpecification
java.lang.Object
com.azure.resourcemanager.network.models.MetricSpecification
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricSpecification>
public final class MetricSpecification
extends Object
implements com.azure.json.JsonSerializable<MetricSpecification>
Description of metrics specification.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the aggregationType property: The aggregation type.Get the availabilities property: List of availability.Get the dimensions property: List of dimensions.Get the displayDescription property: The description of the metric.Get the displayName property: The display name of the metric.Get the enableRegionalMdmAccount property: Whether regional MDM account enabled.Get the fillGapWithZero property: Whether gaps would be filled with zeros.static MetricSpecificationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MetricSpecification from the JsonReader.Get the isInternal property: Whether the metric is internal.Get the metricFilterPattern property: Pattern for the filter of the metric.name()Get the name property: The name of the metric.Get the resourceIdDimensionNameOverride property: The resource Id dimension name override.Get the sourceMdmAccount property: The source MDM account.Get the sourceMdmNamespace property: The source MDM namespace.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: Units the metric to be displayed in.voidvalidate()Validates the instance.withAggregationType(String aggregationType) Set the aggregationType property: The aggregation type.withAvailabilities(List<Availability> availabilities) Set the availabilities property: List of availability.withDimensions(List<Dimension> dimensions) Set the dimensions property: List of dimensions.withDisplayDescription(String displayDescription) Set the displayDescription property: The description of the metric.withDisplayName(String displayName) Set the displayName property: The display name of the metric.withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount) Set the enableRegionalMdmAccount property: Whether regional MDM account enabled.withFillGapWithZero(Boolean fillGapWithZero) Set the fillGapWithZero property: Whether gaps would be filled with zeros.withIsInternal(Boolean isInternal) Set the isInternal property: Whether the metric is internal.withMetricFilterPattern(String metricFilterPattern) Set the metricFilterPattern property: Pattern for the filter of the metric.Set the name property: The name of the metric.withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride) Set the resourceIdDimensionNameOverride property: The resource Id dimension name override.withSourceMdmAccount(String sourceMdmAccount) Set the sourceMdmAccount property: The source MDM account.withSourceMdmNamespace(String sourceMdmNamespace) Set the sourceMdmNamespace property: The source MDM namespace.Set the unit property: Units the metric to be displayed in.Methods inherited from class java.lang.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
-
MetricSpecification
public MetricSpecification()Creates an instance of MetricSpecification class.
-
-
Method Details
-
name
Get the name property: The name of the metric.- Returns:
- the name value.
-
withName
Set the name property: The name of the metric.- Parameters:
name- the name value to set.- Returns:
- the MetricSpecification object itself.
-
displayName
Get the displayName property: The display name of the metric.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The display name of the metric.- Parameters:
displayName- the displayName value to set.- Returns:
- the MetricSpecification object itself.
-
displayDescription
Get the displayDescription property: The description of the metric.- Returns:
- the displayDescription value.
-
withDisplayDescription
Set the displayDescription property: The description of the metric.- Parameters:
displayDescription- the displayDescription value to set.- Returns:
- the MetricSpecification object itself.
-
unit
Get the unit property: Units the metric to be displayed in.- Returns:
- the unit value.
-
withUnit
Set the unit property: Units the metric to be displayed in.- Parameters:
unit- the unit value to set.- Returns:
- the MetricSpecification object itself.
-
aggregationType
Get the aggregationType property: The aggregation type.- Returns:
- the aggregationType value.
-
withAggregationType
Set the aggregationType property: The aggregation type.- Parameters:
aggregationType- the aggregationType value to set.- Returns:
- the MetricSpecification object itself.
-
availabilities
Get the availabilities property: List of availability.- Returns:
- the availabilities value.
-
withAvailabilities
Set the availabilities property: List of availability.- Parameters:
availabilities- the availabilities value to set.- Returns:
- the MetricSpecification object itself.
-
enableRegionalMdmAccount
Get the enableRegionalMdmAccount property: Whether regional MDM account enabled.- Returns:
- the enableRegionalMdmAccount value.
-
withEnableRegionalMdmAccount
Set the enableRegionalMdmAccount property: Whether regional MDM account enabled.- Parameters:
enableRegionalMdmAccount- the enableRegionalMdmAccount value to set.- Returns:
- the MetricSpecification object itself.
-
fillGapWithZero
Get the fillGapWithZero property: Whether gaps would be filled with zeros.- Returns:
- the fillGapWithZero value.
-
withFillGapWithZero
Set the fillGapWithZero property: Whether gaps would be filled with zeros.- Parameters:
fillGapWithZero- the fillGapWithZero value to set.- Returns:
- the MetricSpecification object itself.
-
metricFilterPattern
Get the metricFilterPattern property: Pattern for the filter of the metric.- Returns:
- the metricFilterPattern value.
-
withMetricFilterPattern
Set the metricFilterPattern property: Pattern for the filter of the metric.- Parameters:
metricFilterPattern- the metricFilterPattern value to set.- Returns:
- the MetricSpecification object itself.
-
dimensions
Get the dimensions property: List of dimensions.- Returns:
- the dimensions value.
-
withDimensions
Set the dimensions property: List of dimensions.- Parameters:
dimensions- the dimensions value to set.- Returns:
- the MetricSpecification object itself.
-
isInternal
Get the isInternal property: Whether the metric is internal.- Returns:
- the isInternal value.
-
withIsInternal
Set the isInternal property: Whether the metric is internal.- Parameters:
isInternal- the isInternal value to set.- Returns:
- the MetricSpecification object itself.
-
sourceMdmAccount
Get the sourceMdmAccount property: The source MDM account.- Returns:
- the sourceMdmAccount value.
-
withSourceMdmAccount
Set the sourceMdmAccount property: The source MDM account.- Parameters:
sourceMdmAccount- the sourceMdmAccount value to set.- Returns:
- the MetricSpecification object itself.
-
sourceMdmNamespace
Get the sourceMdmNamespace property: The source MDM namespace.- Returns:
- the sourceMdmNamespace value.
-
withSourceMdmNamespace
Set the sourceMdmNamespace property: The source MDM namespace.- Parameters:
sourceMdmNamespace- the sourceMdmNamespace value to set.- Returns:
- the MetricSpecification object itself.
-
resourceIdDimensionNameOverride
Get the resourceIdDimensionNameOverride property: The resource Id dimension name override.- Returns:
- the resourceIdDimensionNameOverride value.
-
withResourceIdDimensionNameOverride
public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride) Set the resourceIdDimensionNameOverride property: The resource Id dimension name override.- Parameters:
resourceIdDimensionNameOverride- the resourceIdDimensionNameOverride value to set.- Returns:
- the MetricSpecification object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MetricSpecification>- Throws:
IOException
-
fromJson
Reads an instance of MetricSpecification from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MetricSpecification 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 MetricSpecification.
-