Class MetricSpecification
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.MetricSpecification
-
public final class MetricSpecification extends Object
Definition of a single resource metric.
-
-
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 aggregationType property.List<MetricAvailability>availabilities()Get the availabilities property: The availabilities property.Stringcategory()Get the category property: The category property.List<Dimension>dimensions()Get the dimensions property: The dimensions property.StringdisplayDescription()Get the displayDescription property: The displayDescription property.StringdisplayName()Get the displayName property: The displayName property.BooleanenableRegionalMdmAccount()Get the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.BooleanfillGapWithZero()Get the fillGapWithZero property: The fillGapWithZero property.BooleanisInternal()Get the isInternal property: The isInternal property.StringmetricFilterPattern()Get the metricFilterPattern property: The metricFilterPattern property.Stringname()Get the name property: The name property.StringsourceMdmAccount()Get the sourceMdmAccount property: The sourceMdmAccount property.StringsourceMdmNamespace()Get the sourceMdmNamespace property: The sourceMdmNamespace property.List<String>supportedAggregationTypes()Get the supportedAggregationTypes property: The supportedAggregationTypes property.List<String>supportedTimeGrainTypes()Get the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.BooleansupportsInstanceLevelAggregation()Get the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.Stringunit()Get the unit property: The unit property.voidvalidate()Validates the instance.MetricSpecificationwithAggregationType(String aggregationType)Set the aggregationType property: The aggregationType property.MetricSpecificationwithAvailabilities(List<MetricAvailability> availabilities)Set the availabilities property: The availabilities property.MetricSpecificationwithCategory(String category)Set the category property: The category property.MetricSpecificationwithDimensions(List<Dimension> dimensions)Set the dimensions property: The dimensions property.MetricSpecificationwithDisplayDescription(String displayDescription)Set the displayDescription property: The displayDescription property.MetricSpecificationwithDisplayName(String displayName)Set the displayName property: The displayName property.MetricSpecificationwithEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)Set the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.MetricSpecificationwithFillGapWithZero(Boolean fillGapWithZero)Set the fillGapWithZero property: The fillGapWithZero property.MetricSpecificationwithIsInternal(Boolean isInternal)Set the isInternal property: The isInternal property.MetricSpecificationwithMetricFilterPattern(String metricFilterPattern)Set the metricFilterPattern property: The metricFilterPattern property.MetricSpecificationwithName(String name)Set the name property: The name property.MetricSpecificationwithSourceMdmAccount(String sourceMdmAccount)Set the sourceMdmAccount property: The sourceMdmAccount property.MetricSpecificationwithSourceMdmNamespace(String sourceMdmNamespace)Set the sourceMdmNamespace property: The sourceMdmNamespace property.MetricSpecificationwithSupportedAggregationTypes(List<String> supportedAggregationTypes)Set the supportedAggregationTypes property: The supportedAggregationTypes property.MetricSpecificationwithSupportedTimeGrainTypes(List<String> supportedTimeGrainTypes)Set the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.MetricSpecificationwithSupportsInstanceLevelAggregation(Boolean supportsInstanceLevelAggregation)Set the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.MetricSpecificationwithUnit(String unit)Set the unit property: The unit property.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name property.- Returns:
- the name value.
-
withName
public MetricSpecification withName(String name)
Set the name property: The name property.- Parameters:
name- the name value to set.- Returns:
- the MetricSpecification object itself.
-
displayName
public String displayName()
Get the displayName property: The displayName property.- Returns:
- the displayName value.
-
withDisplayName
public MetricSpecification withDisplayName(String displayName)
Set the displayName property: The displayName property.- Parameters:
displayName- the displayName value to set.- Returns:
- the MetricSpecification object itself.
-
displayDescription
public String displayDescription()
Get the displayDescription property: The displayDescription property.- Returns:
- the displayDescription value.
-
withDisplayDescription
public MetricSpecification withDisplayDescription(String displayDescription)
Set the displayDescription property: The displayDescription property.- Parameters:
displayDescription- the displayDescription value to set.- Returns:
- the MetricSpecification object itself.
-
unit
public String unit()
Get the unit property: The unit property.- Returns:
- the unit value.
-
withUnit
public MetricSpecification withUnit(String unit)
Set the unit property: The unit property.- Parameters:
unit- the unit value to set.- Returns:
- the MetricSpecification object itself.
-
aggregationType
public String aggregationType()
Get the aggregationType property: The aggregationType property.- Returns:
- the aggregationType value.
-
withAggregationType
public MetricSpecification withAggregationType(String aggregationType)
Set the aggregationType property: The aggregationType property.- Parameters:
aggregationType- the aggregationType value to set.- Returns:
- the MetricSpecification object itself.
-
supportsInstanceLevelAggregation
public Boolean supportsInstanceLevelAggregation()
Get the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.- Returns:
- the supportsInstanceLevelAggregation value.
-
withSupportsInstanceLevelAggregation
public MetricSpecification withSupportsInstanceLevelAggregation(Boolean supportsInstanceLevelAggregation)
Set the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.- Parameters:
supportsInstanceLevelAggregation- the supportsInstanceLevelAggregation value to set.- Returns:
- the MetricSpecification object itself.
-
enableRegionalMdmAccount
public Boolean enableRegionalMdmAccount()
Get the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.- Returns:
- the enableRegionalMdmAccount value.
-
withEnableRegionalMdmAccount
public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)
Set the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.- Parameters:
enableRegionalMdmAccount- the enableRegionalMdmAccount value to set.- Returns:
- the MetricSpecification object itself.
-
sourceMdmAccount
public String sourceMdmAccount()
Get the sourceMdmAccount property: The sourceMdmAccount property.- Returns:
- the sourceMdmAccount value.
-
withSourceMdmAccount
public MetricSpecification withSourceMdmAccount(String sourceMdmAccount)
Set the sourceMdmAccount property: The sourceMdmAccount property.- Parameters:
sourceMdmAccount- the sourceMdmAccount value to set.- Returns:
- the MetricSpecification object itself.
-
sourceMdmNamespace
public String sourceMdmNamespace()
Get the sourceMdmNamespace property: The sourceMdmNamespace property.- Returns:
- the sourceMdmNamespace value.
-
withSourceMdmNamespace
public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)
Set the sourceMdmNamespace property: The sourceMdmNamespace property.- Parameters:
sourceMdmNamespace- the sourceMdmNamespace value to set.- Returns:
- the MetricSpecification object itself.
-
metricFilterPattern
public String metricFilterPattern()
Get the metricFilterPattern property: The metricFilterPattern property.- Returns:
- the metricFilterPattern value.
-
withMetricFilterPattern
public MetricSpecification withMetricFilterPattern(String metricFilterPattern)
Set the metricFilterPattern property: The metricFilterPattern property.- Parameters:
metricFilterPattern- the metricFilterPattern value to set.- Returns:
- the MetricSpecification object itself.
-
fillGapWithZero
public Boolean fillGapWithZero()
Get the fillGapWithZero property: The fillGapWithZero property.- Returns:
- the fillGapWithZero value.
-
withFillGapWithZero
public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
Set the fillGapWithZero property: The fillGapWithZero property.- Parameters:
fillGapWithZero- the fillGapWithZero value to set.- Returns:
- the MetricSpecification object itself.
-
isInternal
public Boolean isInternal()
Get the isInternal property: The isInternal property.- Returns:
- the isInternal value.
-
withIsInternal
public MetricSpecification withIsInternal(Boolean isInternal)
Set the isInternal property: The isInternal property.- Parameters:
isInternal- the isInternal value to set.- Returns:
- the MetricSpecification object itself.
-
dimensions
public List<Dimension> dimensions()
Get the dimensions property: The dimensions property.- Returns:
- the dimensions value.
-
withDimensions
public MetricSpecification withDimensions(List<Dimension> dimensions)
Set the dimensions property: The dimensions property.- Parameters:
dimensions- the dimensions value to set.- Returns:
- the MetricSpecification object itself.
-
category
public String category()
Get the category property: The category property.- Returns:
- the category value.
-
withCategory
public MetricSpecification withCategory(String category)
Set the category property: The category property.- Parameters:
category- the category value to set.- Returns:
- the MetricSpecification object itself.
-
availabilities
public List<MetricAvailability> availabilities()
Get the availabilities property: The availabilities property.- Returns:
- the availabilities value.
-
withAvailabilities
public MetricSpecification withAvailabilities(List<MetricAvailability> availabilities)
Set the availabilities property: The availabilities property.- Parameters:
availabilities- the availabilities value to set.- Returns:
- the MetricSpecification object itself.
-
supportedTimeGrainTypes
public List<String> supportedTimeGrainTypes()
Get the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.- Returns:
- the supportedTimeGrainTypes value.
-
withSupportedTimeGrainTypes
public MetricSpecification withSupportedTimeGrainTypes(List<String> supportedTimeGrainTypes)
Set the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.- Parameters:
supportedTimeGrainTypes- the supportedTimeGrainTypes value to set.- Returns:
- the MetricSpecification object itself.
-
supportedAggregationTypes
public List<String> supportedAggregationTypes()
Get the supportedAggregationTypes property: The supportedAggregationTypes property.- Returns:
- the supportedAggregationTypes value.
-
withSupportedAggregationTypes
public MetricSpecification withSupportedAggregationTypes(List<String> supportedAggregationTypes)
Set the supportedAggregationTypes property: The supportedAggregationTypes property.- Parameters:
supportedAggregationTypes- the supportedAggregationTypes value to set.- Returns:
- the MetricSpecification object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-