java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.integtests.alpha.Match
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-02T15:58:35.184Z") @Stability(Experimental) public abstract class Match extends software.amazon.jsii.JsiiObject
(experimental) Partial and special matching during assertions.
  • 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
    Match(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Match(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    arrayWith(List<? extends Object> pattern)
    (experimental) Matches the specified pattern with the array found in the same relative path of the target.
    objectLike(Map<String,? extends Object> pattern)
    (experimental) Matches the specified pattern to an object found in the same relative path of the target.
    serializedJson(Map<String,? extends Object> pattern)
    (experimental) Matches any string-encoded JSON and applies the specified pattern after parsing it.
    static Map<String,String>
    (experimental) Matches targets according to a regular expression.

    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

    • Match

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

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

      @Stability(Experimental) protected Match()
  • Method Details

    • arrayWith

      @Stability(Experimental) @NotNull public static Map<String,List<Object>> arrayWith(@NotNull List<? extends Object> pattern)
      (experimental) Matches the specified pattern with the array found in the same relative path of the target.

      The set of elements (or matchers) must be in the same order as would be found.

      Parameters:
      pattern - the pattern to match. This parameter is required.
    • objectLike

      @Stability(Experimental) @NotNull public static Map<String,Map<String,Object>> objectLike(@NotNull Map<String,? extends Object> pattern)
      (experimental) Matches the specified pattern to an object found in the same relative path of the target.

      The keys and their values (or matchers) must be present in the target but the target can be a superset.

      Parameters:
      pattern - the pattern to match. This parameter is required.
    • serializedJson

      @Stability(Experimental) @NotNull public static Map<String,Map<String,Object>> serializedJson(@NotNull Map<String,? extends Object> pattern)
      (experimental) Matches any string-encoded JSON and applies the specified pattern after parsing it.

      Parameters:
      pattern - the pattern to match after parsing the encoded JSON. This parameter is required.
    • stringLikeRegexp

      @Stability(Experimental) @NotNull public static Map<String,String> stringLikeRegexp(@NotNull String pattern)
      (experimental) Matches targets according to a regular expression.

      Parameters:
      pattern - This parameter is required.