Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.containerregistry;
import com.fasterxml.jackson.annotation.JsonProperty;
The definition of Azure Monitoring metric.
/**
* The definition of Azure Monitoring metric.
*/
public class OperationMetricSpecificationDefinition {
Metric name.
/**
* Metric name.
*/
@JsonProperty(value = "name")
private String name;
Metric display name.
/**
* Metric display name.
*/
@JsonProperty(value = "displayName")
private String displayName;
Metric description.
/**
* Metric description.
*/
@JsonProperty(value = "displayDescription")
private String displayDescription;
Metric unit.
/**
* Metric unit.
*/
@JsonProperty(value = "unit")
private String unit;
Metric aggregation type.
/**
* Metric aggregation type.
*/
@JsonProperty(value = "aggregationType")
private String aggregationType;
Internal metric name.
/**
* Internal metric name.
*/
@JsonProperty(value = "internalMetricName")
private String internalMetricName;
Get metric name.
Returns: the name value
/**
* Get metric name.
*
* @return the name value
*/
public String name() {
return this.name;
}
Set metric name.
Params: - name – the name value to set
Returns: the OperationMetricSpecificationDefinition object itself.
/**
* Set metric name.
*
* @param name the name value to set
* @return the OperationMetricSpecificationDefinition object itself.
*/
public OperationMetricSpecificationDefinition withName(String name) {
this.name = name;
return this;
}
Get metric display name.
Returns: the displayName value
/**
* Get metric display name.
*
* @return the displayName value
*/
public String displayName() {
return this.displayName;
}
Set metric display name.
Params: - displayName – the displayName value to set
Returns: the OperationMetricSpecificationDefinition object itself.
/**
* Set metric display name.
*
* @param displayName the displayName value to set
* @return the OperationMetricSpecificationDefinition object itself.
*/
public OperationMetricSpecificationDefinition withDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
Get metric description.
Returns: the displayDescription value
/**
* Get metric description.
*
* @return the displayDescription value
*/
public String displayDescription() {
return this.displayDescription;
}
Set metric description.
Params: - displayDescription – the displayDescription value to set
Returns: the OperationMetricSpecificationDefinition object itself.
/**
* Set metric description.
*
* @param displayDescription the displayDescription value to set
* @return the OperationMetricSpecificationDefinition object itself.
*/
public OperationMetricSpecificationDefinition withDisplayDescription(String displayDescription) {
this.displayDescription = displayDescription;
return this;
}
Get metric unit.
Returns: the unit value
/**
* Get metric unit.
*
* @return the unit value
*/
public String unit() {
return this.unit;
}
Set metric unit.
Params: - unit – the unit value to set
Returns: the OperationMetricSpecificationDefinition object itself.
/**
* Set metric unit.
*
* @param unit the unit value to set
* @return the OperationMetricSpecificationDefinition object itself.
*/
public OperationMetricSpecificationDefinition withUnit(String unit) {
this.unit = unit;
return this;
}
Get metric aggregation type.
Returns: the aggregationType value
/**
* Get metric aggregation type.
*
* @return the aggregationType value
*/
public String aggregationType() {
return this.aggregationType;
}
Set metric aggregation type.
Params: - aggregationType – the aggregationType value to set
Returns: the OperationMetricSpecificationDefinition object itself.
/**
* Set metric aggregation type.
*
* @param aggregationType the aggregationType value to set
* @return the OperationMetricSpecificationDefinition object itself.
*/
public OperationMetricSpecificationDefinition withAggregationType(String aggregationType) {
this.aggregationType = aggregationType;
return this;
}
Get internal metric name.
Returns: the internalMetricName value
/**
* Get internal metric name.
*
* @return the internalMetricName value
*/
public String internalMetricName() {
return this.internalMetricName;
}
Set internal metric name.
Params: - internalMetricName – the internalMetricName value to set
Returns: the OperationMetricSpecificationDefinition object itself.
/**
* Set internal metric name.
*
* @param internalMetricName the internalMetricName value to set
* @return the OperationMetricSpecificationDefinition object itself.
*/
public OperationMetricSpecificationDefinition withInternalMetricName(String internalMetricName) {
this.internalMetricName = internalMetricName;
return this;
}
}