@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.569Z") @Stability(value=Stable) public abstract class QueryParameterMatch extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
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(software.constructs.Construct scope)
Returns the query parameter match configuration.
|
static QueryParameterMatch |
valueIs(String queryParameterName,
String queryParameterValue)
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=Stable) protected QueryParameterMatch()
@Stability(value=Stable) @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=Stable) @NotNull public abstract QueryParameterMatchConfig bind(@NotNull software.constructs.Construct scope)
scope - This parameter is required.Copyright © 2022. All rights reserved.