Class CartSetCustomerEmailActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartSetCustomerEmailActionBuilder
- All Implemented Interfaces:
Builder<CartSetCustomerEmailAction>
public class CartSetCustomerEmailActionBuilder
extends Object
implements Builder<CartSetCustomerEmailAction>
CartSetCustomerEmailActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetCustomerEmailAction cartSetCustomerEmailAction = CartSetCustomerEmailAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetCustomerEmailAction with checking for non-null required valuesbuilds CartSetCustomerEmailAction without checking for non-null required valuesValue to set.getEmail()
Value to set.of()
factory method for an instance of CartSetCustomerEmailActionBuilderof
(CartSetCustomerEmailAction template) create builder for CartSetCustomerEmailAction instance
-
Constructor Details
-
CartSetCustomerEmailActionBuilder
public CartSetCustomerEmailActionBuilder()
-
-
Method Details
-
email
Value to set. If empty, any existing value is removed.
- Parameters:
email
- value to be set- Returns:
- Builder
-
getEmail
Value to set. If empty, any existing value is removed.
- Returns:
-
build
builds CartSetCustomerEmailAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartSetCustomerEmailAction>
- Returns:
- CartSetCustomerEmailAction
-
buildUnchecked
builds CartSetCustomerEmailAction without checking for non-null required values- Returns:
- CartSetCustomerEmailAction
-
of
factory method for an instance of CartSetCustomerEmailActionBuilder- Returns:
- builder
-
of
create builder for CartSetCustomerEmailAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-