Package com.commercetools.api.models.me
Class MyPaymentChangeAmountPlannedActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyPaymentChangeAmountPlannedActionBuilder
- All Implemented Interfaces:
Builder<MyPaymentChangeAmountPlannedAction>
public class MyPaymentChangeAmountPlannedActionBuilder
extends Object
implements Builder<MyPaymentChangeAmountPlannedAction>
MyPaymentChangeAmountPlannedActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyPaymentChangeAmountPlannedAction myPaymentChangeAmountPlannedAction = MyPaymentChangeAmountPlannedAction.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 MyPaymentChangeAmountPlannedAction with checking for non-null required valuesbuilds MyPaymentChangeAmountPlannedAction without checking for non-null required valuesNew value to set.of()
factory method for an instance of MyPaymentChangeAmountPlannedActionBuilderof
(MyPaymentChangeAmountPlannedAction template) create builder for MyPaymentChangeAmountPlannedAction instancewithAmount
(Function<MoneyBuilder, Money> builder) New value to set.
-
Constructor Details
-
MyPaymentChangeAmountPlannedActionBuilder
public MyPaymentChangeAmountPlannedActionBuilder()
-
-
Method Details
-
amount
public MyPaymentChangeAmountPlannedActionBuilder amount(Function<MoneyBuilder, MoneyBuilder> builder) 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 MyPaymentChangeAmountPlannedAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyPaymentChangeAmountPlannedAction>
- Returns:
- MyPaymentChangeAmountPlannedAction
-
buildUnchecked
builds MyPaymentChangeAmountPlannedAction without checking for non-null required values- Returns:
- MyPaymentChangeAmountPlannedAction
-
of
factory method for an instance of MyPaymentChangeAmountPlannedActionBuilder- Returns:
- builder
-
of
public static MyPaymentChangeAmountPlannedActionBuilder of(MyPaymentChangeAmountPlannedAction template) create builder for MyPaymentChangeAmountPlannedAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-