Class OrderSetReturnShipmentStateActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetReturnShipmentStateActionBuilder
- All Implemented Interfaces:
Builder<OrderSetReturnShipmentStateAction>
public class OrderSetReturnShipmentStateActionBuilder
extends Object
implements Builder<OrderSetReturnShipmentStateAction>
OrderSetReturnShipmentStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetReturnShipmentStateAction orderSetReturnShipmentStateAction = OrderSetReturnShipmentStateAction.builder()
.shipmentState(ReturnShipmentState.ADVISED)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds OrderSetReturnShipmentStateAction with checking for non-null required valuesbuilds OrderSetReturnShipmentStateAction 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 OrderSetReturnShipmentStateActionBuilderof(OrderSetReturnShipmentStateAction template) create builder for OrderSetReturnShipmentStateAction 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
-
OrderSetReturnShipmentStateActionBuilder
public OrderSetReturnShipmentStateActionBuilder()
-
-
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
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 OrderSetReturnShipmentStateAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<OrderSetReturnShipmentStateAction>- Returns:
- OrderSetReturnShipmentStateAction
-
buildUnchecked
builds OrderSetReturnShipmentStateAction without checking for non-null required values- Returns:
- OrderSetReturnShipmentStateAction
-
of
factory method for an instance of OrderSetReturnShipmentStateActionBuilder- Returns:
- builder
-
of
public static OrderSetReturnShipmentStateActionBuilder of(OrderSetReturnShipmentStateAction template) create builder for OrderSetReturnShipmentStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-