Class TransactionChangeValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.TransactionChangeValueBuilder
- All Implemented Interfaces:
Builder<TransactionChangeValue>
public class TransactionChangeValueBuilder
extends Object
implements Builder<TransactionChangeValue>
TransactionChangeValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TransactionChangeValue transactionChangeValue = TransactionChangeValue.builder()
.id("{id}")
.interactionId("{interactionId}")
.timestamp("{timestamp}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TransactionChangeValue with checking for non-null required valuesbuilds TransactionChangeValue without checking for non-null required valuesgetId()
id
of the Transaction.Identifier used by the interface that manages the Transaction (usually the PSP).Date and time (UTC) the Transaction took place.id
of the Transaction.interactionId
(String interactionId) Identifier used by the interface that manages the Transaction (usually the PSP).of()
factory method for an instance of TransactionChangeValueBuilderof
(TransactionChangeValue template) create builder for TransactionChangeValue instanceDate and time (UTC) the Transaction took place.
-
Constructor Details
-
TransactionChangeValueBuilder
public TransactionChangeValueBuilder()
-
-
Method Details
-
id
id
of the Transaction.- Parameters:
id
- value to be set- Returns:
- Builder
-
interactionId
Identifier used by the interface that manages the Transaction (usually the PSP).
- Parameters:
interactionId
- value to be set- Returns:
- Builder
-
timestamp
Date and time (UTC) the Transaction took place.
- Parameters:
timestamp
- value to be set- Returns:
- Builder
-
getId
id
of the Transaction.- Returns:
- id
-
getInteractionId
Identifier used by the interface that manages the Transaction (usually the PSP).
- Returns:
- interactionId
-
getTimestamp
Date and time (UTC) the Transaction took place.
- Returns:
- timestamp
-
build
builds TransactionChangeValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<TransactionChangeValue>
- Returns:
- TransactionChangeValue
-
buildUnchecked
builds TransactionChangeValue without checking for non-null required values- Returns:
- TransactionChangeValue
-
of
factory method for an instance of TransactionChangeValueBuilder- Returns:
- builder
-
of
create builder for TransactionChangeValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-