Class QueryParameterMatch

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appmesh.QueryParameterMatch
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:02.716Z") @Stability(Stable) public abstract class QueryParameterMatch extends software.amazon.jsii.JsiiObject
Used to generate query parameter matching methods.

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());
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    QueryParameterMatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    QueryParameterMatch(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(software.constructs.Construct scope)
    Returns the query parameter match configuration.
    valueIs(String queryParameterName, String queryParameterValue)
    The value of the query parameter with the given name in the request must match the specified value exactly.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • QueryParameterMatch

      protected QueryParameterMatch(software.amazon.jsii.JsiiObjectRef objRef)
    • QueryParameterMatch

      protected QueryParameterMatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • QueryParameterMatch

      @Stability(Stable) protected QueryParameterMatch()
  • Method Details

    • valueIs

      @Stability(Stable) @NotNull public static QueryParameterMatch valueIs(@NotNull String queryParameterName, @NotNull String queryParameterValue)
      The value of the query parameter with the given name in the request must match the specified value exactly.

      Parameters:
      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.
    • bind

      @Stability(Stable) @NotNull public abstract QueryParameterMatchConfig bind(@NotNull software.constructs.Construct scope)
      Returns the query parameter match configuration.

      Parameters:
      scope - This parameter is required.