software.amazon.awscdk.integtests.alpha.Match Maven / Gradle / Ivy
Show all versions of cdk-integ-tests-alpha Show documentation
package software.amazon.awscdk.integtests.alpha;
/**
* (experimental) Partial and special matching during assertions.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-04T00:39:41.597Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.integtests.alpha.$Module.class, fqn = "@aws-cdk/integ-tests-alpha.Match")
public abstract class Match extends software.amazon.jsii.JsiiObject {
protected Match(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Match(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
protected Match() {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this);
}
/**
* (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.
*
* @param pattern the pattern to match. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull java.util.Map> arrayWith(final @org.jetbrains.annotations.NotNull java.util.List extends java.lang.Object> pattern) {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.integtests.alpha.Match.class, "arrayWith", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))), new Object[] { java.util.Objects.requireNonNull(pattern, "pattern is required") }));
}
/**
* (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.
*
* @param pattern the pattern to match. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull java.util.Map> objectLike(final @org.jetbrains.annotations.NotNull java.util.Map pattern) {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.integtests.alpha.Match.class, "objectLike", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))), new Object[] { java.util.Objects.requireNonNull(pattern, "pattern is required") }));
}
/**
* (experimental) Matches any string-encoded JSON and applies the specified pattern after parsing it.
*
* @param pattern the pattern to match after parsing the encoded JSON. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull java.util.Map> serializedJson(final @org.jetbrains.annotations.NotNull java.util.Map pattern) {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.integtests.alpha.Match.class, "serializedJson", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))), new Object[] { java.util.Objects.requireNonNull(pattern, "pattern is required") }));
}
/**
* (experimental) Matches targets according to a regular expression.
*
* @param pattern This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull java.util.Map stringLikeRegexp(final @org.jetbrains.annotations.NotNull java.lang.String pattern) {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.integtests.alpha.Match.class, "stringLikeRegexp", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)), new Object[] { java.util.Objects.requireNonNull(pattern, "pattern is required") }));
}
/**
* A proxy class which represents a concrete javascript instance of this type.
*/
@software.amazon.jsii.Internal
private static final class Jsii$Proxy extends software.amazon.awscdk.integtests.alpha.Match {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
}
}