@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:42.438Z") @Stability(value=Experimental) public abstract class QueryParameterMatch extends software.amazon.jsii.JsiiObject
Example:
VirtualRouter router;
VirtualNode node;
router.addRoute("route-http2", RouteBaseProps.builder()
.routeSpec(RouteSpec.http2(HttpRouteSpecOptions.builder()
.weightedTargets(List.of(WeightedTarget.builder()
.virtualNode(node)
.build()))
.match(HttpRouteMatch.builder()
.path(HttpRoutePathMatch.exactly("/exact"))
.method(HttpRouteMethod.POST)
.protocol(HttpRouteProtocol.HTTPS)
.headers(List.of(HeaderMatch.valueIs("Content-Type", "application/json"), HeaderMatch.valueIsNot("Content-Type", "application/json")))
.queryParameters(List.of(QueryParameterMatch.valueIs("query-field", "value")))
.build())
.build()))
.build());
| Modifier | Constructor and Description |
|---|---|
protected |
QueryParameterMatch() |
protected |
QueryParameterMatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
QueryParameterMatch(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract QueryParameterMatchConfig |
bind(Construct scope)
(experimental) Returns the query parameter match configuration.
|
static QueryParameterMatch |
valueIs(String queryParameterName,
String queryParameterValue)
(experimental) The value of the query parameter with the given name in the request must match the specified value exactly.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected QueryParameterMatch(software.amazon.jsii.JsiiObjectRef objRef)
protected QueryParameterMatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected QueryParameterMatch()
@Stability(value=Experimental) @NotNull public static QueryParameterMatch valueIs(@NotNull String queryParameterName, @NotNull String queryParameterValue)
queryParameterName - the name of the query parameter to match against. This parameter is required.queryParameterValue - The exact value to test against. This parameter is required.@Stability(value=Experimental) @NotNull public abstract QueryParameterMatchConfig bind(@NotNull Construct scope)
scope - This parameter is required.Copyright © 2022. All rights reserved.