Class OrderPurchaseOrderNumberSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderPurchaseOrderNumberSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderPurchaseOrderNumberSetMessagePayload>
public class OrderPurchaseOrderNumberSetMessagePayloadBuilder
extends Object
implements Builder<OrderPurchaseOrderNumberSetMessagePayload>
OrderPurchaseOrderNumberSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderPurchaseOrderNumberSetMessagePayload orderPurchaseOrderNumberSetMessagePayload = OrderPurchaseOrderNumberSetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderPurchaseOrderNumberSetMessagePayload with checking for non-null required valuesbuilds OrderPurchaseOrderNumberSetMessagePayload without checking for non-null required valuesPurchase order number on the Order before the Set Purchase Order Number update action.Purchase order number on the Order after the Set Purchase Order Number update action.of()
factory method for an instance of OrderPurchaseOrderNumberSetMessagePayloadBuilderof
(OrderPurchaseOrderNumberSetMessagePayload template) create builder for OrderPurchaseOrderNumberSetMessagePayload instanceoldPurchaseOrderNumber
(String oldPurchaseOrderNumber) Purchase order number on the Order before the Set Purchase Order Number update action.purchaseOrderNumber
(String purchaseOrderNumber) Purchase order number on the Order after the Set Purchase Order Number update action.
-
Constructor Details
-
OrderPurchaseOrderNumberSetMessagePayloadBuilder
public OrderPurchaseOrderNumberSetMessagePayloadBuilder()
-
-
Method Details
-
purchaseOrderNumber
public OrderPurchaseOrderNumberSetMessagePayloadBuilder purchaseOrderNumber(@Nullable String purchaseOrderNumber) Purchase order number on the Order after the Set Purchase Order Number update action.
- Parameters:
purchaseOrderNumber
- value to be set- Returns:
- Builder
-
oldPurchaseOrderNumber
public OrderPurchaseOrderNumberSetMessagePayloadBuilder oldPurchaseOrderNumber(@Nullable String oldPurchaseOrderNumber) Purchase order number on the Order before the Set Purchase Order Number update action.
- Parameters:
oldPurchaseOrderNumber
- value to be set- Returns:
- Builder
-
getPurchaseOrderNumber
Purchase order number on the Order after the Set Purchase Order Number update action.
- Returns:
- purchaseOrderNumber
-
getOldPurchaseOrderNumber
Purchase order number on the Order before the Set Purchase Order Number update action.
- Returns:
- oldPurchaseOrderNumber
-
build
builds OrderPurchaseOrderNumberSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderPurchaseOrderNumberSetMessagePayload>
- Returns:
- OrderPurchaseOrderNumberSetMessagePayload
-
buildUnchecked
builds OrderPurchaseOrderNumberSetMessagePayload without checking for non-null required values- Returns:
- OrderPurchaseOrderNumberSetMessagePayload
-
of
factory method for an instance of OrderPurchaseOrderNumberSetMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderPurchaseOrderNumberSetMessagePayloadBuilder of(OrderPurchaseOrderNumberSetMessagePayload template) create builder for OrderPurchaseOrderNumberSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-