Class WikiUpdateContract

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

public final class WikiUpdateContract extends Object implements com.azure.json.JsonSerializable<WikiUpdateContract>
Wiki update contract details.
  • Constructor Details

    • WikiUpdateContract

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

    • documents

      public List<WikiDocumentationContract> documents()
      Get the documents property: Collection wiki documents included into this wiki.
      Returns:
      the documents value.
    • withDocuments

      public WikiUpdateContract withDocuments(List<WikiDocumentationContract> documents)
      Set the documents property: Collection wiki documents included into this wiki.
      Parameters:
      documents - the documents value to set.
      Returns:
      the WikiUpdateContract 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<WikiUpdateContract>
      Throws:
      IOException
    • fromJson

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