Class MetricSpecification
- java.lang.Object
-
- com.azure.resourcemanager.network.models.MetricSpecification
-
public final class MetricSpecification extends Object
Description of metrics specification.
-
-
Constructor Summary
Constructors Constructor Description MetricSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaggregationType()Get the aggregationType property: The aggregation type.List<Availability>availabilities()Get the availabilities property: List of availability.List<Dimension>dimensions()Get the dimensions property: List of dimensions.StringdisplayDescription()Get the displayDescription property: The description of the metric.StringdisplayName()Get the displayName property: The display name of the metric.BooleanenableRegionalMdmAccount()Get the enableRegionalMdmAccount property: Whether regional MDM account enabled.BooleanfillGapWithZero()Get the fillGapWithZero property: Whether gaps would be filled with zeros.BooleanisInternal()Get the isInternal property: Whether the metric is internal.StringmetricFilterPattern()Get the metricFilterPattern property: Pattern for the filter of the metric.Stringname()Get the name property: The name of the metric.StringresourceIdDimensionNameOverride()Get the resourceIdDimensionNameOverride property: The resource Id dimension name override.StringsourceMdmAccount()Get the sourceMdmAccount property: The source MDM account.StringsourceMdmNamespace()Get the sourceMdmNamespace property: The source MDM namespace.Stringunit()Get the unit property: Units the metric to be displayed in.voidvalidate()Validates the instance.MetricSpecificationwithAggregationType(String aggregationType)Set the aggregationType property: The aggregation type.MetricSpecificationwithAvailabilities(List<Availability> availabilities)Set the availabilities property: List of availability.MetricSpecificationwithDimensions(List<Dimension> dimensions)Set the dimensions property: List of dimensions.MetricSpecificationwithDisplayDescription(String displayDescription)Set the displayDescription property: The description of the metric.MetricSpecificationwithDisplayName(String displayName)Set the displayName property: The display name of the metric.MetricSpecificationwithEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)Set the enableRegionalMdmAccount property: Whether regional MDM account enabled.MetricSpecificationwithFillGapWithZero(Boolean fillGapWithZero)Set the fillGapWithZero property: Whether gaps would be filled with zeros.MetricSpecificationwithIsInternal(Boolean isInternal)Set the isInternal property: Whether the metric is internal.MetricSpecificationwithMetricFilterPattern(String metricFilterPattern)Set the metricFilterPattern property: Pattern for the filter of the metric.MetricSpecificationwithName(String name)Set the name property: The name of the metric.MetricSpecificationwithResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)Set the resourceIdDimensionNameOverride property: The resource Id dimension name override.MetricSpecificationwithSourceMdmAccount(String sourceMdmAccount)Set the sourceMdmAccount property: The source MDM account.MetricSpecificationwithSourceMdmNamespace(String sourceMdmNamespace)Set the sourceMdmNamespace property: The source MDM namespace.MetricSpecificationwithUnit(String unit)Set the unit property: Units the metric to be displayed in.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the metric.- Returns:
- the name value.
-
withName
public MetricSpecification withName(String name)
Set the name property: The name of the metric.- Parameters:
name- the name value to set.- Returns:
- the MetricSpecification object itself.
-
displayName
public String displayName()
Get the displayName property: The display name of the metric.- Returns:
- the displayName value.
-
withDisplayName
public MetricSpecification withDisplayName(String displayName)
Set the displayName property: The display name of the metric.- Parameters:
displayName- the displayName value to set.- Returns:
- the MetricSpecification object itself.
-
displayDescription
public String displayDescription()
Get the displayDescription property: The description of the metric.- Returns:
- the displayDescription value.
-
withDisplayDescription
public MetricSpecification withDisplayDescription(String displayDescription)
Set the displayDescription property: The description of the metric.- Parameters:
displayDescription- the displayDescription value to set.- Returns:
- the MetricSpecification object itself.
-
unit
public String unit()
Get the unit property: Units the metric to be displayed in.- Returns:
- the unit value.
-
withUnit
public MetricSpecification withUnit(String unit)
Set the unit property: Units the metric to be displayed in.- Parameters:
unit- the unit value to set.- Returns:
- the MetricSpecification object itself.
-
aggregationType
public String aggregationType()
Get the aggregationType property: The aggregation type.- Returns:
- the aggregationType value.
-
withAggregationType
public MetricSpecification withAggregationType(String aggregationType)
Set the aggregationType property: The aggregation type.- Parameters:
aggregationType- the aggregationType value to set.- Returns:
- the MetricSpecification object itself.
-
availabilities
public List<Availability> availabilities()
Get the availabilities property: List of availability.- Returns:
- the availabilities value.
-
withAvailabilities
public MetricSpecification withAvailabilities(List<Availability> availabilities)
Set the availabilities property: List of availability.- Parameters:
availabilities- the availabilities value to set.- Returns:
- the MetricSpecification object itself.
-
enableRegionalMdmAccount
public Boolean enableRegionalMdmAccount()
Get the enableRegionalMdmAccount property: Whether regional MDM account enabled.- Returns:
- the enableRegionalMdmAccount value.
-
withEnableRegionalMdmAccount
public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)
Set the enableRegionalMdmAccount property: Whether regional MDM account enabled.- Parameters:
enableRegionalMdmAccount- the enableRegionalMdmAccount value to set.- Returns:
- the MetricSpecification object itself.
-
fillGapWithZero
public Boolean fillGapWithZero()
Get the fillGapWithZero property: Whether gaps would be filled with zeros.- Returns:
- the fillGapWithZero value.
-
withFillGapWithZero
public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
Set the fillGapWithZero property: Whether gaps would be filled with zeros.- Parameters:
fillGapWithZero- the fillGapWithZero value to set.- Returns:
- the MetricSpecification object itself.
-
metricFilterPattern
public String metricFilterPattern()
Get the metricFilterPattern property: Pattern for the filter of the metric.- Returns:
- the metricFilterPattern value.
-
withMetricFilterPattern
public MetricSpecification withMetricFilterPattern(String metricFilterPattern)
Set the metricFilterPattern property: Pattern for the filter of the metric.- Parameters:
metricFilterPattern- the metricFilterPattern value to set.- Returns:
- the MetricSpecification object itself.
-
dimensions
public List<Dimension> dimensions()
Get the dimensions property: List of dimensions.- Returns:
- the dimensions value.
-
withDimensions
public MetricSpecification withDimensions(List<Dimension> dimensions)
Set the dimensions property: List of dimensions.- Parameters:
dimensions- the dimensions value to set.- Returns:
- the MetricSpecification object itself.
-
isInternal
public Boolean isInternal()
Get the isInternal property: Whether the metric is internal.- Returns:
- the isInternal value.
-
withIsInternal
public MetricSpecification withIsInternal(Boolean isInternal)
Set the isInternal property: Whether the metric is internal.- Parameters:
isInternal- the isInternal value to set.- Returns:
- the MetricSpecification object itself.
-
sourceMdmAccount
public String sourceMdmAccount()
Get the sourceMdmAccount property: The source MDM account.- Returns:
- the sourceMdmAccount value.
-
withSourceMdmAccount
public MetricSpecification withSourceMdmAccount(String sourceMdmAccount)
Set the sourceMdmAccount property: The source MDM account.- Parameters:
sourceMdmAccount- the sourceMdmAccount value to set.- Returns:
- the MetricSpecification object itself.
-
sourceMdmNamespace
public String sourceMdmNamespace()
Get the sourceMdmNamespace property: The source MDM namespace.- Returns:
- the sourceMdmNamespace value.
-
withSourceMdmNamespace
public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)
Set the sourceMdmNamespace property: The source MDM namespace.- Parameters:
sourceMdmNamespace- the sourceMdmNamespace value to set.- Returns:
- the MetricSpecification object itself.
-
resourceIdDimensionNameOverride
public String 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.
-
-