Class OrderSetReturnShipmentStateActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetReturnShipmentStateActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<OrderSetReturnShipmentStateAction>
public class OrderSetReturnShipmentStateActionBuilder
extends Object
implements io.vrap.rmf.base.client.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()
.returnItemId("{returnItemId}")
.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 valuesvalue of returnItemId}value of shipmentState}of()
factory method for an instance of OrderSetReturnShipmentStateActionBuilderof
(OrderSetReturnShipmentStateAction template) create builder for OrderSetReturnShipmentStateAction instancereturnItemId
(String returnItemId) set the value to the returnItemIdshipmentState
(ReturnShipmentState shipmentState) set the value to the shipmentState
-
Constructor Details
-
OrderSetReturnShipmentStateActionBuilder
-
-
Method Details
-
returnItemId
set the value to the returnItemId- Parameters:
returnItemId
- value to be set- Returns:
- Builder
-
shipmentState
set the value to the shipmentState- Parameters:
shipmentState
- value to be set- Returns:
- Builder
-
getReturnItemId
value of returnItemId}- Returns:
- returnItemId
-
getShipmentState
value of shipmentState}- Returns:
- shipmentState
-
build
builds OrderSetReturnShipmentStateAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<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
-