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