Class CustomerSetCustomerGroupAssignmentsActionBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerSetCustomerGroupAssignmentsActionBuilder
- All Implemented Interfaces:
Builder<CustomerSetCustomerGroupAssignmentsAction>
public class CustomerSetCustomerGroupAssignmentsActionBuilder
extends Object
implements Builder<CustomerSetCustomerGroupAssignmentsAction>
CustomerSetCustomerGroupAssignmentsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerSetCustomerGroupAssignmentsAction customerSetCustomerGroupAssignmentsAction = CustomerSetCustomerGroupAssignmentsAction.builder()
.plusCustomerGroupAssignments(customerGroupAssignmentsBuilder -> customerGroupAssignmentsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCustomerGroupAssignments
(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraft> builder) Customer Groups to assign to the Customer.build()
builds CustomerSetCustomerGroupAssignmentsAction with checking for non-null required valuesbuilds CustomerSetCustomerGroupAssignmentsAction without checking for non-null required valuescustomerGroupAssignments
(CustomerGroupAssignmentDraft... customerGroupAssignments) Customer Groups to assign to the Customer.customerGroupAssignments
(List<CustomerGroupAssignmentDraft> customerGroupAssignments) Customer Groups to assign to the Customer.Customer Groups to assign to the Customer.of()
factory method for an instance of CustomerSetCustomerGroupAssignmentsActionBuilderof
(CustomerSetCustomerGroupAssignmentsAction template) create builder for CustomerSetCustomerGroupAssignmentsAction instanceplusCustomerGroupAssignments
(CustomerGroupAssignmentDraft... customerGroupAssignments) Customer Groups to assign to the Customer.plusCustomerGroupAssignments
(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraftBuilder> builder) Customer Groups to assign to the Customer.setCustomerGroupAssignments
(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraft> builder) Customer Groups to assign to the Customer.withCustomerGroupAssignments
(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraftBuilder> builder) Customer Groups to assign to the Customer.
-
Constructor Details
-
CustomerSetCustomerGroupAssignmentsActionBuilder
public CustomerSetCustomerGroupAssignmentsActionBuilder()
-
-
Method Details
-
customerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder customerGroupAssignments(CustomerGroupAssignmentDraft... customerGroupAssignments) Customer Groups to assign to the Customer.
- Parameters:
customerGroupAssignments
- value to be set- Returns:
- Builder
-
customerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder customerGroupAssignments(List<CustomerGroupAssignmentDraft> customerGroupAssignments) Customer Groups to assign to the Customer.
- Parameters:
customerGroupAssignments
- value to be set- Returns:
- Builder
-
plusCustomerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder plusCustomerGroupAssignments(CustomerGroupAssignmentDraft... customerGroupAssignments) Customer Groups to assign to the Customer.
- Parameters:
customerGroupAssignments
- value to be set- Returns:
- Builder
-
plusCustomerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder plusCustomerGroupAssignments(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraftBuilder> builder) Customer Groups to assign to the Customer.
- Parameters:
builder
- function to build the customerGroupAssignments value- Returns:
- Builder
-
withCustomerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder withCustomerGroupAssignments(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraftBuilder> builder) Customer Groups to assign to the Customer.
- Parameters:
builder
- function to build the customerGroupAssignments value- Returns:
- Builder
-
addCustomerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder addCustomerGroupAssignments(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraft> builder) Customer Groups to assign to the Customer.
- Parameters:
builder
- function to build the customerGroupAssignments value- Returns:
- Builder
-
setCustomerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder setCustomerGroupAssignments(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraft> builder) Customer Groups to assign to the Customer.
- Parameters:
builder
- function to build the customerGroupAssignments value- Returns:
- Builder
-
getCustomerGroupAssignments
Customer Groups to assign to the Customer.
- Returns:
- customerGroupAssignments
-
build
builds CustomerSetCustomerGroupAssignmentsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerSetCustomerGroupAssignmentsAction>
- Returns:
- CustomerSetCustomerGroupAssignmentsAction
-
buildUnchecked
builds CustomerSetCustomerGroupAssignmentsAction without checking for non-null required values- Returns:
- CustomerSetCustomerGroupAssignmentsAction
-
of
factory method for an instance of CustomerSetCustomerGroupAssignmentsActionBuilder- Returns:
- builder
-
of
public static CustomerSetCustomerGroupAssignmentsActionBuilder of(CustomerSetCustomerGroupAssignmentsAction template) create builder for CustomerSetCustomerGroupAssignmentsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-