software.amazon.awscdk.integtests.alpha.ActualResult Maven / Gradle / Ivy
Show all versions of cdk-integ-tests-alpha Show documentation
package software.amazon.awscdk.integtests.alpha;
/**
* (experimental) Represents the "actual" results to compare.
*
* Example:
*
*
* CustomResource myCustomResource;
* Stack stack;
* App app;
* IntegTest integ = IntegTest.Builder.create(app, "Integ").testCases(List.of(stack)).build();
* integ.assertions.expect("CustomAssertion", ExpectedResult.objectLike(Map.of("foo", "bar")), ActualResult.fromCustomResource(myCustomResource, "data"));
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-11T18:01:25.308Z")
@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.ActualResult")
public abstract class ActualResult extends software.amazon.jsii.JsiiObject {
protected ActualResult(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected ActualResult(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
protected ActualResult() {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this);
}
/**
* (experimental) Get the actual results from a AwsApiCall.
*
* @param query This parameter is required.
* @param attribute This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.ActualResult fromAwsApiCall(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall query, final @org.jetbrains.annotations.NotNull java.lang.String attribute) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.integtests.alpha.ActualResult.class, "fromAwsApiCall", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.integtests.alpha.ActualResult.class), new Object[] { java.util.Objects.requireNonNull(query, "query is required"), java.util.Objects.requireNonNull(attribute, "attribute is required") });
}
/**
* (experimental) Get the actual results from a CustomResource.
*
* @param customResource This parameter is required.
* @param attribute This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.ActualResult fromCustomResource(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.CustomResource customResource, final @org.jetbrains.annotations.NotNull java.lang.String attribute) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.integtests.alpha.ActualResult.class, "fromCustomResource", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.integtests.alpha.ActualResult.class), new Object[] { java.util.Objects.requireNonNull(customResource, "customResource is required"), java.util.Objects.requireNonNull(attribute, "attribute is required") });
}
/**
* (experimental) The actual results as a string.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public abstract @org.jetbrains.annotations.NotNull java.lang.String getResult();
/**
* (experimental) The actual results as a string.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public abstract void setResult(final @org.jetbrains.annotations.NotNull java.lang.String value);
/**
* 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.ActualResult {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
/**
* (experimental) The actual results as a string.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final @org.jetbrains.annotations.NotNull java.lang.String getResult() {
return software.amazon.jsii.Kernel.get(this, "result", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* (experimental) The actual results as a string.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final void setResult(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "result", java.util.Objects.requireNonNull(value, "result is required"));
}
}
}