Class EnumSetFieldBuilder

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

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

     EnumSetField enumSetField = EnumSetField.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Constructor Details

    • EnumSetFieldBuilder

      public EnumSetFieldBuilder()
  • Method Details

    • value

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

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

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

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

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

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

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

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