Class OrderChangeShipmentStateActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderChangeShipmentStateActionBuilder
- All Implemented Interfaces:
Builder<OrderChangeShipmentStateAction>
public class OrderChangeShipmentStateActionBuilder
extends Object
implements Builder<OrderChangeShipmentStateAction>
OrderChangeShipmentStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderChangeShipmentStateAction orderChangeShipmentStateAction = OrderChangeShipmentStateAction.builder()
.shipmentState(ShipmentState.SHIPPED)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderChangeShipmentStateAction with checking for non-null required valuesbuilds OrderChangeShipmentStateAction without checking for non-null required valuesNew shipment status of the Order.of()
factory method for an instance of OrderChangeShipmentStateActionBuilderof
(OrderChangeShipmentStateAction template) create builder for OrderChangeShipmentStateAction instanceshipmentState
(ShipmentState shipmentState) New shipment status of the Order.
-
Constructor Details
-
OrderChangeShipmentStateActionBuilder
public OrderChangeShipmentStateActionBuilder()
-
-
Method Details
-
shipmentState
New shipment status of the Order.
- Parameters:
shipmentState
- value to be set- Returns:
- Builder
-
getShipmentState
New shipment status of the Order.
- Returns:
- shipmentState
-
build
builds OrderChangeShipmentStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderChangeShipmentStateAction>
- Returns:
- OrderChangeShipmentStateAction
-
buildUnchecked
builds OrderChangeShipmentStateAction without checking for non-null required values- Returns:
- OrderChangeShipmentStateAction
-
of
factory method for an instance of OrderChangeShipmentStateActionBuilder- Returns:
- builder
-
of
create builder for OrderChangeShipmentStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-