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