Class GatewayRouteConfigProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.GatewayRouteConfigProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GatewayRouteConfigProperties>
public final class GatewayRouteConfigProperties
extends Object
implements com.azure.json.JsonSerializable<GatewayRouteConfigProperties>
API route config of the Spring Cloud Gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GatewayRouteConfigProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the appResourceId property: The resource Id of the Azure Spring Apps app, required unless route defines `uri`.filters()Get the filters property: To modify the request before sending it to the target endpoint, or the received response in app level.static GatewayRouteConfigPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GatewayRouteConfigProperties from the JsonReader.openApi()Get the openApi property: OpenAPI properties of Spring Cloud Gateway route config.Get the predicates property: A number of conditions to evaluate a route for each request in app level.protocol()Get the protocol property: Protocol of routed Azure Spring Apps applications.Get the provisioningState property: State of the Spring Cloud Gateway route config.routes()Get the routes property: Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.Get the ssoEnabled property: Enable Single Sign-On in app level.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAppResourceId(String appResourceId) Set the appResourceId property: The resource Id of the Azure Spring Apps app, required unless route defines `uri`.withFilters(List<String> filters) Set the filters property: To modify the request before sending it to the target endpoint, or the received response in app level.Set the openApi property: OpenAPI properties of Spring Cloud Gateway route config.withPredicates(List<String> predicates) Set the predicates property: A number of conditions to evaluate a route for each request in app level.withProtocol(GatewayRouteConfigProtocol protocol) Set the protocol property: Protocol of routed Azure Spring Apps applications.withRoutes(List<GatewayApiRoute> routes) Set the routes property: Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.withSsoEnabled(Boolean ssoEnabled) Set the ssoEnabled property: Enable Single Sign-On in app level.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GatewayRouteConfigProperties
public GatewayRouteConfigProperties()Creates an instance of GatewayRouteConfigProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: State of the Spring Cloud Gateway route config.- Returns:
- the provisioningState value.
-
appResourceId
Get the appResourceId property: The resource Id of the Azure Spring Apps app, required unless route defines `uri`.- Returns:
- the appResourceId value.
-
withAppResourceId
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
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
Get the routes property: Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.- Returns:
- the routes value.
-
withRoutes
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.
-
ssoEnabled
Get the ssoEnabled property: Enable Single Sign-On in app level.- Returns:
- the ssoEnabled value.
-
withSsoEnabled
Set the ssoEnabled property: Enable Single Sign-On in app level.- Parameters:
ssoEnabled- the ssoEnabled value to set.- Returns:
- the GatewayRouteConfigProperties object itself.
-
predicates
Get the predicates property: A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.- Returns:
- the predicates value.
-
withPredicates
Set the predicates property: A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.- Parameters:
predicates- the predicates value to set.- Returns:
- the GatewayRouteConfigProperties object itself.
-
filters
Get the filters property: To modify the request before sending it to the target endpoint, or the received response in app level.- Returns:
- the filters value.
-
withFilters
Set the filters property: To modify the request before sending it to the target endpoint, or the received response in app level.- Parameters:
filters- the filters value to set.- Returns:
- the GatewayRouteConfigProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GatewayRouteConfigProperties>- Throws:
IOException
-
fromJson
public static GatewayRouteConfigProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GatewayRouteConfigProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GatewayRouteConfigProperties 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 GatewayRouteConfigProperties.
-