Class StagedOrderChangeOrderStateActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderChangeOrderStateActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderChangeOrderStateAction>
public class StagedOrderChangeOrderStateActionBuilder
extends Object
implements Builder<StagedOrderChangeOrderStateAction>
StagedOrderChangeOrderStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderChangeOrderStateAction stagedOrderChangeOrderStateAction = StagedOrderChangeOrderStateAction.builder()
.orderState(OrderState.OPEN)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderChangeOrderStateAction with checking for non-null required valuesbuilds StagedOrderChangeOrderStateAction without checking for non-null required valuesNew status of the Order.of()
factory method for an instance of StagedOrderChangeOrderStateActionBuilderof
(StagedOrderChangeOrderStateAction template) create builder for StagedOrderChangeOrderStateAction instanceorderState
(OrderState orderState) New status of the Order.
-
Constructor Details
-
StagedOrderChangeOrderStateActionBuilder
public StagedOrderChangeOrderStateActionBuilder()
-
-
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 StagedOrderChangeOrderStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderChangeOrderStateAction>
- Returns:
- StagedOrderChangeOrderStateAction
-
buildUnchecked
builds StagedOrderChangeOrderStateAction without checking for non-null required values- Returns:
- StagedOrderChangeOrderStateAction
-
of
factory method for an instance of StagedOrderChangeOrderStateActionBuilder- Returns:
- builder
-
of
public static StagedOrderChangeOrderStateActionBuilder of(StagedOrderChangeOrderStateAction template) create builder for StagedOrderChangeOrderStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-