Class CustomerAddCustomerGroupAssignmentActionBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerAddCustomerGroupAssignmentActionBuilder
- All Implemented Interfaces:
Builder<CustomerAddCustomerGroupAssignmentAction>
public class CustomerAddCustomerGroupAssignmentActionBuilder
extends Object
implements Builder<CustomerAddCustomerGroupAssignmentAction>
CustomerAddCustomerGroupAssignmentActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerAddCustomerGroupAssignmentAction customerAddCustomerGroupAssignmentAction = CustomerAddCustomerGroupAssignmentAction.builder()
.customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerAddCustomerGroupAssignmentAction with checking for non-null required valuesbuilds CustomerAddCustomerGroupAssignmentAction without checking for non-null required valuescustomerGroupAssignment
(CustomerGroupAssignmentDraft customerGroupAssignment) Customer Group to assign to the Customer.customerGroupAssignment
(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraftBuilder> builder) Customer Group to assign to the Customer.Customer Group to assign to the Customer.of()
factory method for an instance of CustomerAddCustomerGroupAssignmentActionBuilderof
(CustomerAddCustomerGroupAssignmentAction template) create builder for CustomerAddCustomerGroupAssignmentAction instancewithCustomerGroupAssignment
(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraft> builder) Customer Group to assign to the Customer.
-
Constructor Details
-
CustomerAddCustomerGroupAssignmentActionBuilder
public CustomerAddCustomerGroupAssignmentActionBuilder()
-
-
Method Details
-
customerGroupAssignment
public CustomerAddCustomerGroupAssignmentActionBuilder customerGroupAssignment(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraftBuilder> builder) Customer Group to assign to the Customer.
- Parameters:
builder
- function to build the customerGroupAssignment value- Returns:
- Builder
-
withCustomerGroupAssignment
public CustomerAddCustomerGroupAssignmentActionBuilder withCustomerGroupAssignment(Function<CustomerGroupAssignmentDraftBuilder, CustomerGroupAssignmentDraft> builder) Customer Group to assign to the Customer.
- Parameters:
builder
- function to build the customerGroupAssignment value- Returns:
- Builder
-
customerGroupAssignment
public CustomerAddCustomerGroupAssignmentActionBuilder customerGroupAssignment(CustomerGroupAssignmentDraft customerGroupAssignment) Customer Group to assign to the Customer.
- Parameters:
customerGroupAssignment
- value to be set- Returns:
- Builder
-
getCustomerGroupAssignment
Customer Group to assign to the Customer.
- Returns:
- customerGroupAssignment
-
build
builds CustomerAddCustomerGroupAssignmentAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerAddCustomerGroupAssignmentAction>
- Returns:
- CustomerAddCustomerGroupAssignmentAction
-
buildUnchecked
builds CustomerAddCustomerGroupAssignmentAction without checking for non-null required values- Returns:
- CustomerAddCustomerGroupAssignmentAction
-
of
factory method for an instance of CustomerAddCustomerGroupAssignmentActionBuilder- Returns:
- builder
-
of
public static CustomerAddCustomerGroupAssignmentActionBuilder of(CustomerAddCustomerGroupAssignmentAction template) create builder for CustomerAddCustomerGroupAssignmentAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-