Interface BusinessUnitChangeParentUnitAction
- All Superinterfaces:
BusinessUnitUpdateAction,ResourceUpdateAction<BusinessUnitUpdateAction>
This action generates a BusinessUnitParentChanged Message.
Example to create an instance using the builder pattern
BusinessUnitChangeParentUnitAction businessUnitChangeParentUnitAction = BusinessUnitChangeParentUnitAction.builder()
.parentUnit(parentUnitBuilder -> parentUnitBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitChangeParentUnitAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitChangeParentUnitActionbuilder(BusinessUnitChangeParentUnitAction template) create builder for BusinessUnitChangeParentUnitAction instancecopyDeep()deepCopy(BusinessUnitChangeParentUnitAction template) factory method to create a deep copy of BusinessUnitChangeParentUnitAction@NotNull @Valid BusinessUnitResourceIdentifierNew parent unit of the Business Unit.of()factory methodof(BusinessUnitChangeParentUnitAction template) factory method to create a shallow copy BusinessUnitChangeParentUnitActionvoidsetParentUnit(BusinessUnitResourceIdentifier parentUnit) New parent unit of the Business Unit.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitChangeParentUnitAction>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_PARENT_UNIT
discriminator value for BusinessUnitChangeParentUnitAction- See Also:
-
-
Method Details
-
getParentUnit
New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
The Business Unit
inheritedAssociatesandinheritedStoresfield values will be eventually consistent.- Returns:
- parentUnit
-
setParentUnit
New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
The Business Unit
inheritedAssociatesandinheritedStoresfield values will be eventually consistent.- Parameters:
parentUnit- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitChangeParentUnitAction
-
of
factory method to create a shallow copy BusinessUnitChangeParentUnitAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitChangeParentUnitAction copyDeep()- Specified by:
copyDeepin interfaceBusinessUnitUpdateAction
-
deepCopy
@Nullable static BusinessUnitChangeParentUnitAction deepCopy(@Nullable BusinessUnitChangeParentUnitAction template) factory method to create a deep copy of BusinessUnitChangeParentUnitAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitChangeParentUnitAction- Returns:
- builder
-
builder
static BusinessUnitChangeParentUnitActionBuilder builder(BusinessUnitChangeParentUnitAction template) create builder for BusinessUnitChangeParentUnitAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitChangeParentUnitAction
default <T> T withBusinessUnitChangeParentUnitAction(Function<BusinessUnitChangeParentUnitAction, 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<BusinessUnitChangeParentUnitAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-