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