Class MetricSpecification
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.MetricSpecification
-
public final class MetricSpecification extends Object
Metric specification of operation.
-
-
Constructor Summary
Constructors Constructor Description MetricSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaggregationType()Get the aggregationType property: Aggregation type could be Average.Stringcategory()Get the category property: The category this metric specification belong to, could be Capacity.List<Dimension>dimensions()Get the dimensions property: Dimensions of blobs, including blob type and access tier.StringdisplayDescription()Get the displayDescription property: Display description of metric specification.StringdisplayName()Get the displayName property: Display name of metric specification.BooleanfillGapWithZero()Get the fillGapWithZero property: The property to decide fill gap with zero or not.Stringname()Get the name property: Name of metric specification.StringresourceIdDimensionNameOverride()Get the resourceIdDimensionNameOverride property: Account Resource Id.Stringunit()Get the unit property: Unit could be Bytes or Count.voidvalidate()Validates the instance.MetricSpecificationwithAggregationType(String aggregationType)Set the aggregationType property: Aggregation type could be Average.MetricSpecificationwithCategory(String category)Set the category property: The category this metric specification belong to, could be Capacity.MetricSpecificationwithDimensions(List<Dimension> dimensions)Set the dimensions property: Dimensions of blobs, including blob type and access tier.MetricSpecificationwithDisplayDescription(String displayDescription)Set the displayDescription property: Display description of metric specification.MetricSpecificationwithDisplayName(String displayName)Set the displayName property: Display name of metric specification.MetricSpecificationwithFillGapWithZero(Boolean fillGapWithZero)Set the fillGapWithZero property: The property to decide fill gap with zero or not.MetricSpecificationwithName(String name)Set the name property: Name of metric specification.MetricSpecificationwithResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)Set the resourceIdDimensionNameOverride property: Account Resource Id.MetricSpecificationwithUnit(String unit)Set the unit property: Unit could be Bytes or Count.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of metric specification.- Returns:
- the name value.
-
withName
public MetricSpecification withName(String name)
Set the name property: Name of metric specification.- Parameters:
name- the name value to set.- Returns:
- the MetricSpecification object itself.
-
displayName
public String displayName()
Get the displayName property: Display name of metric specification.- Returns:
- the displayName value.
-
withDisplayName
public MetricSpecification withDisplayName(String displayName)
Set the displayName property: Display name of metric specification.- Parameters:
displayName- the displayName value to set.- Returns:
- the MetricSpecification object itself.
-
displayDescription
public String displayDescription()
Get the displayDescription property: Display description of metric specification.- Returns:
- the displayDescription value.
-
withDisplayDescription
public MetricSpecification withDisplayDescription(String displayDescription)
Set the displayDescription property: Display description of metric specification.- Parameters:
displayDescription- the displayDescription value to set.- Returns:
- the MetricSpecification object itself.
-
unit
public String unit()
Get the unit property: Unit could be Bytes or Count.- Returns:
- the unit value.
-
withUnit
public MetricSpecification withUnit(String unit)
Set the unit property: Unit could be Bytes or Count.- Parameters:
unit- the unit value to set.- Returns:
- the MetricSpecification object itself.
-
dimensions
public List<Dimension> dimensions()
Get the dimensions property: Dimensions of blobs, including blob type and access tier.- Returns:
- the dimensions value.
-
withDimensions
public MetricSpecification withDimensions(List<Dimension> dimensions)
Set the dimensions property: Dimensions of blobs, including blob type and access tier.- Parameters:
dimensions- the dimensions value to set.- Returns:
- the MetricSpecification object itself.
-
aggregationType
public String aggregationType()
Get the aggregationType property: Aggregation type could be Average.- Returns:
- the aggregationType value.
-
withAggregationType
public MetricSpecification withAggregationType(String aggregationType)
Set the aggregationType property: Aggregation type could be Average.- Parameters:
aggregationType- the aggregationType value to set.- Returns:
- the MetricSpecification object itself.
-
fillGapWithZero
public Boolean fillGapWithZero()
Get the fillGapWithZero property: The property to decide fill gap with zero or not.- Returns:
- the fillGapWithZero value.
-
withFillGapWithZero
public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
Set the fillGapWithZero property: The property to decide fill gap with zero or not.- Parameters:
fillGapWithZero- the fillGapWithZero value to set.- Returns:
- the MetricSpecification object itself.
-
category
public String category()
Get the category property: The category this metric specification belong to, could be Capacity.- Returns:
- the category value.
-
withCategory
public MetricSpecification withCategory(String category)
Set the category property: The category this metric specification belong to, could be Capacity.- Parameters:
category- the category value to set.- Returns:
- the MetricSpecification object itself.
-
resourceIdDimensionNameOverride
public String resourceIdDimensionNameOverride()
Get the resourceIdDimensionNameOverride property: Account Resource Id.- Returns:
- the resourceIdDimensionNameOverride value.
-
withResourceIdDimensionNameOverride
public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
Set the resourceIdDimensionNameOverride property: Account Resource Id.- 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.
-
-