Class SetInheritedStoresChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetInheritedStoresChangeBuilder
- All Implemented Interfaces:
Builder<SetInheritedStoresChange>
public class SetInheritedStoresChangeBuilder
extends Object
implements Builder<SetInheritedStoresChange>
SetInheritedStoresChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetInheritedStoresChange setInheritedStoresChange = SetInheritedStoresChange.builder()
.change("{change}")
.plusAddedItems(addedItemsBuilder -> addedItemsBuilder)
.plusRemovedItems(removedItemsBuilder -> removedItemsBuilder)
.plusPreviousValue(previousValueBuilder -> previousValueBuilder)
.plusNextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddedItems(KeyReference... addedItems) Elements added to the array.addedItems(List<KeyReference> addedItems) Elements added to the array.build()builds SetInheritedStoresChange with checking for non-null required valuesbuilds SetInheritedStoresChange without checking for non-null required valuesset the value to the changeElements added to the array.value of change}Value after the change.Value before the change.Elements removed from the array.nextValue(KeyReference... nextValue) Value after the change.nextValue(List<KeyReference> nextValue) Value after the change.of()factory method for an instance of SetInheritedStoresChangeBuilderof(SetInheritedStoresChange template) create builder for SetInheritedStoresChange instanceplusAddedItems(KeyReference... addedItems) Elements added to the array.plusAddedItems(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Elements added to the array.plusNextValue(KeyReference... nextValue) Value after the change.plusNextValue(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Value after the change.plusPreviousValue(KeyReference... previousValue) Value before the change.plusPreviousValue(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Value before the change.plusRemovedItems(KeyReference... removedItems) Elements removed from the array.plusRemovedItems(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Elements removed from the array.previousValue(KeyReference... previousValue) Value before the change.previousValue(List<KeyReference> previousValue) Value before the change.removedItems(KeyReference... removedItems) Elements removed from the array.removedItems(List<KeyReference> removedItems) Elements removed from the array.withAddedItems(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Elements added to the array.withNextValue(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Value after the change.withPreviousValue(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Value before the change.withRemovedItems(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Elements removed from the array.
-
Constructor Details
-
SetInheritedStoresChangeBuilder
public SetInheritedStoresChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
addedItems
Elements added to the array.
- Parameters:
addedItems- value to be set- Returns:
- Builder
-
addedItems
Elements added to the array.
- Parameters:
addedItems- value to be set- Returns:
- Builder
-
plusAddedItems
Elements added to the array.
- Parameters:
addedItems- value to be set- Returns:
- Builder
-
plusAddedItems
public SetInheritedStoresChangeBuilder plusAddedItems(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Elements added to the array.
- Parameters:
builder- function to build the addedItems value- Returns:
- Builder
-
withAddedItems
public SetInheritedStoresChangeBuilder withAddedItems(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Elements added to the array.
- Parameters:
builder- function to build the addedItems value- Returns:
- Builder
-
removedItems
Elements removed from the array.
- Parameters:
removedItems- value to be set- Returns:
- Builder
-
removedItems
Elements removed from the array.
- Parameters:
removedItems- value to be set- Returns:
- Builder
-
plusRemovedItems
Elements removed from the array.
- Parameters:
removedItems- value to be set- Returns:
- Builder
-
plusRemovedItems
public SetInheritedStoresChangeBuilder plusRemovedItems(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Elements removed from the array.
- Parameters:
builder- function to build the removedItems value- Returns:
- Builder
-
withRemovedItems
public SetInheritedStoresChangeBuilder withRemovedItems(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Elements removed from the array.
- Parameters:
builder- function to build the removedItems value- 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 SetInheritedStoresChangeBuilder plusPreviousValue(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Value before the change.
- Parameters:
builder- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public SetInheritedStoresChangeBuilder withPreviousValue(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> 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 SetInheritedStoresChangeBuilder plusNextValue(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public SetInheritedStoresChangeBuilder withNextValue(Function<KeyReferenceBuilder, Builder<? extends KeyReference>> builder) Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getAddedItems
Elements added to the array.
- Returns:
- addedItems
-
getRemovedItems
Elements removed from the array.
- Returns:
- removedItems
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds SetInheritedStoresChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<SetInheritedStoresChange>- Returns:
- SetInheritedStoresChange
-
buildUnchecked
builds SetInheritedStoresChange without checking for non-null required values- Returns:
- SetInheritedStoresChange
-
of
factory method for an instance of SetInheritedStoresChangeBuilder- Returns:
- builder
-
of
create builder for SetInheritedStoresChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-