Class FunctionExecutionExample.Builder
- java.lang.Object
-
- io.contract_testing.contractcase.definitions.interactions.functions.FunctionExecutionExample.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FunctionExecutionExample>
- Enclosing interface:
- FunctionExecutionExample
@Stability(Stable) public static final class FunctionExecutionExample.Builder extends Object implements software.amazon.jsii.Builder<FunctionExecutionExample>
A builder forFunctionExecutionExample
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionExecutionExample.Builderarguments(List<? extends Object> arguments)Sets the value ofFunctionExecutionExample.getArguments()FunctionExecutionExamplebuild()Builds the configured instance.FunctionExecutionExample.BuilderfunctionName(String functionName)Sets the value ofFunctionExecutionExample.getFunctionName()FunctionExecutionExample.BuilderreturnValue(Object returnValue)Sets the value ofFunctionExecutionExample.getReturnValue()
-
-
-
Method Detail
-
arguments
@Stability(Stable) public FunctionExecutionExample.Builder arguments(List<? extends Object> arguments)
Sets the value ofFunctionExecutionExample.getArguments()- Parameters:
arguments- An array of expected function arguments (or test equivalence matchers for those arguments). This parameter is required.- Returns:
this
-
functionName
@Stability(Stable) public FunctionExecutionExample.Builder functionName(String functionName)
Sets the value ofFunctionExecutionExample.getFunctionName()- Parameters:
functionName- The name of the function to be executed. This parameter is required. Doubles as the handle used by registerFunction.- Returns:
this
-
returnValue
@Stability(Stable) public FunctionExecutionExample.Builder returnValue(Object returnValue)
Sets the value ofFunctionExecutionExample.getReturnValue()- Parameters:
returnValue- A test equivalence matcher for the return value from this function. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public FunctionExecutionExample build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FunctionExecutionExample>- Returns:
- a new instance of
FunctionExecutionExample - Throws:
NullPointerException- if any required attribute was not provided
-
-