Class OrderChangeOrderStateActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderChangeOrderStateActionBuilder
- All Implemented Interfaces:
Builder<OrderChangeOrderStateAction>
public class OrderChangeOrderStateActionBuilder
extends Object
implements Builder<OrderChangeOrderStateAction>
OrderChangeOrderStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderChangeOrderStateAction orderChangeOrderStateAction = OrderChangeOrderStateAction.builder()
.orderState(OrderState.OPEN)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderChangeOrderStateAction with checking for non-null required valuesbuilds OrderChangeOrderStateAction without checking for non-null required valuesNew status of the Order.of()
factory method for an instance of OrderChangeOrderStateActionBuilderof
(OrderChangeOrderStateAction template) create builder for OrderChangeOrderStateAction instanceorderState
(OrderState orderState) New status of the Order.
-
Constructor Details
-
OrderChangeOrderStateActionBuilder
public OrderChangeOrderStateActionBuilder()
-
-
Method Details
-
orderState
New status of the Order.
- Parameters:
orderState
- value to be set- Returns:
- Builder
-
getOrderState
New status of the Order.
- Returns:
- orderState
-
build
builds OrderChangeOrderStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderChangeOrderStateAction>
- Returns:
- OrderChangeOrderStateAction
-
buildUnchecked
builds OrderChangeOrderStateAction without checking for non-null required values- Returns:
- OrderChangeOrderStateAction
-
of
factory method for an instance of OrderChangeOrderStateActionBuilder- Returns:
- builder
-
of
create builder for OrderChangeOrderStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-