Class DateSetAttributeBuilder

java.lang.Object
com.commercetools.importapi.models.productvariants.DateSetAttributeBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<DateSetAttribute>

public class DateSetAttributeBuilder extends Object implements io.vrap.rmf.base.client.Builder<DateSetAttribute>
DateSetAttributeBuilder
Example to create an instance using the builder pattern

     DateSetAttribute dateSetAttribute = DateSetAttribute.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Constructor Details

  • Method Details

    • name

      The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.

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

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

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

      add values to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • getName

      The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.

      Returns:
      name
    • getValue

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

      builds DateSetAttribute with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<DateSetAttribute>
      Returns:
      DateSetAttribute
    • buildUnchecked

      builds DateSetAttribute without checking for non-null required values
      Returns:
      DateSetAttribute
    • of

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

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