Class DeliveryAddedMessagePayloadBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<DeliveryAddedMessagePayload>
Example to create an instance using the builder pattern
DeliveryAddedMessagePayload deliveryAddedMessagePayload = DeliveryAddedMessagePayload.builder()
.delivery(deliveryBuilder -> deliveryBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DeliveryAddedMessagePayload with checking for non-null required valuesbuilds DeliveryAddedMessagePayload without checking for non-null required valuesDelivery that was added to the Order.delivery
(Function<DeliveryBuilder, DeliveryBuilder> builder) Delivery that was added to the Order.Delivery that was added to the Order.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.of()
factory method for an instance of DeliveryAddedMessagePayloadBuilderof
(DeliveryAddedMessagePayload template) create builder for DeliveryAddedMessagePayload instanceshippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.withDelivery
(Function<DeliveryBuilder, Delivery> builder) Delivery that was added to the Order.
-
Constructor Details
-
DeliveryAddedMessagePayloadBuilder
public DeliveryAddedMessagePayloadBuilder()
-
-
Method Details
-
delivery
public DeliveryAddedMessagePayloadBuilder delivery(Function<DeliveryBuilder, DeliveryBuilder> builder) Delivery that was added to the Order. The Delivery in the Message body does not contain Parcels if those were part of the initial Add Delivery update action. In that case, the update action produces an additional Parcel Added To Delivery Message containing information about the Parcels.
- Parameters:
builder
- function to build the delivery value- Returns:
- Builder
-
withDelivery
Delivery that was added to the Order. The Delivery in the Message body does not contain Parcels if those were part of the initial Add Delivery update action. In that case, the update action produces an additional Parcel Added To Delivery Message containing information about the Parcels.
- Parameters:
builder
- function to build the delivery value- Returns:
- Builder
-
delivery
Delivery that was added to the Order. The Delivery in the Message body does not contain Parcels if those were part of the initial Add Delivery update action. In that case, the update action produces an additional Parcel Added To Delivery Message containing information about the Parcels.
- Parameters:
delivery
- value to be set- 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
-
getDelivery
Delivery that was added to the Order. The Delivery in the Message body does not contain Parcels if those were part of the initial Add Delivery update action. In that case, the update action produces an additional Parcel Added To Delivery Message containing information about the Parcels.
- Returns:
- delivery
-
getShippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingKey
-
build
builds DeliveryAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<DeliveryAddedMessagePayload>
- Returns:
- DeliveryAddedMessagePayload
-
buildUnchecked
builds DeliveryAddedMessagePayload without checking for non-null required values- Returns:
- DeliveryAddedMessagePayload
-
of
factory method for an instance of DeliveryAddedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for DeliveryAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-