Class CustomerRemoveCustomerGroupAssignmentActionBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerRemoveCustomerGroupAssignmentActionBuilder
- All Implemented Interfaces:
Builder<CustomerRemoveCustomerGroupAssignmentAction>
public class CustomerRemoveCustomerGroupAssignmentActionBuilder
extends Object
implements Builder<CustomerRemoveCustomerGroupAssignmentAction>
CustomerRemoveCustomerGroupAssignmentActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerRemoveCustomerGroupAssignmentAction customerRemoveCustomerGroupAssignmentAction = CustomerRemoveCustomerGroupAssignmentAction.builder()
.customerGroup(customerGroupBuilder -> customerGroupBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerRemoveCustomerGroupAssignmentAction with checking for non-null required valuesbuilds CustomerRemoveCustomerGroupAssignmentAction without checking for non-null required valuescustomerGroup
(CustomerGroupResourceIdentifier customerGroup) Customer Group to unassign from the Customer.customerGroup
(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) Customer Group to unassign from the Customer.Customer Group to unassign from the Customer.of()
factory method for an instance of CustomerRemoveCustomerGroupAssignmentActionBuildercreate builder for CustomerRemoveCustomerGroupAssignmentAction instancewithCustomerGroup
(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) Customer Group to unassign from the Customer.
-
Constructor Details
-
CustomerRemoveCustomerGroupAssignmentActionBuilder
public CustomerRemoveCustomerGroupAssignmentActionBuilder()
-
-
Method Details
-
customerGroup
public CustomerRemoveCustomerGroupAssignmentActionBuilder customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) Customer Group to unassign from the Customer.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public CustomerRemoveCustomerGroupAssignmentActionBuilder withCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) Customer Group to unassign from the Customer.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public CustomerRemoveCustomerGroupAssignmentActionBuilder customerGroup(CustomerGroupResourceIdentifier customerGroup) Customer Group to unassign from the Customer.
- Parameters:
customerGroup
- value to be set- Returns:
- Builder
-
getCustomerGroup
Customer Group to unassign from the Customer.
- Returns:
- customerGroup
-
build
builds CustomerRemoveCustomerGroupAssignmentAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerRemoveCustomerGroupAssignmentAction>
- Returns:
- CustomerRemoveCustomerGroupAssignmentAction
-
buildUnchecked
builds CustomerRemoveCustomerGroupAssignmentAction without checking for non-null required values- Returns:
- CustomerRemoveCustomerGroupAssignmentAction
-
of
factory method for an instance of CustomerRemoveCustomerGroupAssignmentActionBuilder- Returns:
- builder
-
of
public static CustomerRemoveCustomerGroupAssignmentActionBuilder of(CustomerRemoveCustomerGroupAssignmentAction template) create builder for CustomerRemoveCustomerGroupAssignmentAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-