Class OperationMetricSpecificationDefinition
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.OperationMetricSpecificationDefinition
-
public final class OperationMetricSpecificationDefinition extends Object
The definition of Azure Monitoring metric.
-
-
Constructor Summary
Constructors Constructor Description OperationMetricSpecificationDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaggregationType()Get the aggregationType property: Metric aggregation type.StringdisplayDescription()Get the displayDescription property: Metric description.StringdisplayName()Get the displayName property: Metric display name.StringinternalMetricName()Get the internalMetricName property: Internal metric name.Stringname()Get the name property: Metric name.Stringunit()Get the unit property: Metric unit.voidvalidate()Validates the instance.OperationMetricSpecificationDefinitionwithAggregationType(String aggregationType)Set the aggregationType property: Metric aggregation type.OperationMetricSpecificationDefinitionwithDisplayDescription(String displayDescription)Set the displayDescription property: Metric description.OperationMetricSpecificationDefinitionwithDisplayName(String displayName)Set the displayName property: Metric display name.OperationMetricSpecificationDefinitionwithInternalMetricName(String internalMetricName)Set the internalMetricName property: Internal metric name.OperationMetricSpecificationDefinitionwithName(String name)Set the name property: Metric name.OperationMetricSpecificationDefinitionwithUnit(String unit)Set the unit property: Metric unit.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Metric name.- Returns:
- the name value.
-
withName
public OperationMetricSpecificationDefinition withName(String name)
Set the name property: Metric name.- Parameters:
name- the name value to set.- Returns:
- the OperationMetricSpecificationDefinition object itself.
-
displayName
public String displayName()
Get the displayName property: Metric display name.- Returns:
- the displayName value.
-
withDisplayName
public OperationMetricSpecificationDefinition withDisplayName(String displayName)
Set the displayName property: Metric display name.- Parameters:
displayName- the displayName value to set.- Returns:
- the OperationMetricSpecificationDefinition object itself.
-
displayDescription
public String displayDescription()
Get the displayDescription property: Metric description.- Returns:
- the displayDescription value.
-
withDisplayDescription
public OperationMetricSpecificationDefinition withDisplayDescription(String displayDescription)
Set the displayDescription property: Metric description.- Parameters:
displayDescription- the displayDescription value to set.- Returns:
- the OperationMetricSpecificationDefinition object itself.
-
unit
public String unit()
Get the unit property: Metric unit.- Returns:
- the unit value.
-
withUnit
public OperationMetricSpecificationDefinition withUnit(String unit)
Set the unit property: Metric unit.- Parameters:
unit- the unit value to set.- Returns:
- the OperationMetricSpecificationDefinition object itself.
-
aggregationType
public String aggregationType()
Get the aggregationType property: Metric aggregation type.- Returns:
- the aggregationType value.
-
withAggregationType
public OperationMetricSpecificationDefinition withAggregationType(String aggregationType)
Set the aggregationType property: Metric aggregation type.- Parameters:
aggregationType- the aggregationType value to set.- Returns:
- the OperationMetricSpecificationDefinition object itself.
-
internalMetricName
public String internalMetricName()
Get the internalMetricName property: Internal metric name.- Returns:
- the internalMetricName value.
-
withInternalMetricName
public OperationMetricSpecificationDefinition withInternalMetricName(String internalMetricName)
Set the internalMetricName property: Internal metric name.- Parameters:
internalMetricName- the internalMetricName value to set.- Returns:
- the OperationMetricSpecificationDefinition object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-