Interface CustomerRemoveCustomerGroupAssignmentAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
Unassigns a Customer Group from a Customer. Unassigning a Customer Group generates the CustomerGroupAssignmentRemoved Message.
Example to create an instance using the builder pattern
CustomerRemoveCustomerGroupAssignmentAction customerRemoveCustomerGroupAssignmentAction = CustomerRemoveCustomerGroupAssignmentAction.builder()
.customerGroup(customerGroupBuilder -> customerGroupBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerRemoveCustomerGroupAssignmentAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerRemoveCustomerGroupAssignmentActioncreate builder for CustomerRemoveCustomerGroupAssignmentAction instancefactory method to create a deep copy of CustomerRemoveCustomerGroupAssignmentAction@NotNull @Valid CustomerGroupResourceIdentifier
Customer Group to unassign from the Customer.of()
factory methodfactory method to create a shallow copy CustomerRemoveCustomerGroupAssignmentActionvoid
setCustomerGroup
(CustomerGroupResourceIdentifier customerGroup) Customer Group to unassign from the Customer.static com.fasterxml.jackson.core.type.TypeReference<CustomerRemoveCustomerGroupAssignmentAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerRemoveCustomerGroupAssignmentAction
(Function<CustomerRemoveCustomerGroupAssignmentAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_CUSTOMER_GROUP_ASSIGNMENT
discriminator value for CustomerRemoveCustomerGroupAssignmentAction- See Also:
-
-
Method Details
-
getCustomerGroup
Customer Group to unassign from the Customer.
- Returns:
- customerGroup
-
setCustomerGroup
Customer Group to unassign from the Customer.
- Parameters:
customerGroup
- value to be set
-
of
factory method- Returns:
- instance of CustomerRemoveCustomerGroupAssignmentAction
-
of
static CustomerRemoveCustomerGroupAssignmentAction of(CustomerRemoveCustomerGroupAssignmentAction template) factory method to create a shallow copy CustomerRemoveCustomerGroupAssignmentAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerRemoveCustomerGroupAssignmentAction deepCopy(@Nullable CustomerRemoveCustomerGroupAssignmentAction template) factory method to create a deep copy of CustomerRemoveCustomerGroupAssignmentAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerRemoveCustomerGroupAssignmentAction- Returns:
- builder
-
builder
static CustomerRemoveCustomerGroupAssignmentActionBuilder builder(CustomerRemoveCustomerGroupAssignmentAction template) create builder for CustomerRemoveCustomerGroupAssignmentAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerRemoveCustomerGroupAssignmentAction
default <T> T withCustomerRemoveCustomerGroupAssignmentAction(Function<CustomerRemoveCustomerGroupAssignmentAction, 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<CustomerRemoveCustomerGroupAssignmentAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-