Package com.commercetools.api.models.me
Interface MyBusinessUnitChangeParentUnitAction
- All Superinterfaces:
MyBusinessUnitUpdateAction
Changing the parent of a Business Unit generates a BusinessUnitParentChanged Message.
Example to create an instance using the builder pattern
MyBusinessUnitChangeParentUnitAction myBusinessUnitChangeParentUnitAction = MyBusinessUnitChangeParentUnitAction.builder()
.parentUnit(parentUnitBuilder -> parentUnitBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyBusinessUnitChangeParentUnitAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyBusinessUnitChangeParentUnitActionbuilder(MyBusinessUnitChangeParentUnitAction template) create builder for MyBusinessUnitChangeParentUnitAction instancecopyDeep()deepCopy(MyBusinessUnitChangeParentUnitAction template) factory method to create a deep copy of MyBusinessUnitChangeParentUnitAction@NotNull @Valid BusinessUnitResourceIdentifierNew parent unit of the Business Unit.of()factory methodof(MyBusinessUnitChangeParentUnitAction template) factory method to create a shallow copy MyBusinessUnitChangeParentUnitActionvoidsetParentUnit(BusinessUnitResourceIdentifier parentUnit) New parent unit of the Business Unit.static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitChangeParentUnitAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyBusinessUnitUpdateAction
getAction, withMyBusinessUnitUpdateAction
-
Field Details
-
CHANGE_PARENT_UNIT
discriminator value for MyBusinessUnitChangeParentUnitAction- 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 MyBusinessUnitChangeParentUnitAction
-
of
factory method to create a shallow copy MyBusinessUnitChangeParentUnitAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyBusinessUnitChangeParentUnitAction copyDeep()- Specified by:
copyDeepin interfaceMyBusinessUnitUpdateAction
-
deepCopy
@Nullable static MyBusinessUnitChangeParentUnitAction deepCopy(@Nullable MyBusinessUnitChangeParentUnitAction template) factory method to create a deep copy of MyBusinessUnitChangeParentUnitAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitChangeParentUnitAction- Returns:
- builder
-
builder
static MyBusinessUnitChangeParentUnitActionBuilder builder(MyBusinessUnitChangeParentUnitAction template) create builder for MyBusinessUnitChangeParentUnitAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitChangeParentUnitAction
default <T> T withMyBusinessUnitChangeParentUnitAction(Function<MyBusinessUnitChangeParentUnitAction, 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<MyBusinessUnitChangeParentUnitAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-