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 Details

    • RegionContractInner

      public RegionContractInner()
      Creates an instance of RegionContractInner class.
  • Method Details

    • name

      public String name()
      Get the name property: Region name.
      Returns:
      the name value.
    • isMasterRegion

      public Boolean isMasterRegion()
      Get the isMasterRegion property: whether Region is the master region.
      Returns:
      the isMasterRegion value.
    • withIsMasterRegion

      public RegionContractInner withIsMasterRegion(Boolean isMasterRegion)
      Set the isMasterRegion property: whether Region is the master region.
      Parameters:
      isMasterRegion - the isMasterRegion value to set.
      Returns:
      the RegionContractInner object itself.
    • isDeleted

      public Boolean isDeleted()
      Get the isDeleted property: whether Region is deleted.
      Returns:
      the isDeleted value.
    • withIsDeleted

      public RegionContractInner withIsDeleted(Boolean isDeleted)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RegionContractInner>
      Throws:
      IOException
    • fromJson

      public static RegionContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.