Class AssertionResult.Builder
java.lang.Object
software.amazon.awscdk.integtests.AssertionResult.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AssertionResult>
- Enclosing interface:
- AssertionResult
@Stability(Experimental)
public static final class AssertionResult.Builder
extends Object
implements software.amazon.jsii.Builder<AssertionResult>
A builder for
AssertionResult-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofAssertionResult.getData()Sets the value ofAssertionResult.getFailed()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
data
Sets the value ofAssertionResult.getData()- Parameters:
data- The result of an assertion. This parameter is required.- Returns:
this
-
failed
Sets the value ofAssertionResult.getFailed()- Parameters:
failed- Whether or not the assertion failed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AssertionResult>- Returns:
- a new instance of
AssertionResult - Throws:
NullPointerException- if any required attribute was not provided
-