Class GatewayRouteConfigProperties

java.lang.Object
com.azure.resourcemanager.appplatform.models.GatewayRouteConfigProperties

public final class GatewayRouteConfigProperties extends Object
API route config of the Spring Cloud Gateway.
  • Constructor Details

    • GatewayRouteConfigProperties

      public GatewayRouteConfigProperties()
  • Method Details

    • provisioningState

      public GatewayProvisioningState provisioningState()
      Get the provisioningState property: State of the Spring Cloud Gateway route config.
      Returns:
      the provisioningState value.
    • appResourceId

      public String appResourceId()
      Get the appResourceId property: The resource Id of the Azure Spring Apps app, required unless route defines `uri`.
      Returns:
      the appResourceId value.
    • withAppResourceId

      public GatewayRouteConfigProperties withAppResourceId(String appResourceId)
      Set the appResourceId property: The resource Id of the Azure Spring Apps app, required unless route defines `uri`.
      Parameters:
      appResourceId - the appResourceId value to set.
      Returns:
      the GatewayRouteConfigProperties object itself.
    • openApi

      Get the openApi property: OpenAPI properties of Spring Cloud Gateway route config.
      Returns:
      the openApi value.
    • withOpenApi

      Set the openApi property: OpenAPI properties of Spring Cloud Gateway route config.
      Parameters:
      openApi - the openApi value to set.
      Returns:
      the GatewayRouteConfigProperties object itself.
    • protocol

      public GatewayRouteConfigProtocol protocol()
      Get the protocol property: Protocol of routed Azure Spring Apps applications.
      Returns:
      the protocol value.
    • withProtocol

      Set the protocol property: Protocol of routed Azure Spring Apps applications.
      Parameters:
      protocol - the protocol value to set.
      Returns:
      the GatewayRouteConfigProperties object itself.
    • routes

      public List<GatewayApiRoute> routes()
      Get the routes property: Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.
      Returns:
      the routes value.
    • withRoutes

      public GatewayRouteConfigProperties withRoutes(List<GatewayApiRoute> routes)
      Set the routes property: Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.
      Parameters:
      routes - the routes value to set.
      Returns:
      the GatewayRouteConfigProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.