Class PaymentChangeTransactionTimestampActionBuilder
java.lang.Object
com.commercetools.api.models.payment.PaymentChangeTransactionTimestampActionBuilder
- All Implemented Interfaces:
Builder<PaymentChangeTransactionTimestampAction>
public class PaymentChangeTransactionTimestampActionBuilder
extends Object
implements Builder<PaymentChangeTransactionTimestampAction>
PaymentChangeTransactionTimestampActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentChangeTransactionTimestampAction paymentChangeTransactionTimestampAction = PaymentChangeTransactionTimestampAction.builder()
.transactionId("{transactionId}")
.timestamp(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentChangeTransactionTimestampAction with checking for non-null required valuesbuilds PaymentChangeTransactionTimestampAction without checking for non-null required valuesTimestamp of the Transaction as reported by the payment service.Unique identifier of the Transaction.of()
factory method for an instance of PaymentChangeTransactionTimestampActionBuilderof
(PaymentChangeTransactionTimestampAction template) create builder for PaymentChangeTransactionTimestampAction instancetimestamp
(ZonedDateTime timestamp) Timestamp of the Transaction as reported by the payment service.transactionId
(String transactionId) Unique identifier of the Transaction.
-
Constructor Details
-
PaymentChangeTransactionTimestampActionBuilder
public PaymentChangeTransactionTimestampActionBuilder()
-
-
Method Details
-
transactionId
Unique identifier of the Transaction.
- Parameters:
transactionId
- value to be set- Returns:
- Builder
-
timestamp
Timestamp of the Transaction as reported by the payment service.
- Parameters:
timestamp
- value to be set- Returns:
- Builder
-
getTransactionId
Unique identifier of the Transaction.
- Returns:
- transactionId
-
getTimestamp
Timestamp of the Transaction as reported by the payment service.
- Returns:
- timestamp
-
build
builds PaymentChangeTransactionTimestampAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentChangeTransactionTimestampAction>
- Returns:
- PaymentChangeTransactionTimestampAction
-
buildUnchecked
builds PaymentChangeTransactionTimestampAction without checking for non-null required values- Returns:
- PaymentChangeTransactionTimestampAction
-
of
factory method for an instance of PaymentChangeTransactionTimestampActionBuilder- Returns:
- builder
-
of
public static PaymentChangeTransactionTimestampActionBuilder of(PaymentChangeTransactionTimestampAction template) create builder for PaymentChangeTransactionTimestampAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-