Class GatewayRouteConfigOpenApiProperties

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

public final class GatewayRouteConfigOpenApiProperties extends Object implements com.azure.json.JsonSerializable<GatewayRouteConfigOpenApiProperties>
OpenAPI properties of Spring Cloud Gateway route config.
  • Constructor Details

    • GatewayRouteConfigOpenApiProperties

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

    • uri

      public String uri()
      Get the uri property: The URI of OpenAPI specification.
      Returns:
      the uri value.
    • withUri

      Set the uri property: The URI of OpenAPI specification.
      Parameters:
      uri - the uri value to set.
      Returns:
      the GatewayRouteConfigOpenApiProperties 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<GatewayRouteConfigOpenApiProperties>
      Throws:
      IOException
    • fromJson

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