Class WikiContractProperties

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

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

    • WikiContractProperties

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

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