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