GatewayRouteConfigProperties Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. GatewayRouteConfigProperties
- com.
Implements
public final class GatewayRouteConfigProperties
implements JsonSerializable<GatewayRouteConfigProperties>
API route config of the Spring Cloud Gateway.
Constructor Summary
Constructor | Description |
---|---|
GatewayRouteConfigProperties() |
Creates an instance of Gateway |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
appResourceId()
Get the app |
List<String> |
filters()
Get the filters property: To modify the request before sending it to the target endpoint, or the received response in app level. |
static
Gateway |
fromJson(JsonReader jsonReader)
Reads an instance of Gateway |
Gateway |
openApi()
Get the open |
List<String> |
predicates()
Get the predicates property: A number of conditions to evaluate a route for each request in app level. |
Gateway |
protocol()
Get the protocol property: Protocol of routed Azure Spring Apps applications. |
Gateway |
provisioningState()
Get the provisioning |
List<Gateway |
routes()
Get the routes property: Array of API routes, each route contains properties such as `title`, `uri`, `sso |
Boolean |
ssoEnabled()
Get the sso |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Gateway |
withAppResourceId(String appResourceId)
Set the app |
Gateway |
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. |
Gateway |
withOpenApi(GatewayRouteConfigOpenApiProperties openApi)
Set the open |
Gateway |
withPredicates(List<String> predicates)
Set the predicates property: A number of conditions to evaluate a route for each request in app level. |
Gateway |
withProtocol(GatewayRouteConfigProtocol protocol)
Set the protocol property: Protocol of routed Azure Spring Apps applications. |
Gateway |
withRoutes(List<GatewayApiRoute> routes)
Set the routes property: Array of API routes, each route contains properties such as `title`, `uri`, `sso |
Gateway |
withSsoEnabled(Boolean ssoEnabled)
Set the sso |
Methods inherited from java.lang.Object
Constructor Details
GatewayRouteConfigProperties
public GatewayRouteConfigProperties()
Creates an instance of GatewayRouteConfigProperties class.
Method Details
appResourceId
public String appResourceId()
Get the appResourceId property: The resource Id of the Azure Spring Apps app, required unless route defines `uri`.
Returns:
filters
public List
Get the filters property: To modify the request before sending it to the target endpoint, or the received response in app level.
Returns:
fromJson
public static GatewayRouteConfigProperties fromJson(JsonReader jsonReader)
Reads an instance of GatewayRouteConfigProperties from the JsonReader.
Parameters:
Returns:
Throws:
openApi
public GatewayRouteConfigOpenApiProperties openApi()
Get the openApi property: OpenAPI properties of Spring Cloud Gateway route config.
Returns:
predicates
public List
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:
protocol
public GatewayRouteConfigProtocol protocol()
Get the protocol property: Protocol of routed Azure Spring Apps applications.
Returns:
provisioningState
public GatewayProvisioningState provisioningState()
Get the provisioningState property: State of the Spring Cloud Gateway route config.
Returns:
routes
public List
Get the routes property: Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.
Returns:
ssoEnabled
public Boolean ssoEnabled()
Get the ssoEnabled property: Enable Single Sign-On in app level.
Returns:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withFilters
public GatewayRouteConfigProperties withFilters(List
Set the filters property: To modify the request before sending it to the target endpoint, or the received response in app level.
Parameters:
Returns:
withOpenApi
public GatewayRouteConfigProperties withOpenApi(GatewayRouteConfigOpenApiProperties openApi)
Set the openApi property: OpenAPI properties of Spring Cloud Gateway route config.
Parameters:
Returns:
withPredicates
public GatewayRouteConfigProperties withPredicates(List
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:
Returns:
withProtocol
public GatewayRouteConfigProperties withProtocol(GatewayRouteConfigProtocol protocol)
Set the protocol property: Protocol of routed Azure Spring Apps applications.
Parameters:
Returns:
withRoutes
public GatewayRouteConfigProperties withRoutes(List
Set the routes property: Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.
Parameters:
Returns:
withSsoEnabled
public GatewayRouteConfigProperties withSsoEnabled(Boolean ssoEnabled)
Set the ssoEnabled property: Enable Single Sign-On in app level.
Parameters:
Returns:
Applies to
Azure SDK for Java