Class TimeFieldBuilder

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

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

     TimeField timeField = TimeField.builder()
             .value(LocalTime.parse("12:00:00.301"))
             .build()
 
  • Constructor Details

    • TimeFieldBuilder

      public TimeFieldBuilder()
  • Method Details

    • value

      public TimeFieldBuilder value(LocalTime value)
      set the value to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • getValue

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

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

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

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

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