Interface BusinessUnitSetAssociatesAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Changes the Associates of a Business Unit, generates a BusinessUnitAssociatesSet Message.
Example to create an instance using the builder pattern
BusinessUnitSetAssociatesAction businessUnitSetAssociatesAction = BusinessUnitSetAssociatesAction.builder()
.plusAssociates(associatesBuilder -> associatesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitSetAssociatesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitSetAssociatesActionbuilder
(BusinessUnitSetAssociatesAction template) create builder for BusinessUnitSetAssociatesAction instancedeepCopy
(BusinessUnitSetAssociatesAction template) factory method to create a deep copy of BusinessUnitSetAssociatesAction@NotNull @Valid List<AssociateDraft>
The new list of Associates.of()
factory methodof
(BusinessUnitSetAssociatesAction template) factory method to create a shallow copy BusinessUnitSetAssociatesActionvoid
setAssociates
(AssociateDraft... associates) The new list of Associates.void
setAssociates
(List<AssociateDraft> associates) The new list of Associates.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitSetAssociatesAction>
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
-
SET_ASSOCIATES
discriminator value for BusinessUnitSetAssociatesAction- See Also:
-
-
Method Details
-
getAssociates
The new list of Associates. If not provided, any existing list is removed.
- Returns:
- associates
-
setAssociates
The new list of Associates. If not provided, any existing list is removed.
- Parameters:
associates
- values to be set
-
setAssociates
The new list of Associates. If not provided, any existing list is removed.
- Parameters:
associates
- values to be set
-
of
factory method- Returns:
- instance of BusinessUnitSetAssociatesAction
-
of
factory method to create a shallow copy BusinessUnitSetAssociatesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitSetAssociatesAction deepCopy(@Nullable BusinessUnitSetAssociatesAction template) factory method to create a deep copy of BusinessUnitSetAssociatesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitSetAssociatesAction- Returns:
- builder
-
builder
create builder for BusinessUnitSetAssociatesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitSetAssociatesAction
default <T> T withBusinessUnitSetAssociatesAction(Function<BusinessUnitSetAssociatesAction, 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<BusinessUnitSetAssociatesAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-