Class DateSetFieldBuilder

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

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

     DateSetField dateSetField = DateSetField.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Constructor Details

    • DateSetFieldBuilder

      public DateSetFieldBuilder()
  • Method Details

    • value

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

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

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

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

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

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

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

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