Class PaymentSetCustomerActionBuilder
java.lang.Object
com.commercetools.api.models.payment.PaymentSetCustomerActionBuilder
- All Implemented Interfaces:
Builder<PaymentSetCustomerAction>
public class PaymentSetCustomerActionBuilder
extends Object
implements Builder<PaymentSetCustomerAction>
PaymentSetCustomerActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentSetCustomerAction paymentSetCustomerAction = PaymentSetCustomerAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentSetCustomerAction with checking for non-null required valuesbuilds PaymentSetCustomerAction without checking for non-null required valuescustomer
(CustomerResourceIdentifier customer) Value to set.Value to set.Value to set.of()
factory method for an instance of PaymentSetCustomerActionBuilderof
(PaymentSetCustomerAction template) create builder for PaymentSetCustomerAction instanceValue to set.
-
Constructor Details
-
PaymentSetCustomerActionBuilder
public PaymentSetCustomerActionBuilder()
-
-
Method Details
-
customer
public PaymentSetCustomerActionBuilder customer(Function<CustomerResourceIdentifierBuilder, CustomerResourceIdentifierBuilder> builder) Value to set. If empty, any existing reference is removed.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
public PaymentSetCustomerActionBuilder withCustomer(Function<CustomerResourceIdentifierBuilder, CustomerResourceIdentifier> builder) Value to set. If empty, any existing reference is removed.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
Value to set. If empty, any existing reference is removed.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
getCustomer
Value to set. If empty, any existing reference is removed.
- Returns:
- customer
-
build
builds PaymentSetCustomerAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentSetCustomerAction>
- Returns:
- PaymentSetCustomerAction
-
buildUnchecked
builds PaymentSetCustomerAction without checking for non-null required values- Returns:
- PaymentSetCustomerAction
-
of
factory method for an instance of PaymentSetCustomerActionBuilder- Returns:
- builder
-
of
create builder for PaymentSetCustomerAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-