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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetReturnShipmentStateAction with checking for non-null required valuesbuilds StagedOrderSetReturnShipmentStateAction without checking for non-null required valuesid
of the ReturnItem to update.key
of 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) id
of the ReturnItem to update.returnItemKey
(String returnItemKey) key
of the ReturnItem to update.shipmentState
(ReturnShipmentState shipmentState) New shipment state of the ReturnItem.
-
Constructor Details
-
StagedOrderSetReturnShipmentStateActionBuilder
public StagedOrderSetReturnShipmentStateActionBuilder()
-
-
Method Details
-
returnItemId
id
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Parameters:
returnItemId
- value to be set- Returns:
- Builder
-
returnItemKey
key
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is 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
id
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Returns:
- returnItemId
-
getReturnItemKey
key
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Returns:
- returnItemKey
-
getShipmentState
New shipment state of the ReturnItem.
- Returns:
- shipmentState
-
build
builds StagedOrderSetReturnShipmentStateAction with checking for non-null required values- Specified by:
build
in 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
-