Class ChangeTransactionInteractionIdChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangeTransactionInteractionIdChangeBuilder
- All Implemented Interfaces:
Builder<ChangeTransactionInteractionIdChange>
public class ChangeTransactionInteractionIdChangeBuilder
extends Object
implements Builder<ChangeTransactionInteractionIdChange>
ChangeTransactionInteractionIdChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeTransactionInteractionIdChange changeTransactionInteractionIdChange = ChangeTransactionInteractionIdChange.builder()
.change("{change}")
.previousValue("{previousValue}")
.nextValue("{nextValue}")
.transaction(transactionBuilder -> transactionBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ChangeTransactionInteractionIdChange with checking for non-null required valuesbuilds ChangeTransactionInteractionIdChange without checking for non-null required valuesset the value to the changevalue of change}Value before the change.Value after the change.Holds information about the updated Transaction.Value before the change.of()factory method for an instance of ChangeTransactionInteractionIdChangeBuilderof(ChangeTransactionInteractionIdChange template) create builder for ChangeTransactionInteractionIdChange instancepreviousValue(String previousValue) Value after the change.transaction(TransactionChangeValue transaction) Holds information about the updated Transaction.Holds information about the updated Transaction.Holds information about the updated Transaction.
-
Constructor Details
-
ChangeTransactionInteractionIdChangeBuilder
public ChangeTransactionInteractionIdChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
previousValue
Value after the change.
- Parameters:
previousValue- value to be set- Returns:
- Builder
-
nextValue
Value before the change.
- Parameters:
nextValue- value to be set- Returns:
- Builder
-
transaction
public ChangeTransactionInteractionIdChangeBuilder transaction(Function<TransactionChangeValueBuilder, TransactionChangeValueBuilder> builder) Holds information about the updated Transaction.
- Parameters:
builder- function to build the transaction value- Returns:
- Builder
-
withTransaction
public ChangeTransactionInteractionIdChangeBuilder withTransaction(Function<TransactionChangeValueBuilder, TransactionChangeValue> builder) Holds information about the updated Transaction.
- Parameters:
builder- function to build the transaction value- Returns:
- Builder
-
transaction
Holds information about the updated Transaction.
- Parameters:
transaction- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value after the change.
- Returns:
- previousValue
-
getNextValue
Value before the change.
- Returns:
- nextValue
-
getTransaction
Holds information about the updated Transaction.
- Returns:
- transaction
-
build
builds ChangeTransactionInteractionIdChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<ChangeTransactionInteractionIdChange>- Returns:
- ChangeTransactionInteractionIdChange
-
buildUnchecked
builds ChangeTransactionInteractionIdChange without checking for non-null required values- Returns:
- ChangeTransactionInteractionIdChange
-
of
factory method for an instance of ChangeTransactionInteractionIdChangeBuilder- Returns:
- builder
-
of
public static ChangeTransactionInteractionIdChangeBuilder of(ChangeTransactionInteractionIdChange template) create builder for ChangeTransactionInteractionIdChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-