Package com.commercetools.api.models.me
Interface MyBusinessUnitRemoveAssociateAction
- All Superinterfaces:
MyBusinessUnitUpdateAction
Removing an Associate from a Business Unit generates a BusinessUnitAssociateRemoved Message.
Example to create an instance using the builder pattern
MyBusinessUnitRemoveAssociateAction myBusinessUnitRemoveAssociateAction = MyBusinessUnitRemoveAssociateAction.builder()
.customer(customerBuilder -> customerBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyBusinessUnitRemoveAssociateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyBusinessUnitRemoveAssociateActionbuilder
(MyBusinessUnitRemoveAssociateAction template) create builder for MyBusinessUnitRemoveAssociateAction instancedeepCopy
(MyBusinessUnitRemoveAssociateAction template) factory method to create a deep copy of MyBusinessUnitRemoveAssociateAction@NotNull @Valid CustomerResourceIdentifier
Associate to remove.of()
factory methodof
(MyBusinessUnitRemoveAssociateAction template) factory method to create a shallow copy MyBusinessUnitRemoveAssociateActionvoid
setCustomer
(CustomerResourceIdentifier customer) Associate to remove.static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitRemoveAssociateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyBusinessUnitUpdateAction
getAction, withMyBusinessUnitUpdateAction
-
Field Details
-
REMOVE_ASSOCIATE
discriminator value for MyBusinessUnitRemoveAssociateAction- 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 MyBusinessUnitRemoveAssociateAction
-
of
factory method to create a shallow copy MyBusinessUnitRemoveAssociateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyBusinessUnitRemoveAssociateAction deepCopy(@Nullable MyBusinessUnitRemoveAssociateAction template) factory method to create a deep copy of MyBusinessUnitRemoveAssociateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitRemoveAssociateAction- Returns:
- builder
-
builder
static MyBusinessUnitRemoveAssociateActionBuilder builder(MyBusinessUnitRemoveAssociateAction template) create builder for MyBusinessUnitRemoveAssociateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitRemoveAssociateAction
default <T> T withMyBusinessUnitRemoveAssociateAction(Function<MyBusinessUnitRemoveAssociateAction, 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<MyBusinessUnitRemoveAssociateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-