Class ParcelTrackingDataUpdatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ParcelTrackingDataUpdatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ParcelTrackingDataUpdatedMessagePayload>
public class ParcelTrackingDataUpdatedMessagePayloadBuilder
extends Object
implements Builder<ParcelTrackingDataUpdatedMessagePayload>
ParcelTrackingDataUpdatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ParcelTrackingDataUpdatedMessagePayload parcelTrackingDataUpdatedMessagePayload = ParcelTrackingDataUpdatedMessagePayload.builder()
.deliveryId("{deliveryId}")
.parcelId("{parcelId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ParcelTrackingDataUpdatedMessagePayload with checking for non-null required valuesbuilds ParcelTrackingDataUpdatedMessagePayload without checking for non-null required valuesdeliveryId
(String deliveryId) Unique identifier of the Delivery.Unique identifier of the Delivery.Unique identifier of the Parcel.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.The Tracking Data that was added to the Parcel.of()
factory method for an instance of ParcelTrackingDataUpdatedMessagePayloadBuilderof
(ParcelTrackingDataUpdatedMessagePayload template) create builder for ParcelTrackingDataUpdatedMessagePayload instanceUnique identifier of the Parcel.shippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.trackingData
(TrackingData trackingData) The Tracking Data that was added to the Parcel.The Tracking Data that was added to the Parcel.The Tracking Data that was added to the Parcel.
-
Constructor Details
-
ParcelTrackingDataUpdatedMessagePayloadBuilder
public ParcelTrackingDataUpdatedMessagePayloadBuilder()
-
-
Method Details
-
deliveryId
Unique identifier of the Delivery.
- Parameters:
deliveryId
- value to be set- Returns:
- Builder
-
parcelId
Unique identifier of the Parcel.
- Parameters:
parcelId
- value to be set- Returns:
- Builder
-
trackingData
public ParcelTrackingDataUpdatedMessagePayloadBuilder trackingData(Function<TrackingDataBuilder, TrackingDataBuilder> builder) The Tracking Data that was added to the Parcel.
- Parameters:
builder
- function to build the trackingData value- Returns:
- Builder
-
withTrackingData
public ParcelTrackingDataUpdatedMessagePayloadBuilder withTrackingData(Function<TrackingDataBuilder, TrackingData> builder) The Tracking Data that was added to the Parcel.
- Parameters:
builder
- function to build the trackingData value- Returns:
- Builder
-
trackingData
public ParcelTrackingDataUpdatedMessagePayloadBuilder trackingData(@Nullable TrackingData trackingData) The Tracking Data that was added to the Parcel.
- Parameters:
trackingData
- 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
-
getParcelId
Unique identifier of the Parcel.
- Returns:
- parcelId
-
getTrackingData
The Tracking Data that was added to the Parcel.
- Returns:
- trackingData
-
getShippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingKey
-
build
builds ParcelTrackingDataUpdatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ParcelTrackingDataUpdatedMessagePayload>
- Returns:
- ParcelTrackingDataUpdatedMessagePayload
-
buildUnchecked
builds ParcelTrackingDataUpdatedMessagePayload without checking for non-null required values- Returns:
- ParcelTrackingDataUpdatedMessagePayload
-
of
factory method for an instance of ParcelTrackingDataUpdatedMessagePayloadBuilder- Returns:
- builder
-
of
public static ParcelTrackingDataUpdatedMessagePayloadBuilder of(ParcelTrackingDataUpdatedMessagePayload template) create builder for ParcelTrackingDataUpdatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-