GatewayApiRoute Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. GatewayApiRoute
- com.
Implements
public final class GatewayApiRoute
implements JsonSerializable<GatewayApiRoute>
API route config of the Spring Cloud Gateway.
Constructor Summary
Constructor | Description |
---|---|
GatewayApiRoute() |
Creates an instance of Gateway |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
description()
Get the description property: A description, will be applied to methods in the generated OpenAPI documentation. |
List<String> |
filters()
Get the filters property: To modify the request before sending it to the target endpoint, or the received response. |
static
Gateway |
fromJson(JsonReader jsonReader)
Reads an instance of Gateway |
Integer |
order()
Get the order property: Route processing order. |
List<String> |
predicates()
Get the predicates property: A number of conditions to evaluate a route for each request. |
Boolean |
ssoEnabled()
Get the sso |
List<String> |
tags()
Get the tags property: Classification tags, will be applied to methods in the generated OpenAPI documentation. |
String |
title()
Get the title property: A title, will be applied to methods in the generated OpenAPI documentation. |
Json |
toJson(JsonWriter jsonWriter) |
Boolean |
tokenRelay()
Get the token |
String |
uri()
Get the uri property: Full uri, will override `app |
void |
validate()
Validates the instance. |
Gateway |
withDescription(String description)
Set the description property: A description, will be applied to methods in the generated OpenAPI documentation. |
Gateway |
withFilters(List<String> filters)
Set the filters property: To modify the request before sending it to the target endpoint, or the received response. |
Gateway |
withOrder(Integer order)
Set the order property: Route processing order. |
Gateway |
withPredicates(List<String> predicates)
Set the predicates property: A number of conditions to evaluate a route for each request. |
Gateway |
withSsoEnabled(Boolean ssoEnabled)
Set the sso |
Gateway |
withTags(List<String> tags)
Set the tags property: Classification tags, will be applied to methods in the generated OpenAPI documentation. |
Gateway |
withTitle(String title)
Set the title property: A title, will be applied to methods in the generated OpenAPI documentation. |
Gateway |
withTokenRelay(Boolean tokenRelay)
Set the token |
Gateway |
withUri(String uri)
Set the uri property: Full uri, will override `app |
Methods inherited from java.lang.Object
Constructor Details
GatewayApiRoute
public GatewayApiRoute()
Creates an instance of GatewayApiRoute class.
Method Details
description
public String description()
Get the description property: A description, will be applied to methods in the generated OpenAPI documentation.
Returns:
filters
public List
Get the filters property: To modify the request before sending it to the target endpoint, or the received response.
Returns:
fromJson
public static GatewayApiRoute fromJson(JsonReader jsonReader)
Reads an instance of GatewayApiRoute from the JsonReader.
Parameters:
Returns:
Throws:
order
public Integer order()
Get the order property: Route processing order.
Returns:
predicates
public List
Get the predicates property: A number of conditions to evaluate a route for each request. 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:
ssoEnabled
public Boolean ssoEnabled()
Get the ssoEnabled property: Enable sso validation.
Returns:
tags
public List
Get the tags property: Classification tags, will be applied to methods in the generated OpenAPI documentation.
Returns:
title
public String title()
Get the title property: A title, will be applied to methods in the generated OpenAPI documentation.
Returns:
toJson
tokenRelay
public Boolean tokenRelay()
Get the tokenRelay property: Pass currently-authenticated user's identity token to application service, default is 'false'.
Returns:
uri
public String uri()
Get the uri property: Full uri, will override `appName`.
Returns:
validate
public void validate()
Validates the instance.
withDescription
public GatewayApiRoute withDescription(String description)
Set the description property: A description, will be applied to methods in the generated OpenAPI documentation.
Parameters:
Returns:
withFilters
public GatewayApiRoute withFilters(List
Set the filters property: To modify the request before sending it to the target endpoint, or the received response.
Parameters:
Returns:
withOrder
public GatewayApiRoute withOrder(Integer order)
Set the order property: Route processing order.
Parameters:
Returns:
withPredicates
public GatewayApiRoute withPredicates(List
Set the predicates property: A number of conditions to evaluate a route for each request. 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:
Returns:
withSsoEnabled
public GatewayApiRoute withSsoEnabled(Boolean ssoEnabled)
Set the ssoEnabled property: Enable sso validation.
Parameters:
Returns:
withTags
public GatewayApiRoute withTags(List
Set the tags property: Classification tags, will be applied to methods in the generated OpenAPI documentation.
Parameters:
Returns:
withTitle
public GatewayApiRoute withTitle(String title)
Set the title property: A title, will be applied to methods in the generated OpenAPI documentation.
Parameters:
Returns:
withTokenRelay
public GatewayApiRoute withTokenRelay(Boolean tokenRelay)
Set the tokenRelay property: Pass currently-authenticated user's identity token to application service, default is 'false'.
Parameters:
Returns:
withUri
public GatewayApiRoute withUri(String uri)
Set the uri property: Full uri, will override `appName`.
Parameters:
Returns:
Applies to
Azure SDK for Java