Class OrderStateChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderStateChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderStateChangedMessagePayload>
public class OrderStateChangedMessagePayloadBuilder
extends Object
implements Builder<OrderStateChangedMessagePayload>
OrderStateChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderStateChangedMessagePayload orderStateChangedMessagePayload = OrderStateChangedMessagePayload.builder()
.orderState(OrderState.OPEN)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderStateChangedMessagePayload with checking for non-null required valuesbuilds OrderStateChangedMessagePayload without checking for non-null required valuesOrderState before the Change Order State update action.OrderState after the Change Order State update action.of()
factory method for an instance of OrderStateChangedMessagePayloadBuilderof
(OrderStateChangedMessagePayload template) create builder for OrderStateChangedMessagePayload instanceoldOrderState
(OrderState oldOrderState) OrderState before the Change Order State update action.orderState
(OrderState orderState) OrderState after the Change Order State update action.
-
Constructor Details
-
OrderStateChangedMessagePayloadBuilder
public OrderStateChangedMessagePayloadBuilder()
-
-
Method Details
-
orderState
OrderState after the Change Order State update action.
- Parameters:
orderState
- value to be set- Returns:
- Builder
-
oldOrderState
OrderState before the Change Order State update action.
- Parameters:
oldOrderState
- value to be set- Returns:
- Builder
-
getOrderState
OrderState after the Change Order State update action.
- Returns:
- orderState
-
getOldOrderState
OrderState before the Change Order State update action.
- Returns:
- oldOrderState
-
build
builds OrderStateChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderStateChangedMessagePayload>
- Returns:
- OrderStateChangedMessagePayload
-
buildUnchecked
builds OrderStateChangedMessagePayload without checking for non-null required values- Returns:
- OrderStateChangedMessagePayload
-
of
factory method for an instance of OrderStateChangedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for OrderStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-