Class AssertionResultData.Builder
java.lang.Object
software.amazon.awscdk.integtests.alpha.AssertionResultData.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AssertionResultData>
- Enclosing interface:
AssertionResultData
@Stability(Experimental)
public static final class AssertionResultData.Builder
extends Object
implements software.amazon.jsii.Builder<AssertionResultData>
A builder for
AssertionResultData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofAssertionResultData.getMessage()
Sets the value ofAssertionResultData.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
status
Sets the value ofAssertionResultData.getStatus()
- Parameters:
status
- The status of the assertion, i.e. pass or fail. This parameter is required.- Returns:
this
-
message
Sets the value ofAssertionResultData.getMessage()
- Parameters:
message
- Any message returned with the assertion result typically this will be the diff if there is any.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AssertionResultData>
- Returns:
- a new instance of
AssertionResultData
- Throws:
NullPointerException
- if any required attribute was not provided
-