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 Summary
ConstructorsConstructorDescriptionCreates an instance of WikiContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the documents property: Collection wiki documents included into this wiki.static WikiContractPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WikiContractProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDocuments(List<WikiDocumentationContract> documents) Set the documents property: Collection wiki documents included into this wiki.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WikiContractProperties
public WikiContractProperties()Creates an instance of WikiContractProperties class.
-
-
Method Details
-
documents
Get the documents property: Collection wiki documents included into this wiki.- Returns:
- the documents value.
-
withDocuments
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
- Specified by:
toJsonin interfacecom.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.
-