Interface BusinessUnitChangeAssociateAction
- All Superinterfaces:
BusinessUnitUpdateAction,ResourceUpdateAction<BusinessUnitUpdateAction>
Updating the Associate on a Business Unit generates the BusinessUnitAssociateChanged Message.
Example to create an instance using the builder pattern
BusinessUnitChangeAssociateAction businessUnitChangeAssociateAction = BusinessUnitChangeAssociateAction.builder()
.associate(associateBuilder -> associateBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitChangeAssociateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitChangeAssociateActionbuilder(BusinessUnitChangeAssociateAction template) create builder for BusinessUnitChangeAssociateAction instancecopyDeep()deepCopy(BusinessUnitChangeAssociateAction template) factory method to create a deep copy of BusinessUnitChangeAssociateAction@NotNull @Valid AssociateDraftNew version of an existing Associate.of()factory methodof(BusinessUnitChangeAssociateAction template) factory method to create a shallow copy BusinessUnitChangeAssociateActionvoidsetAssociate(AssociateDraft associate) New version of an existing Associate.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitChangeAssociateAction>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
-
CHANGE_ASSOCIATE
discriminator value for BusinessUnitChangeAssociateAction- See Also:
-
-
Method Details
-
getAssociate
New version of an existing Associate.
- Returns:
- associate
-
setAssociate
New version of an existing Associate.
- Parameters:
associate- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitChangeAssociateAction
-
of
factory method to create a shallow copy BusinessUnitChangeAssociateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitChangeAssociateAction copyDeep()- Specified by:
copyDeepin interfaceBusinessUnitUpdateAction
-
deepCopy
@Nullable static BusinessUnitChangeAssociateAction deepCopy(@Nullable BusinessUnitChangeAssociateAction template) factory method to create a deep copy of BusinessUnitChangeAssociateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitChangeAssociateAction- Returns:
- builder
-
builder
create builder for BusinessUnitChangeAssociateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitChangeAssociateAction
default <T> T withBusinessUnitChangeAssociateAction(Function<BusinessUnitChangeAssociateAction, 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<BusinessUnitChangeAssociateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-