Package com.commercetools.api.models.me
Class MyCartRemovePaymentActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyCartRemovePaymentActionBuilder
- All Implemented Interfaces:
Builder<MyCartRemovePaymentAction>
public class MyCartRemovePaymentActionBuilder
extends Object
implements Builder<MyCartRemovePaymentAction>
MyCartRemovePaymentActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartRemovePaymentAction myCartRemovePaymentAction = MyCartRemovePaymentAction.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds MyCartRemovePaymentAction with checking for non-null required valuesbuilds MyCartRemovePaymentAction without checking for non-null required valuesPayment to remove from the Cart.of()factory method for an instance of MyCartRemovePaymentActionBuilderof(MyCartRemovePaymentAction template) create builder for MyCartRemovePaymentAction instancepayment(PaymentResourceIdentifier payment) Payment to remove from the Cart.Payment to remove from the Cart.Payment to remove from the Cart.
-
Constructor Details
-
MyCartRemovePaymentActionBuilder
public MyCartRemovePaymentActionBuilder()
-
-
Method Details
-
payment
public MyCartRemovePaymentActionBuilder payment(Function<PaymentResourceIdentifierBuilder, PaymentResourceIdentifierBuilder> builder) Payment to remove from the Cart.
- Parameters:
builder- function to build the payment value- Returns:
- Builder
-
withPayment
public MyCartRemovePaymentActionBuilder withPayment(Function<PaymentResourceIdentifierBuilder, PaymentResourceIdentifier> builder) Payment to remove from the Cart.
- Parameters:
builder- function to build the payment value- Returns:
- Builder
-
payment
Payment to remove from the Cart.
- Parameters:
payment- value to be set- Returns:
- Builder
-
getPayment
Payment to remove from the Cart.
- Returns:
- payment
-
build
builds MyCartRemovePaymentAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<MyCartRemovePaymentAction>- Returns:
- MyCartRemovePaymentAction
-
buildUnchecked
builds MyCartRemovePaymentAction without checking for non-null required values- Returns:
- MyCartRemovePaymentAction
-
of
factory method for an instance of MyCartRemovePaymentActionBuilder- Returns:
- builder
-
of
create builder for MyCartRemovePaymentAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-