Class OrderEditApplyBuilder

java.lang.Object
com.commercetools.api.models.order_edit.OrderEditApplyBuilder
All Implemented Interfaces:
Builder<OrderEditApply>

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

     OrderEditApply orderEditApply = OrderEditApply.builder()
             .editVersion(0.3)
             .resourceVersion(0.3)
             .build()
 
  • Constructor Details

    • OrderEditApplyBuilder

      public OrderEditApplyBuilder()
  • Method Details

    • editVersion

      public OrderEditApplyBuilder editVersion(Long editVersion)

      Current version of the OrderEdit to be applied.

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

      public OrderEditApplyBuilder resourceVersion(Long resourceVersion)

      Current version of the Order to which the OrderEdit is applied.

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

      public Long getEditVersion()

      Current version of the OrderEdit to be applied.

      Returns:
      editVersion
    • getResourceVersion

      public Long getResourceVersion()

      Current version of the Order to which the OrderEdit is applied.

      Returns:
      resourceVersion
    • build

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

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

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

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