Interface BusinessUnitRemoveAssociateAction
- All Superinterfaces:
BusinessUnitUpdateAction,ResourceUpdateAction<BusinessUnitUpdateAction>
Removing an Associate from a Business Unit generates a BusinessUnitAssociateRemoved Message.
Example to create an instance using the builder pattern
BusinessUnitRemoveAssociateAction businessUnitRemoveAssociateAction = BusinessUnitRemoveAssociateAction.builder()
.customer(customerBuilder -> customerBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitRemoveAssociateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitRemoveAssociateActionbuilder(BusinessUnitRemoveAssociateAction template) create builder for BusinessUnitRemoveAssociateAction instancecopyDeep()deepCopy(BusinessUnitRemoveAssociateAction template) factory method to create a deep copy of BusinessUnitRemoveAssociateAction@NotNull @Valid CustomerResourceIdentifierAssociate to remove.of()factory methodof(BusinessUnitRemoveAssociateAction template) factory method to create a shallow copy BusinessUnitRemoveAssociateActionvoidsetCustomer(CustomerResourceIdentifier customer) Associate to remove.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitRemoveAssociateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
getAction, withBusinessUnitUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_ASSOCIATE
discriminator value for BusinessUnitRemoveAssociateAction- See Also:
-
-
Method Details
-
getCustomer
Associate to remove.
- Returns:
- customer
-
setCustomer
Associate to remove.
- Parameters:
customer- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitRemoveAssociateAction
-
of
factory method to create a shallow copy BusinessUnitRemoveAssociateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitRemoveAssociateAction copyDeep()- Specified by:
copyDeepin interfaceBusinessUnitUpdateAction
-
deepCopy
@Nullable static BusinessUnitRemoveAssociateAction deepCopy(@Nullable BusinessUnitRemoveAssociateAction template) factory method to create a deep copy of BusinessUnitRemoveAssociateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitRemoveAssociateAction- Returns:
- builder
-
builder
create builder for BusinessUnitRemoveAssociateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitRemoveAssociateAction
default <T> T withBusinessUnitRemoveAssociateAction(Function<BusinessUnitRemoveAssociateAction, 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<BusinessUnitRemoveAssociateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-