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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetCustomerIdAction with checking for non-null required valuesbuilds CartSetCustomerIdAction without checking for non-null required valuescustomerId
(String customerId) id
of an existing Customer.id
of 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
id
of an existing Customer. If the Customer is assigned to a CustomerGroup, this update action also sets the value for thecustomerGroup
field. If empty, the update action removes the value for bothcustomerId
andcustomerGroup
.- Parameters:
customerId
- value to be set- Returns:
- Builder
-
getCustomerId
id
of an existing Customer. If the Customer is assigned to a CustomerGroup, this update action also sets the value for thecustomerGroup
field. If empty, the update action removes the value for bothcustomerId
andcustomerGroup
.- Returns:
- customerId
-
build
builds CartSetCustomerIdAction with checking for non-null required values- Specified by:
build
in 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
-