Class CustomerSetCustomerGroupActionBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerSetCustomerGroupActionBuilder
- All Implemented Interfaces:
Builder<CustomerSetCustomerGroupAction>
public class CustomerSetCustomerGroupActionBuilder
extends Object
implements Builder<CustomerSetCustomerGroupAction>
CustomerSetCustomerGroupActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerSetCustomerGroupAction customerSetCustomerGroupAction = CustomerSetCustomerGroupAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerSetCustomerGroupAction with checking for non-null required valuesbuilds CustomerSetCustomerGroupAction 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 CustomerSetCustomerGroupActionBuilderof
(CustomerSetCustomerGroupAction template) create builder for CustomerSetCustomerGroupAction instancewithCustomerGroup
(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) Value to set.
-
Constructor Details
-
CustomerSetCustomerGroupActionBuilder
public CustomerSetCustomerGroupActionBuilder()
-
-
Method Details
-
customerGroup
public CustomerSetCustomerGroupActionBuilder 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 CustomerSetCustomerGroupActionBuilder 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 CustomerSetCustomerGroupActionBuilder 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 CustomerSetCustomerGroupAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerSetCustomerGroupAction>
- Returns:
- CustomerSetCustomerGroupAction
-
buildUnchecked
builds CustomerSetCustomerGroupAction without checking for non-null required values- Returns:
- CustomerSetCustomerGroupAction
-
of
factory method for an instance of CustomerSetCustomerGroupActionBuilder- Returns:
- builder
-
of
create builder for CustomerSetCustomerGroupAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-