Class DateTimeSetFieldBuilder

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

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

     DateTimeSetField dateTimeSetField = DateTimeSetField.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Constructor Details

    • DateTimeSetFieldBuilder

      public DateTimeSetFieldBuilder()
  • Method Details

    • value

      public DateTimeSetFieldBuilder value(ZonedDateTime... value)

      JSON array of date time values in the format YYYY-MM-DDTHH:mm:ss.SSSZ without duplicates. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format ±HH:mm or Z for UTC. The order of items in the array is not fixed.

      Parameters:
      value - value to be set
      Returns:
      Builder
    • value

      JSON array of date time values in the format YYYY-MM-DDTHH:mm:ss.SSSZ without duplicates. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format ±HH:mm or Z for UTC. The order of items in the array is not fixed.

      Parameters:
      value - value to be set
      Returns:
      Builder
    • plusValue

      public DateTimeSetFieldBuilder plusValue(ZonedDateTime... value)

      JSON array of date time values in the format YYYY-MM-DDTHH:mm:ss.SSSZ without duplicates. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format ±HH:mm or Z for UTC. The order of items in the array is not fixed.

      Parameters:
      value - value to be set
      Returns:
      Builder
    • getValue

      public List<ZonedDateTime> getValue()

      JSON array of date time values in the format YYYY-MM-DDTHH:mm:ss.SSSZ without duplicates. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format ±HH:mm or Z for UTC. The order of items in the array is not fixed.

      Returns:
      value
    • build

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

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

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

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