Class GatewayApiMetadataProperties

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

public final class GatewayApiMetadataProperties extends Object implements com.azure.json.JsonSerializable<GatewayApiMetadataProperties>
API metadata property for Spring Cloud Gateway.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of GatewayApiMetadataProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the description property: Detailed description of the APIs available on the Gateway instance (default: `Generated OpenAPI 3 document that describes the API routes configured.`).
    Get the documentation property: Location of additional documentation for the APIs available on the Gateway instance.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of GatewayApiMetadataProperties from the JsonReader.
    Get the serverUrl property: Base URL that API consumers will use to access APIs on the Gateway instance.
    Get the title property: Title describing the context of the APIs available on the Gateway instance (default: `Spring Cloud Gateway for K8S`).
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the version property: Version of APIs available on this Gateway instance (default: `unspecified`).
    withDescription(String description)
    Set the description property: Detailed description of the APIs available on the Gateway instance (default: `Generated OpenAPI 3 document that describes the API routes configured.`).
    withDocumentation(String documentation)
    Set the documentation property: Location of additional documentation for the APIs available on the Gateway instance.
    withServerUrl(String serverUrl)
    Set the serverUrl property: Base URL that API consumers will use to access APIs on the Gateway instance.
    Set the title property: Title describing the context of the APIs available on the Gateway instance (default: `Spring Cloud Gateway for K8S`).
    Set the version property: Version of APIs available on this Gateway instance (default: `unspecified`).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • GatewayApiMetadataProperties

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

    • title

      public String title()
      Get the title property: Title describing the context of the APIs available on the Gateway instance (default: `Spring Cloud Gateway for K8S`).
      Returns:
      the title value.
    • withTitle

      public GatewayApiMetadataProperties withTitle(String title)
      Set the title property: Title describing the context of the APIs available on the Gateway instance (default: `Spring Cloud Gateway for K8S`).
      Parameters:
      title - the title value to set.
      Returns:
      the GatewayApiMetadataProperties object itself.
    • description

      public String description()
      Get the description property: Detailed description of the APIs available on the Gateway instance (default: `Generated OpenAPI 3 document that describes the API routes configured.`).
      Returns:
      the description value.
    • withDescription

      public GatewayApiMetadataProperties withDescription(String description)
      Set the description property: Detailed description of the APIs available on the Gateway instance (default: `Generated OpenAPI 3 document that describes the API routes configured.`).
      Parameters:
      description - the description value to set.
      Returns:
      the GatewayApiMetadataProperties object itself.
    • documentation

      public String documentation()
      Get the documentation property: Location of additional documentation for the APIs available on the Gateway instance.
      Returns:
      the documentation value.
    • withDocumentation

      public GatewayApiMetadataProperties withDocumentation(String documentation)
      Set the documentation property: Location of additional documentation for the APIs available on the Gateway instance.
      Parameters:
      documentation - the documentation value to set.
      Returns:
      the GatewayApiMetadataProperties object itself.
    • version

      public String version()
      Get the version property: Version of APIs available on this Gateway instance (default: `unspecified`).
      Returns:
      the version value.
    • withVersion

      public GatewayApiMetadataProperties withVersion(String version)
      Set the version property: Version of APIs available on this Gateway instance (default: `unspecified`).
      Parameters:
      version - the version value to set.
      Returns:
      the GatewayApiMetadataProperties object itself.
    • serverUrl

      public String serverUrl()
      Get the serverUrl property: Base URL that API consumers will use to access APIs on the Gateway instance.
      Returns:
      the serverUrl value.
    • withServerUrl

      public GatewayApiMetadataProperties withServerUrl(String serverUrl)
      Set the serverUrl property: Base URL that API consumers will use to access APIs on the Gateway instance.
      Parameters:
      serverUrl - the serverUrl value to set.
      Returns:
      the GatewayApiMetadataProperties 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<GatewayApiMetadataProperties>
      Throws:
      IOException
    • fromJson

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