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