Class OrderReturnShipmentStateChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderReturnShipmentStateChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderReturnShipmentStateChangedMessagePayload>
public class OrderReturnShipmentStateChangedMessagePayloadBuilder
extends Object
implements Builder<OrderReturnShipmentStateChangedMessagePayload>
OrderReturnShipmentStateChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderReturnShipmentStateChangedMessagePayload orderReturnShipmentStateChangedMessagePayload = OrderReturnShipmentStateChangedMessagePayload.builder()
.returnItemId("{returnItemId}")
.returnShipmentState(ReturnShipmentState.ADVISED)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderReturnShipmentStateChangedMessagePayload with checking for non-null required valuesbuilds OrderReturnShipmentStateChangedMessagePayload without checking for non-null required valuesUnique identifier of the ReturnItem.State of the ReturnItem after the Set Return Shipment State update action.of()
factory method for an instance of OrderReturnShipmentStateChangedMessagePayloadBuildercreate builder for OrderReturnShipmentStateChangedMessagePayload instancereturnItemId
(String returnItemId) Unique identifier of the ReturnItem.returnShipmentState
(ReturnShipmentState returnShipmentState) State of the ReturnItem after the Set Return Shipment State update action.
-
Constructor Details
-
OrderReturnShipmentStateChangedMessagePayloadBuilder
public OrderReturnShipmentStateChangedMessagePayloadBuilder()
-
-
Method Details
-
returnItemId
Unique identifier of the ReturnItem.
- Parameters:
returnItemId
- value to be set- Returns:
- Builder
-
returnShipmentState
public OrderReturnShipmentStateChangedMessagePayloadBuilder returnShipmentState(ReturnShipmentState returnShipmentState) State of the ReturnItem after the Set Return Shipment State update action.
- Parameters:
returnShipmentState
- value to be set- Returns:
- Builder
-
getReturnItemId
Unique identifier of the ReturnItem.
- Returns:
- returnItemId
-
getReturnShipmentState
State of the ReturnItem after the Set Return Shipment State update action.
- Returns:
- returnShipmentState
-
build
builds OrderReturnShipmentStateChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderReturnShipmentStateChangedMessagePayload>
- Returns:
- OrderReturnShipmentStateChangedMessagePayload
-
buildUnchecked
builds OrderReturnShipmentStateChangedMessagePayload without checking for non-null required values- Returns:
- OrderReturnShipmentStateChangedMessagePayload
-
of
factory method for an instance of OrderReturnShipmentStateChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderReturnShipmentStateChangedMessagePayloadBuilder of(OrderReturnShipmentStateChangedMessagePayload template) create builder for OrderReturnShipmentStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-