Class OrderSetParcelMeasurementsActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetParcelMeasurementsActionBuilder
- All Implemented Interfaces:
Builder<OrderSetParcelMeasurementsAction>
public class OrderSetParcelMeasurementsActionBuilder
extends Object
implements Builder<OrderSetParcelMeasurementsAction>
OrderSetParcelMeasurementsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetParcelMeasurementsAction orderSetParcelMeasurementsAction = OrderSetParcelMeasurementsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetParcelMeasurementsAction with checking for non-null required valuesbuilds OrderSetParcelMeasurementsAction without checking for non-null required valuesValue to set.id
of an existing Parcel.key
of an existing Parcel.measurements
(ParcelMeasurements measurements) Value to set.Value to set.of()
factory method for an instance of OrderSetParcelMeasurementsActionBuilderof
(OrderSetParcelMeasurementsAction template) create builder for OrderSetParcelMeasurementsAction instanceid
of an existing Parcel.key
of an existing Parcel.Value to set.
-
Constructor Details
-
OrderSetParcelMeasurementsActionBuilder
public OrderSetParcelMeasurementsActionBuilder()
-
-
Method Details
-
parcelId
id
of an existing Parcel.Either
parcelId
orparcelKey
must be provided.- Parameters:
parcelId
- value to be set- Returns:
- Builder
-
parcelKey
key
of an existing Parcel.Either
parcelId
orparcelKey
must be provided.- Parameters:
parcelKey
- value to be set- Returns:
- Builder
-
measurements
public OrderSetParcelMeasurementsActionBuilder measurements(Function<ParcelMeasurementsBuilder, ParcelMeasurementsBuilder> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the measurements value- Returns:
- Builder
-
withMeasurements
public OrderSetParcelMeasurementsActionBuilder withMeasurements(Function<ParcelMeasurementsBuilder, ParcelMeasurements> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the measurements value- Returns:
- Builder
-
measurements
public OrderSetParcelMeasurementsActionBuilder measurements(@Nullable ParcelMeasurements measurements) Value to set. If empty, any existing value is removed.
- Parameters:
measurements
- value to be set- Returns:
- Builder
-
getParcelId
id
of an existing Parcel.Either
parcelId
orparcelKey
must be provided.- Returns:
- parcelId
-
getParcelKey
key
of an existing Parcel.Either
parcelId
orparcelKey
must be provided.- Returns:
- parcelKey
-
getMeasurements
Value to set. If empty, any existing value is removed.
- Returns:
- measurements
-
build
builds OrderSetParcelMeasurementsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetParcelMeasurementsAction>
- Returns:
- OrderSetParcelMeasurementsAction
-
buildUnchecked
builds OrderSetParcelMeasurementsAction without checking for non-null required values- Returns:
- OrderSetParcelMeasurementsAction
-
of
factory method for an instance of OrderSetParcelMeasurementsActionBuilder- Returns:
- builder
-
of
create builder for OrderSetParcelMeasurementsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-