Class WafRankingsResponseDataItem
java.lang.Object
com.azure.resourcemanager.cdn.models.WafRankingsResponseDataItem
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WafRankingsResponseDataItem>
public final class WafRankingsResponseDataItem
extends Object
implements com.azure.json.JsonSerializable<WafRankingsResponseDataItem>
The WafRankingsResponseDataItem model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WafRankingsResponseDataItem class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WafRankingsResponseDataItemfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WafRankingsResponseDataItem from the JsonReader.Get the groupValues property: The groupValues property.metrics()Get the metrics property: The metrics property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withGroupValues(List<String> groupValues) Set the groupValues property: The groupValues property.withMetrics(List<WafRankingsResponseDataItemMetric> metrics) Set the metrics property: The metrics 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
-
WafRankingsResponseDataItem
public WafRankingsResponseDataItem()Creates an instance of WafRankingsResponseDataItem class.
-
-
Method Details
-
groupValues
Get the groupValues property: The groupValues property.- Returns:
- the groupValues value.
-
withGroupValues
Set the groupValues property: The groupValues property.- Parameters:
groupValues- the groupValues value to set.- Returns:
- the WafRankingsResponseDataItem object itself.
-
metrics
Get the metrics property: The metrics property.- Returns:
- the metrics value.
-
withMetrics
Set the metrics property: The metrics property.- Parameters:
metrics- the metrics value to set.- Returns:
- the WafRankingsResponseDataItem 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<WafRankingsResponseDataItem>- Throws:
IOException
-
fromJson
public static WafRankingsResponseDataItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WafRankingsResponseDataItem from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WafRankingsResponseDataItem 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 WafRankingsResponseDataItem.
-