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 the Customer to.build()builds CustomerSetCustomerGroupAssignmentsAction with checking for non-null required valuesbuilds CustomerSetCustomerGroupAssignmentsAction without checking for non-null required valuescustomerGroupAssignments(CustomerGroupAssignmentDraft... customerGroupAssignments) Customer Groups to assign the Customer to.customerGroupAssignments(List<CustomerGroupAssignmentDraft> customerGroupAssignments) Customer Groups to assign the Customer to.Customer Groups to assign the Customer to.of()factory method for an instance of CustomerSetCustomerGroupAssignmentsActionBuilderof(CustomerSetCustomerGroupAssignmentsAction template) create builder for CustomerSetCustomerGroupAssignmentsAction instanceplusCustomerGroupAssignments(CustomerGroupAssignmentDraft... customerGroupAssignments) Customer Groups to assign the Customer to.plusCustomerGroupAssignments(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraftBuilder> builder) Customer Groups to assign the Customer to.setCustomerGroupAssignments(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraft> builder) Customer Groups to assign the Customer to.withCustomerGroupAssignments(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraftBuilder> builder) Customer Groups to assign the Customer to.
-
Constructor Details
-
CustomerSetCustomerGroupAssignmentsActionBuilder
public CustomerSetCustomerGroupAssignmentsActionBuilder()
-
-
Method Details
-
customerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder customerGroupAssignments(CustomerGroupAssignmentDraft... customerGroupAssignments) Customer Groups to assign the Customer to.
- Parameters:
customerGroupAssignments- value to be set- Returns:
- Builder
-
customerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder customerGroupAssignments(List<CustomerGroupAssignmentDraft> customerGroupAssignments) Customer Groups to assign the Customer to.
- Parameters:
customerGroupAssignments- value to be set- Returns:
- Builder
-
plusCustomerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder plusCustomerGroupAssignments(CustomerGroupAssignmentDraft... customerGroupAssignments) Customer Groups to assign the Customer to.
- Parameters:
customerGroupAssignments- value to be set- Returns:
- Builder
-
plusCustomerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder plusCustomerGroupAssignments(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraftBuilder> builder) Customer Groups to assign the Customer to.
- Parameters:
builder- function to build the customerGroupAssignments value- Returns:
- Builder
-
withCustomerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder withCustomerGroupAssignments(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraftBuilder> builder) Customer Groups to assign the Customer to.
- Parameters:
builder- function to build the customerGroupAssignments value- Returns:
- Builder
-
addCustomerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder addCustomerGroupAssignments(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraft> builder) Customer Groups to assign the Customer to.
- Parameters:
builder- function to build the customerGroupAssignments value- Returns:
- Builder
-
setCustomerGroupAssignments
public CustomerSetCustomerGroupAssignmentsActionBuilder setCustomerGroupAssignments(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraft> builder) Customer Groups to assign the Customer to.
- Parameters:
builder- function to build the customerGroupAssignments value- Returns:
- Builder
-
getCustomerGroupAssignments
Customer Groups to assign the Customer to.
- Returns:
- customerGroupAssignments
-
build
builds CustomerSetCustomerGroupAssignmentsAction with checking for non-null required values- Specified by:
buildin 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
-