Class AddParcelToDeliveryChangeBuilder
java.lang.Object
com.commercetools.history.models.change.AddParcelToDeliveryChangeBuilder
- All Implemented Interfaces:
Builder<AddParcelToDeliveryChange>
public class AddParcelToDeliveryChangeBuilder
extends Object
implements Builder<AddParcelToDeliveryChange>
AddParcelToDeliveryChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AddParcelToDeliveryChange addParcelToDeliveryChange = AddParcelToDeliveryChange.builder()
.change("{change}")
.nextValue(nextValueBuilder -> nextValueBuilder)
.deliveryId("{deliveryId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AddParcelToDeliveryChange with checking for non-null required valuesbuilds AddParcelToDeliveryChange without checking for non-null required valuesset the value to the changedeliveryId
(String deliveryId) id
of the Delivery to which the Parcel was added.value of change}id
of the Delivery to which the Parcel was added.Value after the change.Value after the change.nextValue
(Function<ParcelBuilder, ParcelBuilder> builder) Value after the change.of()
factory method for an instance of AddParcelToDeliveryChangeBuilderof
(AddParcelToDeliveryChange template) create builder for AddParcelToDeliveryChange instancewithNextValue
(Function<ParcelBuilder, Parcel> builder) Value after the change.
-
Constructor Details
-
AddParcelToDeliveryChangeBuilder
public AddParcelToDeliveryChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
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
-
deliveryId
id
of the Delivery to which the Parcel was added.- Parameters:
deliveryId
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
getDeliveryId
id
of the Delivery to which the Parcel was added.- Returns:
- deliveryId
-
build
builds AddParcelToDeliveryChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<AddParcelToDeliveryChange>
- Returns:
- AddParcelToDeliveryChange
-
buildUnchecked
builds AddParcelToDeliveryChange without checking for non-null required values- Returns:
- AddParcelToDeliveryChange
-
of
factory method for an instance of AddParcelToDeliveryChangeBuilder- Returns:
- builder
-
of
create builder for AddParcelToDeliveryChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-