Class ParcelMeasurementDraftBuilder
java.lang.Object
com.commercetools.importapi.models.order_patches.ParcelMeasurementDraftBuilder
- All Implemented Interfaces:
Builder<ParcelMeasurementDraft>
public class ParcelMeasurementDraftBuilder
extends Object
implements Builder<ParcelMeasurementDraft>
ParcelMeasurementDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ParcelMeasurementDraft parcelMeasurementDraft = ParcelMeasurementDraft.builder()
.parcelId("{parcelId}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ParcelMeasurementDraft with checking for non-null required valuesbuilds ParcelMeasurementDraft without checking for non-null required valuesInformation about the dimensions of the Parcel.id
of an existing Parcel.measurements
(ParcelMeasurements measurements) Information about the dimensions of the Parcel.Information about the dimensions of the Parcel.of()
factory method for an instance of ParcelMeasurementDraftBuilderof
(ParcelMeasurementDraft template) create builder for ParcelMeasurementDraft instanceid
of an existing Parcel.Information about the dimensions of the Parcel.
-
Constructor Details
-
ParcelMeasurementDraftBuilder
public ParcelMeasurementDraftBuilder()
-
-
Method Details
-
parcelId
id
of an existing Parcel.- Parameters:
parcelId
- value to be set- Returns:
- Builder
-
measurements
public ParcelMeasurementDraftBuilder measurements(Function<ParcelMeasurementsBuilder, ParcelMeasurementsBuilder> builder) Information about the dimensions of the Parcel.
- Parameters:
builder
- function to build the measurements value- Returns:
- Builder
-
withMeasurements
public ParcelMeasurementDraftBuilder withMeasurements(Function<ParcelMeasurementsBuilder, ParcelMeasurements> builder) Information about the dimensions of the Parcel.
- Parameters:
builder
- function to build the measurements value- Returns:
- Builder
-
measurements
Information about the dimensions of the Parcel.
- Parameters:
measurements
- value to be set- Returns:
- Builder
-
getParcelId
id
of an existing Parcel.- Returns:
- parcelId
-
getMeasurements
Information about the dimensions of the Parcel.
- Returns:
- measurements
-
build
builds ParcelMeasurementDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ParcelMeasurementDraft>
- Returns:
- ParcelMeasurementDraft
-
buildUnchecked
builds ParcelMeasurementDraft without checking for non-null required values- Returns:
- ParcelMeasurementDraft
-
of
factory method for an instance of ParcelMeasurementDraftBuilder- Returns:
- builder
-
of
create builder for ParcelMeasurementDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-