Class BooleanSetFieldBuilder

java.lang.Object
com.commercetools.importapi.models.customfields.BooleanSetFieldBuilder
All Implemented Interfaces:
Builder<BooleanSetField>

public class BooleanSetFieldBuilder extends Object implements Builder<BooleanSetField>
BooleanSetFieldBuilder
Example to create an instance using the builder pattern

     BooleanSetField booleanSetField = BooleanSetField.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Constructor Details

    • BooleanSetFieldBuilder

      public BooleanSetFieldBuilder()
  • Method Details

    • value

      public BooleanSetFieldBuilder value(Boolean... value)
      set values to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • value

      public BooleanSetFieldBuilder value(List<Boolean> value)
      set value to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • plusValue

      public BooleanSetFieldBuilder plusValue(Boolean... value)
      add values to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • getValue

      public List<Boolean> getValue()
      value of value}
      Returns:
      value
    • build

      public BooleanSetField build()
      builds BooleanSetField with checking for non-null required values
      Specified by:
      build in interface Builder<BooleanSetField>
      Returns:
      BooleanSetField
    • buildUnchecked

      public BooleanSetField buildUnchecked()
      builds BooleanSetField without checking for non-null required values
      Returns:
      BooleanSetField
    • of

      public static BooleanSetFieldBuilder of()
      factory method for an instance of BooleanSetFieldBuilder
      Returns:
      builder
    • of

      public static BooleanSetFieldBuilder of(BooleanSetField template)
      create builder for BooleanSetField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder