Class OrderEditAppliedBuilder

java.lang.Object
com.commercetools.api.models.order_edit.OrderEditAppliedBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<OrderEditApplied>

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

     OrderEditApplied orderEditApplied = OrderEditApplied.builder()
             .appliedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .excerptBeforeEdit(excerptBeforeEditBuilder -> excerptBeforeEditBuilder)
             .excerptAfterEdit(excerptAfterEditBuilder -> excerptAfterEditBuilder)
             .build()
 
  • Constructor Details

    • OrderEditAppliedBuilder

      public OrderEditAppliedBuilder()
  • Method Details

    • appliedAt

      public OrderEditAppliedBuilder appliedAt(ZonedDateTime appliedAt)

      Date and time (UTC) the Order was edited.

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

      Prices of the Order before the edit.

      Parameters:
      builder - function to build the excerptBeforeEdit value
      Returns:
      Builder
    • withExcerptBeforeEdit

      public OrderEditAppliedBuilder withExcerptBeforeEdit(Function<OrderExcerptBuilder,OrderExcerpt> builder)

      Prices of the Order before the edit.

      Parameters:
      builder - function to build the excerptBeforeEdit value
      Returns:
      Builder
    • excerptBeforeEdit

      public OrderEditAppliedBuilder excerptBeforeEdit(OrderExcerpt excerptBeforeEdit)

      Prices of the Order before the edit.

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

      Prices of the Order after the edit.

      Parameters:
      builder - function to build the excerptAfterEdit value
      Returns:
      Builder
    • withExcerptAfterEdit

      public OrderEditAppliedBuilder withExcerptAfterEdit(Function<OrderExcerptBuilder,OrderExcerpt> builder)

      Prices of the Order after the edit.

      Parameters:
      builder - function to build the excerptAfterEdit value
      Returns:
      Builder
    • excerptAfterEdit

      public OrderEditAppliedBuilder excerptAfterEdit(OrderExcerpt excerptAfterEdit)

      Prices of the Order after the edit.

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

      public ZonedDateTime getAppliedAt()

      Date and time (UTC) the Order was edited.

      Returns:
      appliedAt
    • getExcerptBeforeEdit

      public OrderExcerpt getExcerptBeforeEdit()

      Prices of the Order before the edit.

      Returns:
      excerptBeforeEdit
    • getExcerptAfterEdit

      public OrderExcerpt getExcerptAfterEdit()

      Prices of the Order after the edit.

      Returns:
      excerptAfterEdit
    • build

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

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

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

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