Class PortalRevisionContractProperties

java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.PortalRevisionContractProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<PortalRevisionContractProperties>

public final class PortalRevisionContractProperties extends Object implements com.azure.json.JsonSerializable<PortalRevisionContractProperties>
The PortalRevisionContractProperties model.
  • Constructor Details

    • PortalRevisionContractProperties

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

    • description

      public String description()
      Get the description property: Portal revision description.
      Returns:
      the description value.
    • withDescription

      public PortalRevisionContractProperties withDescription(String description)
      Set the description property: Portal revision description.
      Parameters:
      description - the description value to set.
      Returns:
      the PortalRevisionContractProperties object itself.
    • statusDetails

      public String statusDetails()
      Get the statusDetails property: Portal revision publishing status details.
      Returns:
      the statusDetails value.
    • status

      public PortalRevisionStatus status()
      Get the status property: Status of the portal's revision.
      Returns:
      the status value.
    • isCurrent

      public Boolean isCurrent()
      Get the isCurrent property: Indicates if the portal's revision is public.
      Returns:
      the isCurrent value.
    • withIsCurrent

      public PortalRevisionContractProperties withIsCurrent(Boolean isCurrent)
      Set the isCurrent property: Indicates if the portal's revision is public.
      Parameters:
      isCurrent - the isCurrent value to set.
      Returns:
      the PortalRevisionContractProperties object itself.
    • createdDateTime

      public OffsetDateTime createdDateTime()
      Get the createdDateTime property: Portal's revision creation date and time.
      Returns:
      the createdDateTime value.
    • updatedDateTime

      public OffsetDateTime updatedDateTime()
      Get the updatedDateTime property: Last updated date and time.
      Returns:
      the updatedDateTime value.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: The provisioning state.
      Returns:
      the provisioningState value.
    • 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<PortalRevisionContractProperties>
      Throws:
      IOException
    • fromJson

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