Class ArrayLength.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<ArrayLength>
    Enclosing class:
    ArrayLength

    @Stability(Stable)
    public static final class ArrayLength.Builder
    extends Object
    implements software.amazon.jsii.Builder<ArrayLength>
    A fluent builder for ArrayLength.
    • Method Detail

      • maxLength

        @Stability(Stable)
        public ArrayLength.Builder maxLength​(Number maxLength)
        The maximum length for the array - must be greater than minimum length.

        Default infinity.

        Parameters:
        maxLength - The maximum length for the array - must be greater than minimum length. This parameter is required.
        Returns:
        this
      • minLength

        @Stability(Stable)
        public ArrayLength.Builder minLength​(Number 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.

        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. This parameter is required.
        Returns:
        this
      • build

        @Stability(Stable)
        public ArrayLength build()
        Specified by:
        build in interface software.amazon.jsii.Builder<ArrayLength>
        Returns:
        a newly built instance of ArrayLength.