Class ArrayLengthOptions.Builder
- java.lang.Object
-
- io.contract_testing.contractcase.definitions.matchers.arrays.ArrayLengthOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ArrayLengthOptions>
- Enclosing interface:
- ArrayLengthOptions
@Stability(Stable) public static final class ArrayLengthOptions.Builder extends Object implements software.amazon.jsii.Builder<ArrayLengthOptions>
A builder forArrayLengthOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayLengthOptionsbuild()Builds the configured instance.ArrayLengthOptions.BuildermaxLength(Number maxLength)Sets the value ofArrayLengthOptions.getMaxLength()ArrayLengthOptions.BuilderminLength(Number minLength)Sets the value ofArrayLengthOptions.getMinLength()
-
-
-
Method Detail
-
maxLength
@Stability(Stable) public ArrayLengthOptions.Builder maxLength(Number maxLength)
Sets the value ofArrayLengthOptions.getMaxLength()- Parameters:
maxLength- The maximum length for the array - must be greater than minimum length. Default infinity.- Returns:
this
-
minLength
@Stability(Stable) public ArrayLengthOptions.Builder minLength(Number minLength)
Sets the value ofArrayLengthOptions.getMinLength()- Parameters:
minLength- The minimum length for the array - must be greater than zero, otherwise empty arrays pass and you wouldn't be testing the array contents. Default 1.- Returns:
this
-
build
@Stability(Stable) public ArrayLengthOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ArrayLengthOptions>- Returns:
- a new instance of
ArrayLengthOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-