Class GatewayApiRoute
java.lang.Object
com.azure.resourcemanager.appplatform.models.GatewayApiRoute
API route config of the Spring Cloud Gateway.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: A description, will be applied to methods in the generated OpenAPI documentation.filters()Get the filters property: To modify the request before sending it to the target endpoint, or the received response.order()Get the order property: Route processing order.Get the predicates property: A number of conditions to evaluate a route for each request.Get the ssoEnabled property: Enable sso validation.tags()Get the tags property: Classification tags, will be applied to methods in the generated OpenAPI documentation.title()Get the title property: A title, will be applied to methods in the generated OpenAPI documentation.Get the tokenRelay property: Pass currently-authenticated user's identity token to application service, default is 'false'.uri()Get the uri property: Full uri, will override `appName`.voidvalidate()Validates the instance.withDescription(String description) Set the description property: A description, will be applied to methods in the generated OpenAPI documentation.withFilters(List<String> filters) Set the filters property: To modify the request before sending it to the target endpoint, or the received response.Set the order property: Route processing order.withPredicates(List<String> predicates) Set the predicates property: A number of conditions to evaluate a route for each request.withSsoEnabled(Boolean ssoEnabled) Set the ssoEnabled property: Enable sso validation.Set the tags property: Classification tags, will be applied to methods in the generated OpenAPI documentation.Set the title property: A title, will be applied to methods in the generated OpenAPI documentation.withTokenRelay(Boolean tokenRelay) Set the tokenRelay property: Pass currently-authenticated user's identity token to application service, default is 'false'.Set the uri property: Full uri, will override `appName`.
-
Constructor Details
-
GatewayApiRoute
public GatewayApiRoute()Creates an instance of GatewayApiRoute class.
-
-
Method Details
-
title
Get the title property: A title, will be applied to methods in the generated OpenAPI documentation.- Returns:
- the title value.
-
withTitle
Set the title property: A title, will be applied to methods in the generated OpenAPI documentation.- Parameters:
title- the title value to set.- Returns:
- the GatewayApiRoute object itself.
-
description
Get the description property: A description, will be applied to methods in the generated OpenAPI documentation.- Returns:
- the description value.
-
withDescription
Set the description property: A description, will be applied to methods in the generated OpenAPI documentation.- Parameters:
description- the description value to set.- Returns:
- the GatewayApiRoute object itself.
-
uri
Get the uri property: Full uri, will override `appName`.- Returns:
- the uri value.
-
withUri
Set the uri property: Full uri, will override `appName`.- Parameters:
uri- the uri value to set.- Returns:
- the GatewayApiRoute object itself.
-
ssoEnabled
Get the ssoEnabled property: Enable sso validation.- Returns:
- the ssoEnabled value.
-
withSsoEnabled
Set the ssoEnabled property: Enable sso validation.- Parameters:
ssoEnabled- the ssoEnabled value to set.- Returns:
- the GatewayApiRoute object itself.
-
tokenRelay
Get the tokenRelay property: Pass currently-authenticated user's identity token to application service, default is 'false'.- Returns:
- the tokenRelay value.
-
withTokenRelay
Set the tokenRelay property: Pass currently-authenticated user's identity token to application service, default is 'false'.- Parameters:
tokenRelay- the tokenRelay value to set.- Returns:
- the GatewayApiRoute object itself.
-
predicates
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:
- the predicates value.
-
withPredicates
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:
predicates- the predicates value to set.- Returns:
- the GatewayApiRoute object itself.
-
filters
Get the filters property: To modify the request before sending it to the target endpoint, or the received response.- Returns:
- the filters value.
-
withFilters
Set the filters property: To modify the request before sending it to the target endpoint, or the received response.- Parameters:
filters- the filters value to set.- Returns:
- the GatewayApiRoute object itself.
-
order
Get the order property: Route processing order.- Returns:
- the order value.
-
withOrder
Set the order property: Route processing order.- Parameters:
order- the order value to set.- Returns:
- the GatewayApiRoute object itself.
-
tags
Get the tags property: Classification tags, will be applied to methods in the generated OpenAPI documentation.- Returns:
- the tags value.
-
withTags
Set the tags property: Classification tags, will be applied to methods in the generated OpenAPI documentation.- Parameters:
tags- the tags value to set.- Returns:
- the GatewayApiRoute object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-