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