Class MetricsResponseSeriesItem
java.lang.Object
com.azure.resourcemanager.cdn.models.MetricsResponseSeriesItem
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricsResponseSeriesItem>
public final class MetricsResponseSeriesItem
extends Object
implements com.azure.json.JsonSerializable<MetricsResponseSeriesItem>
The MetricsResponseSeriesItem model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MetricsResponseSeriesItem class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Get the data property: The data property.static MetricsResponseSeriesItemfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MetricsResponseSeriesItem from the JsonReader.groups()Get the groups property: The groups property.metric()Get the metric property: The metric property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: The unit property.voidvalidate()Validates the instance.Set the data property: The data property.Set the groups property: The groups property.withMetric(String metric) Set the metric property: The metric property.withUnit(MetricsSeriesUnit unit) Set the unit property: The unit property.Methods inherited from class java.lang.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
-
MetricsResponseSeriesItem
public MetricsResponseSeriesItem()Creates an instance of MetricsResponseSeriesItem class.
-
-
Method Details
-
metric
Get the metric property: The metric property.- Returns:
- the metric value.
-
withMetric
Set the metric property: The metric property.- Parameters:
metric- the metric value to set.- Returns:
- the MetricsResponseSeriesItem object itself.
-
unit
Get the unit property: The unit property.- Returns:
- the unit value.
-
withUnit
Set the unit property: The unit property.- Parameters:
unit- the unit value to set.- Returns:
- the MetricsResponseSeriesItem object itself.
-
groups
Get the groups property: The groups property.- Returns:
- the groups value.
-
withGroups
Set the groups property: The groups property.- Parameters:
groups- the groups value to set.- Returns:
- the MetricsResponseSeriesItem object itself.
-
data
Get the data property: The data property.- Returns:
- the data value.
-
withData
Set the data property: The data property.- Parameters:
data- the data value to set.- Returns:
- the MetricsResponseSeriesItem 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<MetricsResponseSeriesItem>- Throws:
IOException
-
fromJson
public static MetricsResponseSeriesItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MetricsResponseSeriesItem from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MetricsResponseSeriesItem 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 MetricsResponseSeriesItem.
-