Class SetCountriesChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetCountriesChangeBuilder
- All Implemented Interfaces:
Builder<SetCountriesChange>
SetCountriesChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetCountriesChange setCountriesChange = SetCountriesChange.builder()
.change("{change}")
.plusPreviousValue(previousValueBuilder -> previousValueBuilder)
.plusNextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddNextValue
(Function<StoreCountryBuilder, StoreCountry> builder) Value after the change.Value before the change.build()
builds SetCountriesChange with checking for non-null required valuesbuilds SetCountriesChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Value before the change.nextValue
(StoreCountry... nextValue) Value after the change.nextValue
(List<StoreCountry> nextValue) Value after the change.static SetCountriesChangeBuilder
of()
factory method for an instance of SetCountriesChangeBuilderstatic SetCountriesChangeBuilder
of
(SetCountriesChange template) create builder for SetCountriesChange instanceplusNextValue
(StoreCountry... nextValue) Value after the change.Value after the change.plusPreviousValue
(StoreCountry... previousValue) Value before the change.Value before the change.previousValue
(StoreCountry... previousValue) Value before the change.previousValue
(List<StoreCountry> previousValue) Value before the change.setNextValue
(Function<StoreCountryBuilder, StoreCountry> builder) Value after the change.Value before the change.Value after the change.Value before the change.
-
Constructor Details
-
SetCountriesChangeBuilder
public SetCountriesChangeBuilder()
-
-
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 SetCountriesChangeBuilder plusPreviousValue(Function<StoreCountryBuilder, StoreCountryBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public SetCountriesChangeBuilder withPreviousValue(Function<StoreCountryBuilder, StoreCountryBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
addPreviousValue
public SetCountriesChangeBuilder addPreviousValue(Function<StoreCountryBuilder, StoreCountry> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
setPreviousValue
public SetCountriesChangeBuilder setPreviousValue(Function<StoreCountryBuilder, StoreCountry> 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 SetCountriesChangeBuilder plusNextValue(Function<StoreCountryBuilder, StoreCountryBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public SetCountriesChangeBuilder withNextValue(Function<StoreCountryBuilder, StoreCountryBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
addNextValue
Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
setNextValue
Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds SetCountriesChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetCountriesChange>
- Returns:
- SetCountriesChange
-
buildUnchecked
builds SetCountriesChange without checking for non-null required values- Returns:
- SetCountriesChange
-
of
factory method for an instance of SetCountriesChangeBuilder- Returns:
- builder
-
of
create builder for SetCountriesChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-