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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetReturnShipmentStateAction with checking for non-null required valuesbuilds OrderSetReturnShipmentStateAction 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 OrderSetReturnShipmentStateActionBuilderof
(OrderSetReturnShipmentStateAction template) create builder for OrderSetReturnShipmentStateAction 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
-
OrderSetReturnShipmentStateActionBuilder
public OrderSetReturnShipmentStateActionBuilder()
-
-
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
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 OrderSetReturnShipmentStateAction with checking for non-null required values- Specified by:
build
in 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
-