Class MoneySetFieldBuilder

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

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

     MoneySetField moneySetField = MoneySetField.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Constructor Details

    • MoneySetFieldBuilder

      public MoneySetFieldBuilder()
  • Method Details

    • value

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

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

      public MoneySetFieldBuilder plusValue(Money... value)
      add values to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • plusValue

      add the value to the value using the builder function
      Parameters:
      builder - function to build the value value
      Returns:
      Builder
    • withValue

      set the value to the value using the builder function
      Parameters:
      builder - function to build the value value
      Returns:
      Builder
    • addValue

      public MoneySetFieldBuilder addValue(Function<MoneyBuilder,Money> builder)
      add the value to the value using the builder function
      Parameters:
      builder - function to build the value value
      Returns:
      Builder
    • setValue

      public MoneySetFieldBuilder setValue(Function<MoneyBuilder,Money> builder)
      set the value to the value using the builder function
      Parameters:
      builder - function to build the value value
      Returns:
      Builder
    • getValue

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

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

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

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

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