Class WorkspaceProperties

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

public final class WorkspaceProperties extends Object implements com.azure.json.JsonSerializable<WorkspaceProperties>
Workspace properties.
  • Constructor Details

    • WorkspaceProperties

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

    • title

      public String title()
      Get the title property: Workspace title.
      Returns:
      the title value.
    • withTitle

      public WorkspaceProperties withTitle(String title)
      Set the title property: Workspace title.
      Parameters:
      title - the title value to set.
      Returns:
      the WorkspaceProperties object itself.
    • description

      public String description()
      Get the description property: Workspace description.
      Returns:
      the description value.
    • withDescription

      public WorkspaceProperties withDescription(String description)
      Set the description property: Workspace description.
      Parameters:
      description - the description value to set.
      Returns:
      the WorkspaceProperties 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<WorkspaceProperties>
      Throws:
      IOException
    • fromJson

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