Class StagedOrderSetParcelTrackingDataActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetParcelTrackingDataActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetParcelTrackingDataAction>
public class StagedOrderSetParcelTrackingDataActionBuilder
extends Object
implements Builder<StagedOrderSetParcelTrackingDataAction>
StagedOrderSetParcelTrackingDataActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetParcelTrackingDataAction stagedOrderSetParcelTrackingDataAction = StagedOrderSetParcelTrackingDataAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetParcelTrackingDataAction with checking for non-null required valuesbuilds StagedOrderSetParcelTrackingDataAction without checking for non-null required valuesid
of an existing Parcel.key
of an existing Parcel.Value to set.of()
factory method for an instance of StagedOrderSetParcelTrackingDataActionBuilderof
(StagedOrderSetParcelTrackingDataAction template) create builder for StagedOrderSetParcelTrackingDataAction instanceid
of an existing Parcel.key
of an existing Parcel.trackingData
(TrackingData trackingData) Value to set.Value to set.Value to set.
-
Constructor Details
-
StagedOrderSetParcelTrackingDataActionBuilder
public StagedOrderSetParcelTrackingDataActionBuilder()
-
-
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
-
trackingData
public StagedOrderSetParcelTrackingDataActionBuilder trackingData(Function<TrackingDataBuilder, TrackingDataBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the trackingData value- Returns:
- Builder
-
withTrackingData
public StagedOrderSetParcelTrackingDataActionBuilder withTrackingData(Function<TrackingDataBuilder, TrackingData> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the trackingData value- Returns:
- Builder
-
trackingData
public StagedOrderSetParcelTrackingDataActionBuilder trackingData(@Nullable TrackingData trackingData) Value to set. If empty, any existing value will be removed.
- Parameters:
trackingData
- 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
-
getTrackingData
Value to set. If empty, any existing value will be removed.
- Returns:
- trackingData
-
build
builds StagedOrderSetParcelTrackingDataAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetParcelTrackingDataAction>
- Returns:
- StagedOrderSetParcelTrackingDataAction
-
buildUnchecked
builds StagedOrderSetParcelTrackingDataAction without checking for non-null required values- Returns:
- StagedOrderSetParcelTrackingDataAction
-
of
factory method for an instance of StagedOrderSetParcelTrackingDataActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetParcelTrackingDataActionBuilder of(StagedOrderSetParcelTrackingDataAction template) create builder for StagedOrderSetParcelTrackingDataAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-