Class WorkspaceLinksBaseProperties

java.lang.Object
com.azure.resourcemanager.apimanagement.models.WorkspaceLinksBaseProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspaceLinksBaseProperties>
Direct Known Subclasses:
ApiManagementWorkspaceLinksProperties

public class WorkspaceLinksBaseProperties extends Object implements com.azure.json.JsonSerializable<WorkspaceLinksBaseProperties>
The WorkspaceLinksBaseProperties model.
  • Constructor Details

    • WorkspaceLinksBaseProperties

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

    • workspaceId

      public String workspaceId()
      Get the workspaceId property: The link to the API Management service workspace.
      Returns:
      the workspaceId value.
    • withWorkspaceId

      public WorkspaceLinksBaseProperties withWorkspaceId(String workspaceId)
      Set the workspaceId property: The link to the API Management service workspace.
      Parameters:
      workspaceId - the workspaceId value to set.
      Returns:
      the WorkspaceLinksBaseProperties object itself.
    • gateways

      public List<WorkspaceLinksGateway> gateways()
      Get the gateways property: The array of linked gateways.
      Returns:
      the gateways value.
    • withGateways

      public WorkspaceLinksBaseProperties withGateways(List<WorkspaceLinksGateway> gateways)
      Set the gateways property: The array of linked gateways.
      Parameters:
      gateways - the gateways value to set.
      Returns:
      the WorkspaceLinksBaseProperties 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<WorkspaceLinksBaseProperties>
      Throws:
      IOException
    • fromJson

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