Interface BusinessUnitSetCustomerGroupAssignmentsAction
- All Superinterfaces:
BusinessUnitUpdateAction,ResourceUpdateAction<BusinessUnitUpdateAction>
Assigns multiple Customer Groups to a Business Unit.
This action generates the BusinessUnitCustomerGroupAssignmentsSet Message.
Example to create an instance using the builder pattern
BusinessUnitSetCustomerGroupAssignmentsAction businessUnitSetCustomerGroupAssignmentsAction = BusinessUnitSetCustomerGroupAssignmentsAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitSetCustomerGroupAssignmentsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitSetCustomerGroupAssignmentsActioncreate builder for BusinessUnitSetCustomerGroupAssignmentsAction instancecopyDeep()factory method to create a deep copy of BusinessUnitSetCustomerGroupAssignmentsAction@Valid List<CustomerGroupAssignmentDraft>Customer Groups to assign the Business Unit to.of()factory methodfactory method to create a shallow copy BusinessUnitSetCustomerGroupAssignmentsActionvoidsetCustomerGroupAssignments(CustomerGroupAssignmentDraft... customerGroupAssignments) Customer Groups to assign the Business Unit to.voidsetCustomerGroupAssignments(List<CustomerGroupAssignmentDraft> customerGroupAssignments) Customer Groups to assign the Business Unit to.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitSetCustomerGroupAssignmentsAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithBusinessUnitSetCustomerGroupAssignmentsAction(Function<BusinessUnitSetCustomerGroupAssignmentsAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
getAction, withBusinessUnitUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CUSTOMER_GROUP_ASSIGNMENTS
discriminator value for BusinessUnitSetCustomerGroupAssignmentsAction- See Also:
-
-
Method Details
-
getCustomerGroupAssignments
Customer Groups to assign the Business Unit to.
- Returns:
- customerGroupAssignments
-
setCustomerGroupAssignments
Customer Groups to assign the Business Unit to.
- Parameters:
customerGroupAssignments- values to be set
-
setCustomerGroupAssignments
Customer Groups to assign the Business Unit to.
- Parameters:
customerGroupAssignments- values to be set
-
of
factory method- Returns:
- instance of BusinessUnitSetCustomerGroupAssignmentsAction
-
of
static BusinessUnitSetCustomerGroupAssignmentsAction of(BusinessUnitSetCustomerGroupAssignmentsAction template) factory method to create a shallow copy BusinessUnitSetCustomerGroupAssignmentsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeepin interfaceBusinessUnitUpdateAction
-
deepCopy
@Nullable static BusinessUnitSetCustomerGroupAssignmentsAction deepCopy(@Nullable BusinessUnitSetCustomerGroupAssignmentsAction template) factory method to create a deep copy of BusinessUnitSetCustomerGroupAssignmentsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitSetCustomerGroupAssignmentsAction- Returns:
- builder
-
builder
static BusinessUnitSetCustomerGroupAssignmentsActionBuilder builder(BusinessUnitSetCustomerGroupAssignmentsAction template) create builder for BusinessUnitSetCustomerGroupAssignmentsAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitSetCustomerGroupAssignmentsAction
default <T> T withBusinessUnitSetCustomerGroupAssignmentsAction(Function<BusinessUnitSetCustomerGroupAssignmentsAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitSetCustomerGroupAssignmentsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-