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