Class PaymentChangeAmountPlannedActionBuilder
java.lang.Object
com.commercetools.api.models.payment.PaymentChangeAmountPlannedActionBuilder
- All Implemented Interfaces:
Builder<PaymentChangeAmountPlannedAction>
public class PaymentChangeAmountPlannedActionBuilder
extends Object
implements Builder<PaymentChangeAmountPlannedAction>
PaymentChangeAmountPlannedActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentChangeAmountPlannedAction paymentChangeAmountPlannedAction = PaymentChangeAmountPlannedAction.builder()
.amount(amountBuilder -> amountBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionNew value to set.amount
(Function<MoneyBuilder, MoneyBuilder> builder) New value to set.build()
builds PaymentChangeAmountPlannedAction with checking for non-null required valuesbuilds PaymentChangeAmountPlannedAction without checking for non-null required valuesNew value to set.of()
factory method for an instance of PaymentChangeAmountPlannedActionBuilderof
(PaymentChangeAmountPlannedAction template) create builder for PaymentChangeAmountPlannedAction instancewithAmount
(Function<MoneyBuilder, Money> builder) New value to set.
-
Constructor Details
-
PaymentChangeAmountPlannedActionBuilder
public PaymentChangeAmountPlannedActionBuilder()
-
-
Method Details
-
amount
New value to set.
- Parameters:
builder
- function to build the amount value- Returns:
- Builder
-
withAmount
New value to set.
- Parameters:
builder
- function to build the amount value- Returns:
- Builder
-
amount
New value to set.
- Parameters:
amount
- value to be set- Returns:
- Builder
-
getAmount
New value to set.
- Returns:
- amount
-
build
builds PaymentChangeAmountPlannedAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentChangeAmountPlannedAction>
- Returns:
- PaymentChangeAmountPlannedAction
-
buildUnchecked
builds PaymentChangeAmountPlannedAction without checking for non-null required values- Returns:
- PaymentChangeAmountPlannedAction
-
of
factory method for an instance of PaymentChangeAmountPlannedActionBuilder- Returns:
- builder
-
of
create builder for PaymentChangeAmountPlannedAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-