Class ParcelAddedToDeliveryMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ParcelAddedToDeliveryMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ParcelAddedToDeliveryMessagePayload>
public class ParcelAddedToDeliveryMessagePayloadBuilder
extends Object
implements Builder<ParcelAddedToDeliveryMessagePayload>
ParcelAddedToDeliveryMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ParcelAddedToDeliveryMessagePayload parcelAddedToDeliveryMessagePayload = ParcelAddedToDeliveryMessagePayload.builder()
.delivery(deliveryBuilder -> deliveryBuilder)
.parcel(parcelBuilder -> parcelBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ParcelAddedToDeliveryMessagePayload with checking for non-null required valuesbuilds ParcelAddedToDeliveryMessagePayload without checking for non-null required valuesUnique identifier of the Delivery.delivery
(Function<DeliveryBuilder, DeliveryBuilder> builder) Unique identifier of the Delivery.Unique identifier of the Delivery.Parcel that was added to the Delivery.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.of()
factory method for an instance of ParcelAddedToDeliveryMessagePayloadBuilderof
(ParcelAddedToDeliveryMessagePayload template) create builder for ParcelAddedToDeliveryMessagePayload instanceParcel that was added to the Delivery.parcel
(Function<ParcelBuilder, ParcelBuilder> builder) Parcel that was added to the Delivery.shippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.withDelivery
(Function<DeliveryBuilder, Delivery> builder) Unique identifier of the Delivery.withParcel
(Function<ParcelBuilder, Parcel> builder) Parcel that was added to the Delivery.
-
Constructor Details
-
ParcelAddedToDeliveryMessagePayloadBuilder
public ParcelAddedToDeliveryMessagePayloadBuilder()
-
-
Method Details
-
delivery
public ParcelAddedToDeliveryMessagePayloadBuilder delivery(Function<DeliveryBuilder, DeliveryBuilder> builder) Unique identifier of the Delivery.
- Parameters:
builder
- function to build the delivery value- Returns:
- Builder
-
withDelivery
public ParcelAddedToDeliveryMessagePayloadBuilder withDelivery(Function<DeliveryBuilder, Delivery> builder) Unique identifier of the Delivery.
- Parameters:
builder
- function to build the delivery value- Returns:
- Builder
-
delivery
Unique identifier of the Delivery.
- Parameters:
delivery
- value to be set- Returns:
- Builder
-
parcel
public ParcelAddedToDeliveryMessagePayloadBuilder parcel(Function<ParcelBuilder, ParcelBuilder> builder) Parcel that was added to the Delivery.
- Parameters:
builder
- function to build the parcel value- Returns:
- Builder
-
withParcel
public ParcelAddedToDeliveryMessagePayloadBuilder withParcel(Function<ParcelBuilder, Parcel> builder) Parcel that was added to the Delivery.
- Parameters:
builder
- function to build the parcel value- Returns:
- Builder
-
parcel
Parcel that was added to the Delivery.
- Parameters:
parcel
- 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
Unique identifier of the Delivery.
- Returns:
- delivery
-
getParcel
Parcel that was added to the Delivery.
- Returns:
- parcel
-
getShippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingKey
-
build
builds ParcelAddedToDeliveryMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ParcelAddedToDeliveryMessagePayload>
- Returns:
- ParcelAddedToDeliveryMessagePayload
-
buildUnchecked
builds ParcelAddedToDeliveryMessagePayload without checking for non-null required values- Returns:
- ParcelAddedToDeliveryMessagePayload
-
of
factory method for an instance of ParcelAddedToDeliveryMessagePayloadBuilder- Returns:
- builder
-
of
public static ParcelAddedToDeliveryMessagePayloadBuilder of(ParcelAddedToDeliveryMessagePayload template) create builder for ParcelAddedToDeliveryMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-