Class ChangeAmountAuthorizedChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangeAmountAuthorizedChangeBuilder
- All Implemented Interfaces:
Builder<ChangeAmountAuthorizedChange>
@Deprecated
public class ChangeAmountAuthorizedChangeBuilder
extends Object
implements Builder<ChangeAmountAuthorizedChange>
Deprecated.
ChangeAmountAuthorizedChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeAmountAuthorizedChange changeAmountAuthorizedChange = ChangeAmountAuthorizedChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.builds ChangeAmountAuthorizedChange with checking for non-null required valuesDeprecated.builds ChangeAmountAuthorizedChange without checking for non-null required valuesDeprecated.set the value to the changeDeprecated.value of change}Deprecated.Value after the change.Deprecated.Value before the change.Deprecated.Value after the change.nextValue(Function<MoneyBuilder, MoneyBuilder> builder) Deprecated.Value after the change.of()Deprecated.factory method for an instance of ChangeAmountAuthorizedChangeBuilderof(ChangeAmountAuthorizedChange template) Deprecated.create builder for ChangeAmountAuthorizedChange instancepreviousValue(Money previousValue) Deprecated.Value before the change.previousValue(Function<MoneyBuilder, MoneyBuilder> builder) Deprecated.Value before the change.withNextValue(Function<MoneyBuilder, Money> builder) Deprecated.Value after the change.withPreviousValue(Function<MoneyBuilder, Money> builder) Deprecated.Value before the change.
-
Constructor Details
-
ChangeAmountAuthorizedChangeBuilder
public ChangeAmountAuthorizedChangeBuilder()Deprecated.
-
-
Method Details
-
change
Deprecated.set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
previousValue
public ChangeAmountAuthorizedChangeBuilder previousValue(Function<MoneyBuilder, MoneyBuilder> builder) Deprecated.Value before the change.
- Parameters:
builder- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
Deprecated.Value before the change.
- Parameters:
builder- function to build the previousValue value- Returns:
- Builder
-
previousValue
Deprecated.Value before the change.
- Parameters:
previousValue- value to be set- Returns:
- Builder
-
nextValue
Deprecated.Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
withNextValue
Deprecated.Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
nextValue
Deprecated.Value after the change.
- Parameters:
nextValue- value to be set- Returns:
- Builder
-
getChange
Deprecated.value of change}- Returns:
- change
-
getPreviousValue
Deprecated.Value before the change.
- Returns:
- previousValue
-
getNextValue
Deprecated.Value after the change.
- Returns:
- nextValue
-
build
Deprecated.builds ChangeAmountAuthorizedChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<ChangeAmountAuthorizedChange>- Returns:
- ChangeAmountAuthorizedChange
-
buildUnchecked
Deprecated.builds ChangeAmountAuthorizedChange without checking for non-null required values- Returns:
- ChangeAmountAuthorizedChange
-
of
Deprecated.factory method for an instance of ChangeAmountAuthorizedChangeBuilder- Returns:
- builder
-
of
Deprecated.create builder for ChangeAmountAuthorizedChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-