Interface BusinessUnitAddAssociateAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Adding an Associate to a Business Unit generates a BusinessUnitAssociateAdded Message.
Example to create an instance using the builder pattern
BusinessUnitAddAssociateAction businessUnitAddAssociateAction = BusinessUnitAddAssociateAction.builder()
.associate(associateBuilder -> associateBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitAddAssociateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitAddAssociateActionbuilder
(BusinessUnitAddAssociateAction template) create builder for BusinessUnitAddAssociateAction instancedeepCopy
(BusinessUnitAddAssociateAction template) factory method to create a deep copy of BusinessUnitAddAssociateAction@NotNull @Valid AssociateDraft
The Associate to add.of()
factory methodof
(BusinessUnitAddAssociateAction template) factory method to create a shallow copy BusinessUnitAddAssociateActionvoid
setAssociate
(AssociateDraft associate) The Associate to add.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitAddAssociateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
getAction, withBusinessUnitUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_ASSOCIATE
discriminator value for BusinessUnitAddAssociateAction- 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 BusinessUnitAddAssociateAction
-
of
factory method to create a shallow copy BusinessUnitAddAssociateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitAddAssociateAction deepCopy(@Nullable BusinessUnitAddAssociateAction template) factory method to create a deep copy of BusinessUnitAddAssociateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitAddAssociateAction- Returns:
- builder
-
builder
create builder for BusinessUnitAddAssociateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitAddAssociateAction
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<BusinessUnitAddAssociateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-