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