Interface CustomerSetCustomerGroupAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
- All Known Implementing Classes:
CustomerSetCustomerGroupActionImpl
Setting the Customer Group of the Customer produces the CustomerGroupSet Message.
Example to create an instance using the builder pattern
CustomerSetCustomerGroupAction customerSetCustomerGroupAction = CustomerSetCustomerGroupAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerSetCustomerGroupAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerSetCustomerGroupActionbuilder
(CustomerSetCustomerGroupAction template) create builder for CustomerSetCustomerGroupAction instancedeepCopy
(CustomerSetCustomerGroupAction template) factory method to create a deep copy of CustomerSetCustomerGroupActionValue to set.of()
factory methodof
(CustomerSetCustomerGroupAction template) factory method to create a shallow copy CustomerSetCustomerGroupActionvoid
setCustomerGroup
(CustomerGroupResourceIdentifier customerGroup) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetCustomerGroupAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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
discriminator value for CustomerSetCustomerGroupAction- See Also:
-
-
Method Details
-
getCustomerGroup
Value to set. If empty, any existing value is removed.
- Returns:
- customerGroup
-
setCustomerGroup
Value to set. If empty, any existing value is removed.
- Parameters:
customerGroup
- value to be set
-
of
factory method- Returns:
- instance of CustomerSetCustomerGroupAction
-
of
factory method to create a shallow copy CustomerSetCustomerGroupAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerSetCustomerGroupAction deepCopy(@Nullable CustomerSetCustomerGroupAction template) factory method to create a deep copy of CustomerSetCustomerGroupAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetCustomerGroupAction- Returns:
- builder
-
builder
create builder for CustomerSetCustomerGroupAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetCustomerGroupAction
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<CustomerSetCustomerGroupAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-