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