Interface BusinessUnitChangeParentUnitAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Changing the parent of a Business Unit generates a BusinessUnitParentChanged Message.
Example to create an instance using the builder pattern
BusinessUnitChangeParentUnitAction businessUnitChangeParentUnitAction = BusinessUnitChangeParentUnitAction.builder()
.parentUnit(parentUnitBuilder -> parentUnitBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitChangeParentUnitAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitChangeParentUnitActionbuilder
(BusinessUnitChangeParentUnitAction template) create builder for BusinessUnitChangeParentUnitAction instancedeepCopy
(BusinessUnitChangeParentUnitAction template) factory method to create a deep copy of BusinessUnitChangeParentUnitAction@NotNull @Valid BusinessUnitResourceIdentifier
New parent unit of the Business Unit.of()
factory methodof
(BusinessUnitChangeParentUnitAction template) factory method to create a shallow copy BusinessUnitChangeParentUnitActionvoid
setParentUnit
(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> 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
-
CHANGE_PARENT_UNIT
discriminator value for BusinessUnitChangeParentUnitAction- See Also:
-
-
Method Details
-
getParentUnit
New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.
- Returns:
- parentUnit
-
setParentUnit
New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.
- 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
-
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
-