Class ParcelMeasurementsUpdatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ParcelMeasurementsUpdatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ParcelMeasurementsUpdatedMessagePayload>
public class ParcelMeasurementsUpdatedMessagePayloadBuilder
extends Object
implements Builder<ParcelMeasurementsUpdatedMessagePayload>
ParcelMeasurementsUpdatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ParcelMeasurementsUpdatedMessagePayload parcelMeasurementsUpdatedMessagePayload = ParcelMeasurementsUpdatedMessagePayload.builder()
.deliveryId("{deliveryId}")
.parcelId("{parcelId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ParcelMeasurementsUpdatedMessagePayload with checking for non-null required valuesbuilds ParcelMeasurementsUpdatedMessagePayload without checking for non-null required valuesdeliveryId
(String deliveryId) Unique identifier of the Delivery.Unique identifier of the Delivery.The Parcel Measurements that were set on the Parcel.Unique identifier of the Parcel.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.measurements
(ParcelMeasurements measurements) The Parcel Measurements that were set on the Parcel.The Parcel Measurements that were set on the Parcel.of()
factory method for an instance of ParcelMeasurementsUpdatedMessagePayloadBuilderof
(ParcelMeasurementsUpdatedMessagePayload template) create builder for ParcelMeasurementsUpdatedMessagePayload instanceUnique identifier of the Parcel.shippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.The Parcel Measurements that were set on the Parcel.
-
Constructor Details
-
ParcelMeasurementsUpdatedMessagePayloadBuilder
public ParcelMeasurementsUpdatedMessagePayloadBuilder()
-
-
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
-
measurements
public ParcelMeasurementsUpdatedMessagePayloadBuilder measurements(Function<ParcelMeasurementsBuilder, ParcelMeasurementsBuilder> builder) The Parcel Measurements that were set on the Parcel.
- Parameters:
builder
- function to build the measurements value- Returns:
- Builder
-
withMeasurements
public ParcelMeasurementsUpdatedMessagePayloadBuilder withMeasurements(Function<ParcelMeasurementsBuilder, ParcelMeasurements> builder) The Parcel Measurements that were set on the Parcel.
- Parameters:
builder
- function to build the measurements value- Returns:
- Builder
-
measurements
public ParcelMeasurementsUpdatedMessagePayloadBuilder measurements(@Nullable ParcelMeasurements measurements) The Parcel Measurements that were set on the Parcel.
- Parameters:
measurements
- 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
-
getMeasurements
The Parcel Measurements that were set on the Parcel.
- Returns:
- measurements
-
getShippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingKey
-
build
builds ParcelMeasurementsUpdatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ParcelMeasurementsUpdatedMessagePayload>
- Returns:
- ParcelMeasurementsUpdatedMessagePayload
-
buildUnchecked
builds ParcelMeasurementsUpdatedMessagePayload without checking for non-null required values- Returns:
- ParcelMeasurementsUpdatedMessagePayload
-
of
factory method for an instance of ParcelMeasurementsUpdatedMessagePayloadBuilder- Returns:
- builder
-
of
public static ParcelMeasurementsUpdatedMessagePayloadBuilder of(ParcelMeasurementsUpdatedMessagePayload template) create builder for ParcelMeasurementsUpdatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-