Class OrderImportedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderImportedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderImportedMessagePayload>
public class OrderImportedMessagePayloadBuilder
extends Object
implements Builder<OrderImportedMessagePayload>
OrderImportedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderImportedMessagePayload orderImportedMessagePayload = OrderImportedMessagePayload.builder()
.order(orderBuilder -> orderBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderImportedMessagePayload with checking for non-null required valuesbuilds OrderImportedMessagePayload without checking for non-null required valuesgetOrder()
Order that was imported.of()
factory method for an instance of OrderImportedMessagePayloadBuilderof
(OrderImportedMessagePayload template) create builder for OrderImportedMessagePayload instanceOrder that was imported.order
(Function<OrderBuilder, OrderBuilder> builder) Order that was imported.withOrder
(Function<OrderBuilder, Order> builder) Order that was imported.
-
Constructor Details
-
OrderImportedMessagePayloadBuilder
public OrderImportedMessagePayloadBuilder()
-
-
Method Details
-
order
Order that was imported.
- Parameters:
builder
- function to build the order value- Returns:
- Builder
-
withOrder
Order that was imported.
- Parameters:
builder
- function to build the order value- Returns:
- Builder
-
order
Order that was imported.
- Parameters:
order
- value to be set- Returns:
- Builder
-
getOrder
Order that was imported.
- Returns:
- order
-
build
builds OrderImportedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderImportedMessagePayload>
- Returns:
- OrderImportedMessagePayload
-
buildUnchecked
builds OrderImportedMessagePayload without checking for non-null required values- Returns:
- OrderImportedMessagePayload
-
of
factory method for an instance of OrderImportedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for OrderImportedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-