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