Interface BusinessUnitRemoveCustomerGroupAssignmentAction
- All Superinterfaces:
BusinessUnitUpdateAction,ResourceUpdateAction<BusinessUnitUpdateAction>
Unassigns a Customer Group from a Business Unit.
This action generates the BusinessUnitCustomerGroupAssignmentRemoved Message.
Example to create an instance using the builder pattern
BusinessUnitRemoveCustomerGroupAssignmentAction businessUnitRemoveCustomerGroupAssignmentAction = BusinessUnitRemoveCustomerGroupAssignmentAction.builder()
.customerGroup(customerGroupBuilder -> customerGroupBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitRemoveCustomerGroupAssignmentAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitRemoveCustomerGroupAssignmentActioncreate builder for BusinessUnitRemoveCustomerGroupAssignmentAction instancecopyDeep()factory method to create a deep copy of BusinessUnitRemoveCustomerGroupAssignmentAction@NotNull @Valid CustomerGroupResourceIdentifierCustomer Group to unassign the Business Unit from.of()factory methodfactory method to create a shallow copy BusinessUnitRemoveCustomerGroupAssignmentActionvoidsetCustomerGroup(CustomerGroupResourceIdentifier customerGroup) Customer Group to unassign the Business Unit from.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitRemoveCustomerGroupAssignmentAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithBusinessUnitRemoveCustomerGroupAssignmentAction(Function<BusinessUnitRemoveCustomerGroupAssignmentAction, 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
-
REMOVE_CUSTOMER_GROUP_ASSIGNMENT
discriminator value for BusinessUnitRemoveCustomerGroupAssignmentAction- See Also:
-
-
Method Details
-
getCustomerGroup
Customer Group to unassign the Business Unit from.
- Returns:
- customerGroup
-
setCustomerGroup
Customer Group to unassign the Business Unit from.
- Parameters:
customerGroup- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitRemoveCustomerGroupAssignmentAction
-
of
static BusinessUnitRemoveCustomerGroupAssignmentAction of(BusinessUnitRemoveCustomerGroupAssignmentAction template) factory method to create a shallow copy BusinessUnitRemoveCustomerGroupAssignmentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeepin interfaceBusinessUnitUpdateAction
-
deepCopy
@Nullable static BusinessUnitRemoveCustomerGroupAssignmentAction deepCopy(@Nullable BusinessUnitRemoveCustomerGroupAssignmentAction template) factory method to create a deep copy of BusinessUnitRemoveCustomerGroupAssignmentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitRemoveCustomerGroupAssignmentAction- Returns:
- builder
-
builder
static BusinessUnitRemoveCustomerGroupAssignmentActionBuilder builder(BusinessUnitRemoveCustomerGroupAssignmentAction template) create builder for BusinessUnitRemoveCustomerGroupAssignmentAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitRemoveCustomerGroupAssignmentAction
default <T> T withBusinessUnitRemoveCustomerGroupAssignmentAction(Function<BusinessUnitRemoveCustomerGroupAssignmentAction, 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<BusinessUnitRemoveCustomerGroupAssignmentAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-