Class SetParcelTrackingDataChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetParcelTrackingDataChangeBuilder
- All Implemented Interfaces:
Builder<SetParcelTrackingDataChange>
public class SetParcelTrackingDataChangeBuilder
extends Object
implements Builder<SetParcelTrackingDataChange>
SetParcelTrackingDataChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetParcelTrackingDataChange setParcelTrackingDataChange = SetParcelTrackingDataChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.parcel(parcelBuilder -> parcelBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetParcelTrackingDataChange with checking for non-null required valuesbuilds SetParcelTrackingDataChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Information about the updated Parcel.Value before the change.nextValue
(TrackingData nextValue) Value after the change.Value after the change.of()
factory method for an instance of SetParcelTrackingDataChangeBuilderof
(SetParcelTrackingDataChange template) create builder for SetParcelTrackingDataChange instanceparcel
(ParcelChangeValue parcel) Information about the updated Parcel.Information about the updated Parcel.previousValue
(TrackingData previousValue) Value before the change.Value before the change.withNextValue
(Function<TrackingDataBuilder, TrackingData> builder) Value after the change.Information about the updated Parcel.Value before the change.
-
Constructor Details
-
SetParcelTrackingDataChangeBuilder
public SetParcelTrackingDataChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public SetParcelTrackingDataChangeBuilder previousValue(Function<TrackingDataBuilder, TrackingDataBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public SetParcelTrackingDataChangeBuilder withPreviousValue(Function<TrackingDataBuilder, TrackingData> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
nextValue
public SetParcelTrackingDataChangeBuilder nextValue(Function<TrackingDataBuilder, TrackingDataBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public SetParcelTrackingDataChangeBuilder withNextValue(Function<TrackingDataBuilder, TrackingData> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
parcel
public SetParcelTrackingDataChangeBuilder parcel(Function<ParcelChangeValueBuilder, ParcelChangeValueBuilder> builder) Information about the updated Parcel.
- Parameters:
builder
- function to build the parcel value- Returns:
- Builder
-
withParcel
public SetParcelTrackingDataChangeBuilder withParcel(Function<ParcelChangeValueBuilder, ParcelChangeValue> builder) Information about the updated Parcel.
- Parameters:
builder
- function to build the parcel value- Returns:
- Builder
-
parcel
Information about the updated Parcel.
- Parameters:
parcel
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
getParcel
Information about the updated Parcel.
- Returns:
- parcel
-
build
builds SetParcelTrackingDataChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetParcelTrackingDataChange>
- Returns:
- SetParcelTrackingDataChange
-
buildUnchecked
builds SetParcelTrackingDataChange without checking for non-null required values- Returns:
- SetParcelTrackingDataChange
-
of
factory method for an instance of SetParcelTrackingDataChangeBuilder- Returns:
- builder
-
of
create builder for SetParcelTrackingDataChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-