Package com.commercetools.api.models.me
Interface MyBusinessUnitChangeAssociateAction
- All Superinterfaces:
MyBusinessUnitUpdateAction
- All Known Implementing Classes:
MyBusinessUnitChangeAssociateActionImpl
Updating the Associate on a Business Unit generates the BusinessUnitAssociateChanged Message.
Example to create an instance using the builder pattern
MyBusinessUnitChangeAssociateAction myBusinessUnitChangeAssociateAction = MyBusinessUnitChangeAssociateAction.builder()
.associate(associateBuilder -> associateBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyBusinessUnitChangeAssociateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyBusinessUnitChangeAssociateActionbuilder
(MyBusinessUnitChangeAssociateAction template) create builder for MyBusinessUnitChangeAssociateAction instancedeepCopy
(MyBusinessUnitChangeAssociateAction template) factory method to create a deep copy of MyBusinessUnitChangeAssociateAction@NotNull @Valid AssociateDraft
The Associate to add.of()
factory methodof
(MyBusinessUnitChangeAssociateAction template) factory method to create a shallow copy MyBusinessUnitChangeAssociateActionvoid
setAssociate
(AssociateDraft associate) The Associate to add.static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitChangeAssociateAction>
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
-
CHANGE_ASSOCIATE
discriminator value for MyBusinessUnitChangeAssociateAction- See Also:
-
-
Method Details
-
getAssociate
The Associate to add.
- Returns:
- associate
-
setAssociate
The Associate to add.
- Parameters:
associate
- value to be set
-
of
factory method- Returns:
- instance of MyBusinessUnitChangeAssociateAction
-
of
factory method to create a shallow copy MyBusinessUnitChangeAssociateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyBusinessUnitChangeAssociateAction deepCopy(@Nullable MyBusinessUnitChangeAssociateAction template) factory method to create a deep copy of MyBusinessUnitChangeAssociateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitChangeAssociateAction- Returns:
- builder
-
builder
static MyBusinessUnitChangeAssociateActionBuilder builder(MyBusinessUnitChangeAssociateAction template) create builder for MyBusinessUnitChangeAssociateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitChangeAssociateAction
default <T> T withMyBusinessUnitChangeAssociateAction(Function<MyBusinessUnitChangeAssociateAction, 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<MyBusinessUnitChangeAssociateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-