Class ContractCaseCoreSetup.Builder
- java.lang.Object
-
- io.contract_testing.contractcase.definitions.interactions.base.ContractCaseCoreSetup.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContractCaseCoreSetup>
- Enclosing interface:
- ContractCaseCoreSetup
@Stability(Stable) public static final class ContractCaseCoreSetup.Builder extends Object implements software.amazon.jsii.Builder<ContractCaseCoreSetup>
A builder forContractCaseCoreSetup
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContractCaseCoreSetupbuild()Builds the configured instance.ContractCaseCoreSetup.Builderread(ContractCaseCoreBehaviour read)Sets the value ofContractCaseCoreSetup.getRead()ContractCaseCoreSetup.Builderwrite(ContractCaseCoreBehaviour write)Sets the value ofContractCaseCoreSetup.getWrite()
-
-
-
Method Detail
-
read
@Stability(Stable) public ContractCaseCoreSetup.Builder read(ContractCaseCoreBehaviour read)
Sets the value ofContractCaseCoreSetup.getRead()- Parameters:
read- Defines how the ContractCase core will behave when reading (ie, verifying) a interaction of this type. This parameter is required.- Returns:
this
-
write
@Stability(Stable) public ContractCaseCoreSetup.Builder write(ContractCaseCoreBehaviour write)
Sets the value ofContractCaseCoreSetup.getWrite()- Parameters:
write- Defines how the ContractCase core will behave when writing (ie, defining) an interaction of this type. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ContractCaseCoreSetup build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContractCaseCoreSetup>- Returns:
- a new instance of
ContractCaseCoreSetup - Throws:
NullPointerException- if any required attribute was not provided
-
-