Class OrderEditAppliedBuilder
java.lang.Object
com.commercetools.api.models.order_edit.OrderEditAppliedBuilder
- All Implemented Interfaces:
Builder<OrderEditApplied>
OrderEditAppliedBuilder
Example to create an instance using the builder pattern
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionappliedAt
(ZonedDateTime appliedAt) Date and time (UTC) the Order was edited.build()
builds OrderEditApplied with checking for non-null required valuesbuilds OrderEditApplied without checking for non-null required valuesexcerptAfterEdit
(OrderExcerpt excerptAfterEdit) Prices of the Order after the edit.Prices of the Order after the edit.excerptBeforeEdit
(OrderExcerpt excerptBeforeEdit) Prices of the Order before the edit.Prices of the Order before the edit.Date and time (UTC) the Order was edited.Prices of the Order after the edit.Prices of the Order before the edit.static OrderEditAppliedBuilder
of()
factory method for an instance of OrderEditAppliedBuilderstatic OrderEditAppliedBuilder
of
(OrderEditApplied template) create builder for OrderEditApplied instancePrices of the Order after the edit.Prices of the Order before the edit.
-
Constructor Details
-
OrderEditAppliedBuilder
public OrderEditAppliedBuilder()
-
-
Method Details
-
appliedAt
Date and time (UTC) the Order was edited.
- Parameters:
appliedAt
- value to be set- Returns:
- Builder
-
excerptBeforeEdit
public OrderEditAppliedBuilder excerptBeforeEdit(Function<OrderExcerptBuilder, OrderExcerptBuilder> builder) 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
Prices of the Order before the edit.
- Parameters:
excerptBeforeEdit
- value to be set- Returns:
- Builder
-
excerptAfterEdit
public OrderEditAppliedBuilder excerptAfterEdit(Function<OrderExcerptBuilder, OrderExcerptBuilder> builder) 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
Prices of the Order after the edit.
- Parameters:
excerptAfterEdit
- value to be set- Returns:
- Builder
-
getAppliedAt
Date and time (UTC) the Order was edited.
- Returns:
- appliedAt
-
getExcerptBeforeEdit
Prices of the Order before the edit.
- Returns:
- excerptBeforeEdit
-
getExcerptAfterEdit
Prices of the Order after the edit.
- Returns:
- excerptAfterEdit
-
build
builds OrderEditApplied with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderEditApplied>
- Returns:
- OrderEditApplied
-
buildUnchecked
builds OrderEditApplied without checking for non-null required values- Returns:
- OrderEditApplied
-
of
factory method for an instance of OrderEditAppliedBuilder- Returns:
- builder
-
of
create builder for OrderEditApplied instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-