Class ApiRevisionContractInner

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

public final class ApiRevisionContractInner extends Object implements com.azure.json.JsonSerializable<ApiRevisionContractInner>
Summary of revision metadata.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ApiRevisionContractInner class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the apiId property: Identifier of the API Revision.
    Get the apiRevision property: Revision number of API.
    Get the createdDateTime property: The time the API Revision was created.
    Get the description property: Description of the API Revision.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ApiRevisionContractInner from the JsonReader.
    Get the isCurrent property: Indicates if API revision is accessible via the gateway.
    Get the isOnline property: Indicates if API revision is the current api revision.
    Get the privateUrl property: Gateway URL for accessing the non-current API Revision.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the updatedDateTime property: The time the API Revision were updated.
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • ApiRevisionContractInner

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

    • apiId

      public String apiId()
      Get the apiId property: Identifier of the API Revision.
      Returns:
      the apiId value.
    • apiRevision

      public String apiRevision()
      Get the apiRevision property: Revision number of API.
      Returns:
      the apiRevision value.
    • createdDateTime

      public OffsetDateTime createdDateTime()
      Get the createdDateTime property: The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
      Returns:
      the createdDateTime value.
    • updatedDateTime

      public OffsetDateTime updatedDateTime()
      Get the updatedDateTime property: The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
      Returns:
      the updatedDateTime value.
    • description

      public String description()
      Get the description property: Description of the API Revision.
      Returns:
      the description value.
    • privateUrl

      public String privateUrl()
      Get the privateUrl property: Gateway URL for accessing the non-current API Revision.
      Returns:
      the privateUrl value.
    • isOnline

      public Boolean isOnline()
      Get the isOnline property: Indicates if API revision is the current api revision.
      Returns:
      the isOnline value.
    • isCurrent

      public Boolean isCurrent()
      Get the isCurrent property: Indicates if API revision is accessible via the gateway.
      Returns:
      the isCurrent 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<ApiRevisionContractInner>
      Throws:
      IOException
    • fromJson

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