Class RegionalSharingStatus

java.lang.Object
com.azure.resourcemanager.compute.models.RegionalSharingStatus
All Implemented Interfaces:
com.azure.json.JsonSerializable<RegionalSharingStatus>

public final class RegionalSharingStatus extends Object implements com.azure.json.JsonSerializable<RegionalSharingStatus>
Gallery regional sharing status.
  • Constructor Details

    • RegionalSharingStatus

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

    • region

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

      public RegionalSharingStatus withRegion(String region)
      Set the region property: Region name.
      Parameters:
      region - the region value to set.
      Returns:
      the RegionalSharingStatus object itself.
    • state

      public SharingState state()
      Get the state property: Gallery sharing state in current region.
      Returns:
      the state value.
    • details

      public String details()
      Get the details property: Details of gallery regional sharing failure.
      Returns:
      the details value.
    • withDetails

      public RegionalSharingStatus withDetails(String details)
      Set the details property: Details of gallery regional sharing failure.
      Parameters:
      details - the details value to set.
      Returns:
      the RegionalSharingStatus 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<RegionalSharingStatus>
      Throws:
      IOException
    • fromJson

      public static RegionalSharingStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RegionalSharingStatus from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RegionalSharingStatus 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 RegionalSharingStatus.