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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyBusinessUnitRemoveAssociateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyBusinessUnitRemoveAssociateActionbuilder(MyBusinessUnitRemoveAssociateAction template) create builder for MyBusinessUnitRemoveAssociateAction instancecopyDeep()deepCopy(MyBusinessUnitRemoveAssociateAction template) factory method to create a deep copy of MyBusinessUnitRemoveAssociateAction@NotNull @Valid CustomerResourceIdentifierAssociate to remove.of()factory methodof(MyBusinessUnitRemoveAssociateAction template) factory method to create a shallow copy MyBusinessUnitRemoveAssociateActionvoidsetCustomer(CustomerResourceIdentifier customer) Associate to remove.static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitRemoveAssociateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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
-
copyDeep
MyBusinessUnitRemoveAssociateAction copyDeep()- Specified by:
copyDeepin interfaceMyBusinessUnitUpdateAction
-
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
-