Class SetDeliveryItemsChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetDeliveryItemsChangeBuilder
- All Implemented Interfaces:
Builder<SetDeliveryItemsChange>
public class SetDeliveryItemsChangeBuilder
extends Object
implements Builder<SetDeliveryItemsChange>
SetDeliveryItemsChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetDeliveryItemsChange setDeliveryItemsChange = SetDeliveryItemsChange.builder()
.change("{change}")
.plusPreviousValue(previousValueBuilder -> previousValueBuilder)
.plusNextValue(nextValueBuilder -> nextValueBuilder)
.deliveryId("{deliveryId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddNextValue
(Function<DeliveryItemBuilder, DeliveryItem> builder) Value after the change.Value before the change.build()
builds SetDeliveryItemsChange with checking for non-null required valuesbuilds SetDeliveryItemsChange without checking for non-null required valuesset the value to the changedeliveryId
(String deliveryId) id
of the updated Delivery.value of change}id
of the updated Delivery.Value after the change.Value before the change.nextValue
(DeliveryItem... nextValue) Value after the change.nextValue
(List<DeliveryItem> nextValue) Value after the change.of()
factory method for an instance of SetDeliveryItemsChangeBuilderof
(SetDeliveryItemsChange template) create builder for SetDeliveryItemsChange instanceplusNextValue
(DeliveryItem... nextValue) Value after the change.Value after the change.plusPreviousValue
(DeliveryItem... previousValue) Value before the change.Value before the change.previousValue
(DeliveryItem... previousValue) Value before the change.previousValue
(List<DeliveryItem> previousValue) Value before the change.setNextValue
(Function<DeliveryItemBuilder, DeliveryItem> builder) Value after the change.Value before the change.Value after the change.Value before the change.
-
Constructor Details
-
SetDeliveryItemsChangeBuilder
public SetDeliveryItemsChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
plusPreviousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
plusPreviousValue
public SetDeliveryItemsChangeBuilder plusPreviousValue(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public SetDeliveryItemsChangeBuilder withPreviousValue(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
addPreviousValue
public SetDeliveryItemsChangeBuilder addPreviousValue(Function<DeliveryItemBuilder, DeliveryItem> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
setPreviousValue
public SetDeliveryItemsChangeBuilder setPreviousValue(Function<DeliveryItemBuilder, DeliveryItem> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
plusNextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
plusNextValue
public SetDeliveryItemsChangeBuilder plusNextValue(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public SetDeliveryItemsChangeBuilder withNextValue(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
addNextValue
public SetDeliveryItemsChangeBuilder addNextValue(Function<DeliveryItemBuilder, DeliveryItem> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
setNextValue
public SetDeliveryItemsChangeBuilder setNextValue(Function<DeliveryItemBuilder, DeliveryItem> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
deliveryId
id
of the updated Delivery.- Parameters:
deliveryId
- 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
-
getDeliveryId
id
of the updated Delivery.- Returns:
- deliveryId
-
build
builds SetDeliveryItemsChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetDeliveryItemsChange>
- Returns:
- SetDeliveryItemsChange
-
buildUnchecked
builds SetDeliveryItemsChange without checking for non-null required values- Returns:
- SetDeliveryItemsChange
-
of
factory method for an instance of SetDeliveryItemsChangeBuilder- Returns:
- builder
-
of
create builder for SetDeliveryItemsChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-