Class RemoveParcelFromDeliveryChangeBuilder
java.lang.Object
com.commercetools.history.models.change.RemoveParcelFromDeliveryChangeBuilder
- All Implemented Interfaces:
Builder<RemoveParcelFromDeliveryChange>
public class RemoveParcelFromDeliveryChangeBuilder
extends Object
implements Builder<RemoveParcelFromDeliveryChange>
RemoveParcelFromDeliveryChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RemoveParcelFromDeliveryChange removeParcelFromDeliveryChange = RemoveParcelFromDeliveryChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.deliveryId("{deliveryId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds RemoveParcelFromDeliveryChange with checking for non-null required valuesbuilds RemoveParcelFromDeliveryChange without checking for non-null required valuesset the value to the changedeliveryId
(String deliveryId) id
of the Delivery from which the Parcel was removed.value of change}id
of the Delivery from which the Parcel was removed.Value before the change.of()
factory method for an instance of RemoveParcelFromDeliveryChangeBuilderof
(RemoveParcelFromDeliveryChange template) create builder for RemoveParcelFromDeliveryChange instancepreviousValue
(Parcel previousValue) Value before the change.previousValue
(Function<ParcelBuilder, ParcelBuilder> builder) Value before the change.withPreviousValue
(Function<ParcelBuilder, Parcel> builder) Value before the change.
-
Constructor Details
-
RemoveParcelFromDeliveryChangeBuilder
public RemoveParcelFromDeliveryChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public RemoveParcelFromDeliveryChangeBuilder previousValue(Function<ParcelBuilder, ParcelBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public RemoveParcelFromDeliveryChangeBuilder withPreviousValue(Function<ParcelBuilder, Parcel> 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
-
deliveryId
id
of the Delivery from which the Parcel was removed.- Parameters:
deliveryId
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getDeliveryId
id
of the Delivery from which the Parcel was removed.- Returns:
- deliveryId
-
build
builds RemoveParcelFromDeliveryChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<RemoveParcelFromDeliveryChange>
- Returns:
- RemoveParcelFromDeliveryChange
-
buildUnchecked
builds RemoveParcelFromDeliveryChange without checking for non-null required values- Returns:
- RemoveParcelFromDeliveryChange
-
of
factory method for an instance of RemoveParcelFromDeliveryChangeBuilder- Returns:
- builder
-
of
create builder for RemoveParcelFromDeliveryChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-