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.cdn;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
The MetricsResponseSeriesItem model.
/**
* The MetricsResponseSeriesItem model.
*/
public class MetricsResponseSeriesItem {
The metric property.
/**
* The metric property.
*/
@JsonProperty(value = "metric")
private String metric;
Possible values include: 'count', 'bytes', 'bitsPerSecond'.
/**
* Possible values include: 'count', 'bytes', 'bitsPerSecond'.
*/
@JsonProperty(value = "unit")
private String unit;
The groups property.
/**
* The groups property.
*/
@JsonProperty(value = "groups")
private List<MetricsResponseSeriesItemGroupsItem> groups;
The data property.
/**
* The data property.
*/
@JsonProperty(value = "data")
private List<MetricsResponseSeriesItemDataItem> data;
Get the metric value.
Returns: the metric value
/**
* Get the metric value.
*
* @return the metric value
*/
public String metric() {
return this.metric;
}
Set the metric value.
Params: - metric – the metric value to set
Returns: the MetricsResponseSeriesItem object itself.
/**
* Set the metric value.
*
* @param metric the metric value to set
* @return the MetricsResponseSeriesItem object itself.
*/
public MetricsResponseSeriesItem withMetric(String metric) {
this.metric = metric;
return this;
}
Get possible values include: 'count', 'bytes', 'bitsPerSecond'.
Returns: the unit value
/**
* Get possible values include: 'count', 'bytes', 'bitsPerSecond'.
*
* @return the unit value
*/
public String unit() {
return this.unit;
}
Set possible values include: 'count', 'bytes', 'bitsPerSecond'.
Params: - unit – the unit value to set
Returns: the MetricsResponseSeriesItem object itself.
/**
* Set possible values include: 'count', 'bytes', 'bitsPerSecond'.
*
* @param unit the unit value to set
* @return the MetricsResponseSeriesItem object itself.
*/
public MetricsResponseSeriesItem withUnit(String unit) {
this.unit = unit;
return this;
}
Get the groups value.
Returns: the groups value
/**
* Get the groups value.
*
* @return the groups value
*/
public List<MetricsResponseSeriesItemGroupsItem> groups() {
return this.groups;
}
Set the groups value.
Params: - groups – the groups value to set
Returns: the MetricsResponseSeriesItem object itself.
/**
* Set the groups value.
*
* @param groups the groups value to set
* @return the MetricsResponseSeriesItem object itself.
*/
public MetricsResponseSeriesItem withGroups(List<MetricsResponseSeriesItemGroupsItem> groups) {
this.groups = groups;
return this;
}
Get the data value.
Returns: the data value
/**
* Get the data value.
*
* @return the data value
*/
public List<MetricsResponseSeriesItemDataItem> data() {
return this.data;
}
Set the data value.
Params: - data – the data value to set
Returns: the MetricsResponseSeriesItem object itself.
/**
* Set the data value.
*
* @param data the data value to set
* @return the MetricsResponseSeriesItem object itself.
*/
public MetricsResponseSeriesItem withData(List<MetricsResponseSeriesItemDataItem> data) {
this.data = data;
return this;
}
}