Class OrderDeletedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderDeletedMessagePayloadBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<OrderDeletedMessagePayload>
public class OrderDeletedMessagePayloadBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<OrderDeletedMessagePayload>
OrderDeletedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderDeletedMessagePayload orderDeletedMessagePayload = OrderDeletedMessagePayload.builder()
.order(orderBuilder -> orderBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderDeletedMessagePayload with checking for non-null required valuesbuilds OrderDeletedMessagePayload without checking for non-null required valuesgetOrder()
Order that has been deleted.of()
factory method for an instance of OrderDeletedMessagePayloadBuilderof
(OrderDeletedMessagePayload template) create builder for OrderDeletedMessagePayload instanceOrder that has been deleted.order
(Function<OrderBuilder, OrderBuilder> builder) Order that has been deleted.withOrder
(Function<OrderBuilder, Order> builder) Order that has been deleted.
-
Constructor Details
-
OrderDeletedMessagePayloadBuilder
public OrderDeletedMessagePayloadBuilder()
-
-
Method Details
-
order
Order that has been deleted.
- Parameters:
builder
- function to build the order value- Returns:
- Builder
-
withOrder
Order that has been deleted.
- Parameters:
builder
- function to build the order value- Returns:
- Builder
-
order
Order that has been deleted.
- Parameters:
order
- value to be set- Returns:
- Builder
-
getOrder
Order that has been deleted.
- Returns:
- order
-
build
builds OrderDeletedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<OrderDeletedMessagePayload>
- Returns:
- OrderDeletedMessagePayload
-
buildUnchecked
builds OrderDeletedMessagePayload without checking for non-null required values- Returns:
- OrderDeletedMessagePayload
-
of
factory method for an instance of OrderDeletedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for OrderDeletedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-