Class StringSetFieldBuilder

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

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

     StringSetField stringSetField = StringSetField.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Constructor Details

    • StringSetFieldBuilder

      public StringSetFieldBuilder()
  • Method Details

    • value

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

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

      public StringSetFieldBuilder 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 StringSetField build()
      builds StringSetField with checking for non-null required values
      Specified by:
      build in interface Builder<StringSetField>
      Returns:
      StringSetField
    • buildUnchecked

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

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

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