Class CartSetCustomerIdActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartSetCustomerIdActionBuilder
- All Implemented Interfaces:
Builder<CartSetCustomerIdAction>
public class CartSetCustomerIdActionBuilder
extends Object
implements Builder<CartSetCustomerIdAction>
CartSetCustomerIdActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetCustomerIdAction cartSetCustomerIdAction = CartSetCustomerIdAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartSetCustomerIdAction with checking for non-null required valuesbuilds CartSetCustomerIdAction without checking for non-null required valuescustomerId(String customerId) idof an existing Customer.idof an existing Customer.of()factory method for an instance of CartSetCustomerIdActionBuilderof(CartSetCustomerIdAction template) create builder for CartSetCustomerIdAction instance
-
Constructor Details
-
CartSetCustomerIdActionBuilder
public CartSetCustomerIdActionBuilder()
-
-
Method Details
-
customerId
idof an existing Customer. If the Customer is assigned to a CustomerGroup, this update action also sets the value for thecustomerGroupfield. If empty, the update action removes the value for bothcustomerIdandcustomerGroup.- Parameters:
customerId- value to be set- Returns:
- Builder
-
getCustomerId
idof an existing Customer. If the Customer is assigned to a CustomerGroup, this update action also sets the value for thecustomerGroupfield. If empty, the update action removes the value for bothcustomerIdandcustomerGroup.- Returns:
- customerId
-
build
builds CartSetCustomerIdAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CartSetCustomerIdAction>- Returns:
- CartSetCustomerIdAction
-
buildUnchecked
builds CartSetCustomerIdAction without checking for non-null required values- Returns:
- CartSetCustomerIdAction
-
of
factory method for an instance of CartSetCustomerIdActionBuilder- Returns:
- builder
-
of
create builder for CartSetCustomerIdAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-