Class OrderEditAppliedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderEditAppliedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderEditAppliedMessagePayload>
public class OrderEditAppliedMessagePayloadBuilder
extends Object
implements Builder<OrderEditAppliedMessagePayload>
OrderEditAppliedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderEditAppliedMessagePayload orderEditAppliedMessagePayload = OrderEditAppliedMessagePayload.builder()
.edit(editBuilder -> editBuilder)
.result(resultBuilder -> resultBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderEditAppliedMessagePayload with checking for non-null required valuesbuilds OrderEditAppliedMessagePayload without checking for non-null required valuesOrderEdit that was applied.edit
(Function<OrderEditBuilder, OrderEditBuilder> builder) OrderEdit that was applied.getEdit()
OrderEdit that was applied.Information about a successfully applied OrderEdit.of()
factory method for an instance of OrderEditAppliedMessagePayloadBuilderof
(OrderEditAppliedMessagePayload template) create builder for OrderEditAppliedMessagePayload instanceresult
(OrderEditApplied result) Information about a successfully applied OrderEdit.Information about a successfully applied OrderEdit.withEdit
(Function<OrderEditBuilder, OrderEdit> builder) OrderEdit that was applied.Information about a successfully applied OrderEdit.
-
Constructor Details
-
OrderEditAppliedMessagePayloadBuilder
public OrderEditAppliedMessagePayloadBuilder()
-
-
Method Details
-
edit
public OrderEditAppliedMessagePayloadBuilder edit(Function<OrderEditBuilder, OrderEditBuilder> builder) OrderEdit that was applied.
- Parameters:
builder
- function to build the edit value- Returns:
- Builder
-
withEdit
OrderEdit that was applied.
- Parameters:
builder
- function to build the edit value- Returns:
- Builder
-
edit
OrderEdit that was applied.
- Parameters:
edit
- value to be set- Returns:
- Builder
-
result
public OrderEditAppliedMessagePayloadBuilder result(Function<OrderEditAppliedBuilder, OrderEditAppliedBuilder> builder) Information about a successfully applied OrderEdit.
- Parameters:
builder
- function to build the result value- Returns:
- Builder
-
withResult
public OrderEditAppliedMessagePayloadBuilder withResult(Function<OrderEditAppliedBuilder, OrderEditApplied> builder) Information about a successfully applied OrderEdit.
- Parameters:
builder
- function to build the result value- Returns:
- Builder
-
result
Information about a successfully applied OrderEdit.
- Parameters:
result
- value to be set- Returns:
- Builder
-
getEdit
OrderEdit that was applied.
- Returns:
- edit
-
getResult
Information about a successfully applied OrderEdit.
- Returns:
- result
-
build
builds OrderEditAppliedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderEditAppliedMessagePayload>
- Returns:
- OrderEditAppliedMessagePayload
-
buildUnchecked
builds OrderEditAppliedMessagePayload without checking for non-null required values- Returns:
- OrderEditAppliedMessagePayload
-
of
factory method for an instance of OrderEditAppliedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for OrderEditAppliedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-