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