Class RegionContractInner
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.RegionContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RegionContractInner>
public final class RegionContractInner
extends Object
implements com.azure.json.JsonSerializable<RegionContractInner>
Region profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RegionContractInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RegionContractInner from the JsonReader.Get the isDeleted property: whether Region is deleted.Get the isMasterRegion property: whether Region is the master region.name()Get the name property: Region name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIsDeleted(Boolean isDeleted) Set the isDeleted property: whether Region is deleted.withIsMasterRegion(Boolean isMasterRegion) Set the isMasterRegion property: whether Region is the master region.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
-
RegionContractInner
public RegionContractInner()Creates an instance of RegionContractInner class.
-
-
Method Details
-
name
Get the name property: Region name.- Returns:
- the name value.
-
isMasterRegion
Get the isMasterRegion property: whether Region is the master region.- Returns:
- the isMasterRegion value.
-
withIsMasterRegion
Set the isMasterRegion property: whether Region is the master region.- Parameters:
isMasterRegion- the isMasterRegion value to set.- Returns:
- the RegionContractInner object itself.
-
isDeleted
Get the isDeleted property: whether Region is deleted.- Returns:
- the isDeleted value.
-
withIsDeleted
Set the isDeleted property: whether Region is deleted.- Parameters:
isDeleted- the isDeleted value to set.- Returns:
- the RegionContractInner 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<RegionContractInner>- Throws:
IOException
-
fromJson
Reads an instance of RegionContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RegionContractInner 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 RegionContractInner.
-