Interface BusinessUnitAddCustomerGroupAssignmentAction
- All Superinterfaces:
BusinessUnitUpdateAction,ResourceUpdateAction<BusinessUnitUpdateAction>
Assigns a Customer Group to a Business Unit.
This action generates the BusinessUnitCustomerGroupAssignmentAdded Message.
Example to create an instance using the builder pattern
BusinessUnitAddCustomerGroupAssignmentAction businessUnitAddCustomerGroupAssignmentAction = BusinessUnitAddCustomerGroupAssignmentAction.builder()
.customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitAddCustomerGroupAssignmentAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitAddCustomerGroupAssignmentActioncreate builder for BusinessUnitAddCustomerGroupAssignmentAction instancecopyDeep()factory method to create a deep copy of BusinessUnitAddCustomerGroupAssignmentAction@NotNull @Valid CustomerGroupAssignmentDraftCustomer Group to assign the Business Unit to.of()factory methodfactory method to create a shallow copy BusinessUnitAddCustomerGroupAssignmentActionvoidsetCustomerGroupAssignment(CustomerGroupAssignmentDraft customerGroupAssignment) Customer Group to assign the Business Unit to.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitAddCustomerGroupAssignmentAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithBusinessUnitAddCustomerGroupAssignmentAction(Function<BusinessUnitAddCustomerGroupAssignmentAction, 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
-
ADD_CUSTOMER_GROUP_ASSIGNMENT
discriminator value for BusinessUnitAddCustomerGroupAssignmentAction- See Also:
-
-
Method Details
-
getCustomerGroupAssignment
Customer Group to assign the Business Unit to.
- Returns:
- customerGroupAssignment
-
setCustomerGroupAssignment
Customer Group to assign the Business Unit to.
- Parameters:
customerGroupAssignment- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitAddCustomerGroupAssignmentAction
-
of
static BusinessUnitAddCustomerGroupAssignmentAction of(BusinessUnitAddCustomerGroupAssignmentAction template) factory method to create a shallow copy BusinessUnitAddCustomerGroupAssignmentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitAddCustomerGroupAssignmentAction copyDeep()- Specified by:
copyDeepin interfaceBusinessUnitUpdateAction
-
deepCopy
@Nullable static BusinessUnitAddCustomerGroupAssignmentAction deepCopy(@Nullable BusinessUnitAddCustomerGroupAssignmentAction template) factory method to create a deep copy of BusinessUnitAddCustomerGroupAssignmentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitAddCustomerGroupAssignmentAction- Returns:
- builder
-
builder
static BusinessUnitAddCustomerGroupAssignmentActionBuilder builder(BusinessUnitAddCustomerGroupAssignmentAction template) create builder for BusinessUnitAddCustomerGroupAssignmentAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitAddCustomerGroupAssignmentAction
default <T> T withBusinessUnitAddCustomerGroupAssignmentAction(Function<BusinessUnitAddCustomerGroupAssignmentAction, 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<BusinessUnitAddCustomerGroupAssignmentAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-