Class StagedOrderSetReturnShipmentStateActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetReturnShipmentStateActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetReturnShipmentStateAction>
public class StagedOrderSetReturnShipmentStateActionBuilder
extends Object
implements Builder<StagedOrderSetReturnShipmentStateAction>
StagedOrderSetReturnShipmentStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetReturnShipmentStateAction stagedOrderSetReturnShipmentStateAction = StagedOrderSetReturnShipmentStateAction.builder()
.shipmentState(ReturnShipmentState.ADVISED)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderSetReturnShipmentStateAction with checking for non-null required valuesbuilds StagedOrderSetReturnShipmentStateAction without checking for non-null required valuesidof the ReturnItem to update.keyof the ReturnItem to update.New shipment state of the ReturnItem.of()factory method for an instance of StagedOrderSetReturnShipmentStateActionBuilderof(StagedOrderSetReturnShipmentStateAction template) create builder for StagedOrderSetReturnShipmentStateAction instancereturnItemId(String returnItemId) idof the ReturnItem to update.returnItemKey(String returnItemKey) keyof the ReturnItem to update.shipmentState(ReturnShipmentState shipmentState) New shipment state of the ReturnItem.
-
Constructor Details
-
StagedOrderSetReturnShipmentStateActionBuilder
public StagedOrderSetReturnShipmentStateActionBuilder()
-
-
Method Details
-
returnItemId
idof the ReturnItem to update. EitherreturnItemIdorreturnItemKeyis required.- Parameters:
returnItemId- value to be set- Returns:
- Builder
-
returnItemKey
keyof the ReturnItem to update. EitherreturnItemIdorreturnItemKeyis required.- Parameters:
returnItemKey- value to be set- Returns:
- Builder
-
shipmentState
public StagedOrderSetReturnShipmentStateActionBuilder shipmentState(ReturnShipmentState shipmentState) New shipment state of the ReturnItem.
- Parameters:
shipmentState- value to be set- Returns:
- Builder
-
getReturnItemId
idof the ReturnItem to update. EitherreturnItemIdorreturnItemKeyis required.- Returns:
- returnItemId
-
getReturnItemKey
keyof the ReturnItem to update. EitherreturnItemIdorreturnItemKeyis required.- Returns:
- returnItemKey
-
getShipmentState
New shipment state of the ReturnItem.
- Returns:
- shipmentState
-
build
builds StagedOrderSetReturnShipmentStateAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderSetReturnShipmentStateAction>- Returns:
- StagedOrderSetReturnShipmentStateAction
-
buildUnchecked
builds StagedOrderSetReturnShipmentStateAction without checking for non-null required values- Returns:
- StagedOrderSetReturnShipmentStateAction
-
of
factory method for an instance of StagedOrderSetReturnShipmentStateActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetReturnShipmentStateActionBuilder of(StagedOrderSetReturnShipmentStateAction template) create builder for StagedOrderSetReturnShipmentStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-