Class OrderShipmentStateChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderShipmentStateChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderShipmentStateChangedMessagePayload>
public class OrderShipmentStateChangedMessagePayloadBuilder
extends Object
implements Builder<OrderShipmentStateChangedMessagePayload>
OrderShipmentStateChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderShipmentStateChangedMessagePayload orderShipmentStateChangedMessagePayload = OrderShipmentStateChangedMessagePayload.builder()
.shipmentState(ShipmentState.SHIPPED)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderShipmentStateChangedMessagePayload with checking for non-null required valuesbuilds OrderShipmentStateChangedMessagePayload without checking for non-null required valuesShipmentState before the Change Shipment State update action.ShipmentState after the Change Shipment State update action.of()
factory method for an instance of OrderShipmentStateChangedMessagePayloadBuilderof
(OrderShipmentStateChangedMessagePayload template) create builder for OrderShipmentStateChangedMessagePayload instanceoldShipmentState
(ShipmentState oldShipmentState) ShipmentState before the Change Shipment State update action.shipmentState
(ShipmentState shipmentState) ShipmentState after the Change Shipment State update action.
-
Constructor Details
-
OrderShipmentStateChangedMessagePayloadBuilder
public OrderShipmentStateChangedMessagePayloadBuilder()
-
-
Method Details
-
shipmentState
ShipmentState after the Change Shipment State update action.
- Parameters:
shipmentState
- value to be set- Returns:
- Builder
-
oldShipmentState
public OrderShipmentStateChangedMessagePayloadBuilder oldShipmentState(@Nullable ShipmentState oldShipmentState) ShipmentState before the Change Shipment State update action.
- Parameters:
oldShipmentState
- value to be set- Returns:
- Builder
-
getShipmentState
ShipmentState after the Change Shipment State update action.
- Returns:
- shipmentState
-
getOldShipmentState
ShipmentState before the Change Shipment State update action.
- Returns:
- oldShipmentState
-
build
builds OrderShipmentStateChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderShipmentStateChangedMessagePayload>
- Returns:
- OrderShipmentStateChangedMessagePayload
-
buildUnchecked
builds OrderShipmentStateChangedMessagePayload without checking for non-null required values- Returns:
- OrderShipmentStateChangedMessagePayload
-
of
factory method for an instance of OrderShipmentStateChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderShipmentStateChangedMessagePayloadBuilder of(OrderShipmentStateChangedMessagePayload template) create builder for OrderShipmentStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-