Class MetricSpecification
java.lang.Object
com.azure.resourcemanager.storage.models.MetricSpecification
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricSpecification>
public final class MetricSpecification
extends Object
implements com.azure.json.JsonSerializable<MetricSpecification>
Metric specification of operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the aggregationType property: Aggregation type could be Average.category()Get the category property: The category this metric specification belong to, could be Capacity.Get the dimensions property: Dimensions of blobs, including blob type and access tier.Get the displayDescription property: Display description of metric specification.Get the displayName property: Display name of metric specification.Get the fillGapWithZero property: The property to decide fill gap with zero or not.static MetricSpecificationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MetricSpecification from the JsonReader.name()Get the name property: Name of metric specification.Get the resourceIdDimensionNameOverride property: Account Resource Id.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: Unit could be Bytes or Count.voidvalidate()Validates the instance.withAggregationType(String aggregationType) Set the aggregationType property: Aggregation type could be Average.withCategory(String category) Set the category property: The category this metric specification belong to, could be Capacity.withDimensions(List<Dimension> dimensions) Set the dimensions property: Dimensions of blobs, including blob type and access tier.withDisplayDescription(String displayDescription) Set the displayDescription property: Display description of metric specification.withDisplayName(String displayName) Set the displayName property: Display name of metric specification.withFillGapWithZero(Boolean fillGapWithZero) Set the fillGapWithZero property: The property to decide fill gap with zero or not.Set the name property: Name of metric specification.withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride) Set the resourceIdDimensionNameOverride property: Account Resource Id.Set the unit property: Unit could be Bytes or Count.Methods 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
-
MetricSpecification
public MetricSpecification()Creates an instance of MetricSpecification class.
-
-
Method Details
-
name
-
withName
Set the name property: Name of metric specification.- Parameters:
name- the name value to set.- Returns:
- the MetricSpecification object itself.
-
displayName
Get the displayName property: Display name of metric specification.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name of metric specification.- Parameters:
displayName- the displayName value to set.- Returns:
- the MetricSpecification object itself.
-
displayDescription
Get the displayDescription property: Display description of metric specification.- Returns:
- the displayDescription value.
-
withDisplayDescription
Set the displayDescription property: Display description of metric specification.- Parameters:
displayDescription- the displayDescription value to set.- Returns:
- the MetricSpecification object itself.
-
unit
-
withUnit
Set the unit property: Unit could be Bytes or Count.- Parameters:
unit- the unit value to set.- Returns:
- the MetricSpecification object itself.
-
dimensions
-
withDimensions
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
Get the aggregationType property: Aggregation type could be Average.- Returns:
- the aggregationType value.
-
withAggregationType
Set the aggregationType property: Aggregation type could be Average.- Parameters:
aggregationType- the aggregationType value to set.- Returns:
- the MetricSpecification object itself.
-
fillGapWithZero
Get the fillGapWithZero property: The property to decide fill gap with zero or not.- Returns:
- the fillGapWithZero value.
-
withFillGapWithZero
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
Get the category property: The category this metric specification belong to, could be Capacity.- Returns:
- the category value.
-
withCategory
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
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.
-
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.
-