Interface CustomerAddCustomerGroupAssignmentAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
Adds a single Customer Group to the Customer's list of customerGroupAssignments
. Adding a Customer Group generates the CustomerGroupAssignmentAdded Message.
Example to create an instance using the builder pattern
CustomerAddCustomerGroupAssignmentAction customerAddCustomerGroupAssignmentAction = CustomerAddCustomerGroupAssignmentAction.builder()
.customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerAddCustomerGroupAssignmentAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerAddCustomerGroupAssignmentActioncreate builder for CustomerAddCustomerGroupAssignmentAction instancefactory method to create a deep copy of CustomerAddCustomerGroupAssignmentAction@NotNull @Valid CustomerGroupAssignmentDraft
Customer Group to assign to the Customer.of()
factory methodof
(CustomerAddCustomerGroupAssignmentAction template) factory method to create a shallow copy CustomerAddCustomerGroupAssignmentActionvoid
setCustomerGroupAssignment
(CustomerGroupAssignmentDraft customerGroupAssignment) Customer Group to assign to the Customer.static com.fasterxml.jackson.core.type.TypeReference<CustomerAddCustomerGroupAssignmentAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerAddCustomerGroupAssignmentAction
(Function<CustomerAddCustomerGroupAssignmentAction, 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
-
ADD_CUSTOMER_GROUP_ASSIGNMENT
discriminator value for CustomerAddCustomerGroupAssignmentAction- See Also:
-
-
Method Details
-
getCustomerGroupAssignment
Customer Group to assign to the Customer.
- Returns:
- customerGroupAssignment
-
setCustomerGroupAssignment
Customer Group to assign to the Customer.
- Parameters:
customerGroupAssignment
- value to be set
-
of
factory method- Returns:
- instance of CustomerAddCustomerGroupAssignmentAction
-
of
static CustomerAddCustomerGroupAssignmentAction of(CustomerAddCustomerGroupAssignmentAction template) factory method to create a shallow copy CustomerAddCustomerGroupAssignmentAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerAddCustomerGroupAssignmentAction deepCopy(@Nullable CustomerAddCustomerGroupAssignmentAction template) factory method to create a deep copy of CustomerAddCustomerGroupAssignmentAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerAddCustomerGroupAssignmentAction- Returns:
- builder
-
builder
static CustomerAddCustomerGroupAssignmentActionBuilder builder(CustomerAddCustomerGroupAssignmentAction template) create builder for CustomerAddCustomerGroupAssignmentAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerAddCustomerGroupAssignmentAction
default <T> T withCustomerAddCustomerGroupAssignmentAction(Function<CustomerAddCustomerGroupAssignmentAction, 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<CustomerAddCustomerGroupAssignmentAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-