Class OrderSetCustomLineItemCustomFieldActionBuilder

java.lang.Object
com.commercetools.api.models.order.OrderSetCustomLineItemCustomFieldActionBuilder
All Implemented Interfaces:
Builder<OrderSetCustomLineItemCustomFieldAction>

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

     OrderSetCustomLineItemCustomFieldAction orderSetCustomLineItemCustomFieldAction = OrderSetCustomLineItemCustomFieldAction.builder()
             .name("{name}")
             .build()
 
  • Constructor Details

    • OrderSetCustomLineItemCustomFieldActionBuilder

      public OrderSetCustomLineItemCustomFieldActionBuilder()
  • Method Details

    • customLineItemId

      public OrderSetCustomLineItemCustomFieldActionBuilder customLineItemId(@Nullable String customLineItemId)

      id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

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

      public OrderSetCustomLineItemCustomFieldActionBuilder customLineItemKey(@Nullable String customLineItemKey)

      key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

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

      Name of the Custom Field.

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

      If value is absent or null, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.

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

      @Nullable public String getCustomLineItemId()

      id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Returns:
      customLineItemId
    • getCustomLineItemKey

      @Nullable public String getCustomLineItemKey()

      key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Returns:
      customLineItemKey
    • getName

      public String getName()

      Name of the Custom Field.

      Returns:
      name
    • getValue

      @Nullable public Object getValue()

      If value is absent or null, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.

      Returns:
      value
    • build

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

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

      factory method for an instance of OrderSetCustomLineItemCustomFieldActionBuilder
      Returns:
      builder
    • of

      create builder for OrderSetCustomLineItemCustomFieldAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder