Class AssertionRequest.Builder
java.lang.Object
software.amazon.awscdk.integtests.alpha.AssertionRequest.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AssertionRequest>
- Enclosing interface:
AssertionRequest
@Stability(Experimental)
public static final class AssertionRequest.Builder
extends Object
implements software.amazon.jsii.Builder<AssertionRequest>
A builder for
AssertionRequest-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofAssertionRequest.getActual()build()Builds the configured instance.Sets the value ofAssertionRequest.getExpected()failDeployment(Boolean failDeployment) Sets the value ofAssertionRequest.getFailDeployment()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actual
Sets the value ofAssertionRequest.getActual()- Parameters:
actual- The actual value received. This parameter is required.- Returns:
this
-
expected
Sets the value ofAssertionRequest.getExpected()- Parameters:
expected- The expected value to assert. This parameter is required.- Returns:
this
-
failDeployment
Sets the value ofAssertionRequest.getFailDeployment()- Parameters:
failDeployment- Set this to true if a failed assertion should result in a CloudFormation deployment failure. This is only necessary if assertions are being executed outside ofinteg-runner.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AssertionRequest>- Returns:
- a new instance of
AssertionRequest - Throws:
NullPointerException- if any required attribute was not provided
-