Class CartSetCustomerGroupActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartSetCustomerGroupActionBuilder
- All Implemented Interfaces:
Builder<CartSetCustomerGroupAction>
public class CartSetCustomerGroupActionBuilder
extends Object
implements Builder<CartSetCustomerGroupAction>
CartSetCustomerGroupActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetCustomerGroupAction cartSetCustomerGroupAction = CartSetCustomerGroupAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetCustomerGroupAction with checking for non-null required valuesbuilds CartSetCustomerGroupAction without checking for non-null required valuescustomerGroup
(CustomerGroupResourceIdentifier customerGroup) Value to set.customerGroup
(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) Value to set.Value to set.of()
factory method for an instance of CartSetCustomerGroupActionBuilderof
(CartSetCustomerGroupAction template) create builder for CartSetCustomerGroupAction instancewithCustomerGroup
(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) Value to set.
-
Constructor Details
-
CartSetCustomerGroupActionBuilder
public CartSetCustomerGroupActionBuilder()
-
-
Method Details
-
customerGroup
public CartSetCustomerGroupActionBuilder customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public CartSetCustomerGroupActionBuilder withCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public CartSetCustomerGroupActionBuilder customerGroup(@Nullable CustomerGroupResourceIdentifier customerGroup) Value to set. If empty, any existing value is removed.
- Parameters:
customerGroup
- value to be set- Returns:
- Builder
-
getCustomerGroup
Value to set. If empty, any existing value is removed.
- Returns:
- customerGroup
-
build
builds CartSetCustomerGroupAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartSetCustomerGroupAction>
- Returns:
- CartSetCustomerGroupAction
-
buildUnchecked
builds CartSetCustomerGroupAction without checking for non-null required values- Returns:
- CartSetCustomerGroupAction
-
of
factory method for an instance of CartSetCustomerGroupActionBuilder- Returns:
- builder
-
of
create builder for CartSetCustomerGroupAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-