Class TimeSetFieldBuilder

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

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

     TimeSetField timeSetField = TimeSetField.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Constructor Details

    • TimeSetFieldBuilder

      public TimeSetFieldBuilder()
  • Method Details

    • value

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

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

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

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

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

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

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

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