Class WorkspaceContractProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.WorkspaceContractProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspaceContractProperties>
public final class WorkspaceContractProperties
extends Object
implements com.azure.json.JsonSerializable<WorkspaceContractProperties>
Workspace entity properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WorkspaceContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Description of the workspace.Get the displayName property: Name of the workspace.static WorkspaceContractPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspaceContractProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: Description of the workspace.withDisplayName(String displayName) Set the displayName property: Name of the workspace.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
-
WorkspaceContractProperties
public WorkspaceContractProperties()Creates an instance of WorkspaceContractProperties class.
-
-
Method Details
-
displayName
Get the displayName property: Name of the workspace.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Name of the workspace.- Parameters:
displayName- the displayName value to set.- Returns:
- the WorkspaceContractProperties object itself.
-
description
Get the description property: Description of the workspace.- Returns:
- the description value.
-
withDescription
Set the description property: Description of the workspace.- Parameters:
description- the description value to set.- Returns:
- the WorkspaceContractProperties 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<WorkspaceContractProperties>- Throws:
IOException
-
fromJson
public static WorkspaceContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WorkspaceContractProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WorkspaceContractProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the WorkspaceContractProperties.
-