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