Interface CustomerAddCustomerGroupAssignmentAction
- All Superinterfaces:
CustomerUpdateAction,ResourceUpdateAction<CustomerUpdateAction>
Assigns a Customer Group to a Customer. This action 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 Stringdiscriminator value for CustomerAddCustomerGroupAssignmentAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerAddCustomerGroupAssignmentActioncreate builder for CustomerAddCustomerGroupAssignmentAction instancecopyDeep()factory method to create a deep copy of CustomerAddCustomerGroupAssignmentAction@NotNull @Valid CustomerGroupAssignmentDraftCustomer Group to assign the Customer to.of()factory methodof(CustomerAddCustomerGroupAssignmentAction template) factory method to create a shallow copy CustomerAddCustomerGroupAssignmentActionvoidsetCustomerGroupAssignment(CustomerGroupAssignmentDraft customerGroupAssignment) Customer Group to assign the Customer to.static com.fasterxml.jackson.core.type.TypeReference<CustomerAddCustomerGroupAssignmentAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCustomerAddCustomerGroupAssignmentAction(Function<CustomerAddCustomerGroupAssignmentAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateActionMethods 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 the Customer to.
- Returns:
- customerGroupAssignment
-
setCustomerGroupAssignment
Customer Group to assign the Customer to.
- 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
-
copyDeep
CustomerAddCustomerGroupAssignmentAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
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
-