Class DeliveryItemsUpdatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<DeliveryItemsUpdatedMessagePayload>
Example to create an instance using the builder pattern
DeliveryItemsUpdatedMessagePayload deliveryItemsUpdatedMessagePayload = DeliveryItemsUpdatedMessagePayload.builder()
.deliveryId("{deliveryId}")
.plusItems(itemsBuilder -> itemsBuilder)
.plusOldItems(oldItemsBuilder -> oldItemsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) Delivery Items after the Set Delivery Items update action.addOldItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) Delivery Items before the Set Delivery Items update action.build()
builds DeliveryItemsUpdatedMessagePayload with checking for non-null required valuesbuilds DeliveryItemsUpdatedMessagePayload without checking for non-null required valuesdeliveryId
(String deliveryId) Unique identifier of the Delivery.Unique identifier of the Delivery.getItems()
Delivery Items after the Set Delivery Items update action.Delivery Items before the Set Delivery Items update action.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.items
(DeliveryItem... items) Delivery Items after the Set Delivery Items update action.items
(List<DeliveryItem> items) Delivery Items after the Set Delivery Items update action.of()
factory method for an instance of DeliveryItemsUpdatedMessagePayloadBuilderof
(DeliveryItemsUpdatedMessagePayload template) create builder for DeliveryItemsUpdatedMessagePayload instanceoldItems
(DeliveryItem... oldItems) Delivery Items before the Set Delivery Items update action.oldItems
(List<DeliveryItem> oldItems) Delivery Items before the Set Delivery Items update action.plusItems
(DeliveryItem... items) Delivery Items after the Set Delivery Items update action.Delivery Items after the Set Delivery Items update action.plusOldItems
(DeliveryItem... oldItems) Delivery Items before the Set Delivery Items update action.Delivery Items before the Set Delivery Items update action.setItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) Delivery Items after the Set Delivery Items update action.setOldItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) Delivery Items before the Set Delivery Items update action.shippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.Delivery Items after the Set Delivery Items update action.Delivery Items before the Set Delivery Items update action.
-
Constructor Details
-
DeliveryItemsUpdatedMessagePayloadBuilder
public DeliveryItemsUpdatedMessagePayloadBuilder()
-
-
Method Details
-
deliveryId
Unique identifier of the Delivery.
- Parameters:
deliveryId
- value to be set- Returns:
- Builder
-
items
Delivery Items after the Set Delivery Items update action.
- Parameters:
items
- value to be set- Returns:
- Builder
-
items
Delivery Items after the Set Delivery Items update action.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
Delivery Items after the Set Delivery Items update action.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
public DeliveryItemsUpdatedMessagePayloadBuilder plusItems(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) Delivery Items after the Set Delivery Items update action.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
withItems
public DeliveryItemsUpdatedMessagePayloadBuilder withItems(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) Delivery Items after the Set Delivery Items update action.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
addItems
public DeliveryItemsUpdatedMessagePayloadBuilder addItems(Function<DeliveryItemBuilder, DeliveryItem> builder) Delivery Items after the Set Delivery Items update action.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
setItems
public DeliveryItemsUpdatedMessagePayloadBuilder setItems(Function<DeliveryItemBuilder, DeliveryItem> builder) Delivery Items after the Set Delivery Items update action.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
oldItems
Delivery Items before the Set Delivery Items update action.
- Parameters:
oldItems
- value to be set- Returns:
- Builder
-
oldItems
Delivery Items before the Set Delivery Items update action.
- Parameters:
oldItems
- value to be set- Returns:
- Builder
-
plusOldItems
Delivery Items before the Set Delivery Items update action.
- Parameters:
oldItems
- value to be set- Returns:
- Builder
-
plusOldItems
public DeliveryItemsUpdatedMessagePayloadBuilder plusOldItems(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) Delivery Items before the Set Delivery Items update action.
- Parameters:
builder
- function to build the oldItems value- Returns:
- Builder
-
withOldItems
public DeliveryItemsUpdatedMessagePayloadBuilder withOldItems(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) Delivery Items before the Set Delivery Items update action.
- Parameters:
builder
- function to build the oldItems value- Returns:
- Builder
-
addOldItems
public DeliveryItemsUpdatedMessagePayloadBuilder addOldItems(Function<DeliveryItemBuilder, DeliveryItem> builder) Delivery Items before the Set Delivery Items update action.
- Parameters:
builder
- function to build the oldItems value- Returns:
- Builder
-
setOldItems
public DeliveryItemsUpdatedMessagePayloadBuilder setOldItems(Function<DeliveryItemBuilder, DeliveryItem> builder) Delivery Items before the Set Delivery Items update action.
- Parameters:
builder
- function to build the oldItems value- Returns:
- Builder
-
shippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
getDeliveryId
Unique identifier of the Delivery.
- Returns:
- deliveryId
-
getItems
Delivery Items after the Set Delivery Items update action.
- Returns:
- items
-
getOldItems
Delivery Items before the Set Delivery Items update action.
- Returns:
- oldItems
-
getShippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingKey
-
build
builds DeliveryItemsUpdatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<DeliveryItemsUpdatedMessagePayload>
- Returns:
- DeliveryItemsUpdatedMessagePayload
-
buildUnchecked
builds DeliveryItemsUpdatedMessagePayload without checking for non-null required values- Returns:
- DeliveryItemsUpdatedMessagePayload
-
of
factory method for an instance of DeliveryItemsUpdatedMessagePayloadBuilder- Returns:
- builder
-
of
public static DeliveryItemsUpdatedMessagePayloadBuilder of(DeliveryItemsUpdatedMessagePayload template) create builder for DeliveryItemsUpdatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-