Class BusinessUnitRemoveCustomerGroupAssignmentActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitRemoveCustomerGroupAssignmentActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitRemoveCustomerGroupAssignmentAction>
public class BusinessUnitRemoveCustomerGroupAssignmentActionBuilder
extends Object
implements Builder<BusinessUnitRemoveCustomerGroupAssignmentAction>
BusinessUnitRemoveCustomerGroupAssignmentActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitRemoveCustomerGroupAssignmentAction businessUnitRemoveCustomerGroupAssignmentAction = BusinessUnitRemoveCustomerGroupAssignmentAction.builder()
.customerGroup(customerGroupBuilder -> customerGroupBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds BusinessUnitRemoveCustomerGroupAssignmentAction with checking for non-null required valuesbuilds BusinessUnitRemoveCustomerGroupAssignmentAction without checking for non-null required valuescustomerGroup(CustomerGroupResourceIdentifier customerGroup) Customer Group to unassign the Business Unit from.customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) Customer Group to unassign the Business Unit from.Customer Group to unassign the Business Unit from.of()factory method for an instance of BusinessUnitRemoveCustomerGroupAssignmentActionBuildercreate builder for BusinessUnitRemoveCustomerGroupAssignmentAction instancewithCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) Customer Group to unassign the Business Unit from.
-
Constructor Details
-
BusinessUnitRemoveCustomerGroupAssignmentActionBuilder
public BusinessUnitRemoveCustomerGroupAssignmentActionBuilder()
-
-
Method Details
-
customerGroup
public BusinessUnitRemoveCustomerGroupAssignmentActionBuilder customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) Customer Group to unassign the Business Unit from.
- Parameters:
builder- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public BusinessUnitRemoveCustomerGroupAssignmentActionBuilder withCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) Customer Group to unassign the Business Unit from.
- Parameters:
builder- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public BusinessUnitRemoveCustomerGroupAssignmentActionBuilder customerGroup(CustomerGroupResourceIdentifier customerGroup) Customer Group to unassign the Business Unit from.
- Parameters:
customerGroup- value to be set- Returns:
- Builder
-
getCustomerGroup
Customer Group to unassign the Business Unit from.
- Returns:
- customerGroup
-
build
builds BusinessUnitRemoveCustomerGroupAssignmentAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<BusinessUnitRemoveCustomerGroupAssignmentAction>- Returns:
- BusinessUnitRemoveCustomerGroupAssignmentAction
-
buildUnchecked
builds BusinessUnitRemoveCustomerGroupAssignmentAction without checking for non-null required values- Returns:
- BusinessUnitRemoveCustomerGroupAssignmentAction
-
of
factory method for an instance of BusinessUnitRemoveCustomerGroupAssignmentActionBuilder- Returns:
- builder
-
of
public static BusinessUnitRemoveCustomerGroupAssignmentActionBuilder of(BusinessUnitRemoveCustomerGroupAssignmentAction template) create builder for BusinessUnitRemoveCustomerGroupAssignmentAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-