Interface CustomerSetCustomerGroupAssignmentsAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
Assigns multiple Customer Groups to a Customer. This action generates the CustomerGroupAssignmentsSetMessage Message.
Example to create an instance using the builder pattern
CustomerSetCustomerGroupAssignmentsAction customerSetCustomerGroupAssignmentsAction = CustomerSetCustomerGroupAssignmentsAction.builder()
.plusCustomerGroupAssignments(customerGroupAssignmentsBuilder -> customerGroupAssignmentsBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerSetCustomerGroupAssignmentsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerSetCustomerGroupAssignmentsActioncreate builder for CustomerSetCustomerGroupAssignmentsAction instancefactory method to create a deep copy of CustomerSetCustomerGroupAssignmentsAction@NotNull @Valid List<CustomerGroupAssignmentDraft>
Customer Groups to assign the Customer to.of()
factory methodof
(CustomerSetCustomerGroupAssignmentsAction template) factory method to create a shallow copy CustomerSetCustomerGroupAssignmentsActionvoid
setCustomerGroupAssignments
(CustomerGroupAssignmentDraft... customerGroupAssignments) Customer Groups to assign the Customer to.void
setCustomerGroupAssignments
(List<CustomerGroupAssignmentDraft> customerGroupAssignments) Customer Groups to assign the Customer to.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetCustomerGroupAssignmentsAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerSetCustomerGroupAssignmentsAction
(Function<CustomerSetCustomerGroupAssignmentsAction, 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
-
SET_CUSTOMER_GROUP_ASSIGNMENTS
discriminator value for CustomerSetCustomerGroupAssignmentsAction- See Also:
-
-
Method Details
-
getCustomerGroupAssignments
Customer Groups to assign the Customer to.
- Returns:
- customerGroupAssignments
-
setCustomerGroupAssignments
Customer Groups to assign the Customer to.
- Parameters:
customerGroupAssignments
- values to be set
-
setCustomerGroupAssignments
Customer Groups to assign the Customer to.
- Parameters:
customerGroupAssignments
- values to be set
-
of
factory method- Returns:
- instance of CustomerSetCustomerGroupAssignmentsAction
-
of
static CustomerSetCustomerGroupAssignmentsAction of(CustomerSetCustomerGroupAssignmentsAction template) factory method to create a shallow copy CustomerSetCustomerGroupAssignmentsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerSetCustomerGroupAssignmentsAction deepCopy(@Nullable CustomerSetCustomerGroupAssignmentsAction template) factory method to create a deep copy of CustomerSetCustomerGroupAssignmentsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetCustomerGroupAssignmentsAction- Returns:
- builder
-
builder
static CustomerSetCustomerGroupAssignmentsActionBuilder builder(CustomerSetCustomerGroupAssignmentsAction template) create builder for CustomerSetCustomerGroupAssignmentsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetCustomerGroupAssignmentsAction
default <T> T withCustomerSetCustomerGroupAssignmentsAction(Function<CustomerSetCustomerGroupAssignmentsAction, 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<CustomerSetCustomerGroupAssignmentsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-