Class BusinessUnitChangeParentUnitActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitChangeParentUnitAction>
Example to create an instance using the builder pattern
BusinessUnitChangeParentUnitAction businessUnitChangeParentUnitAction = BusinessUnitChangeParentUnitAction.builder()
.parentUnit(parentUnitBuilder -> parentUnitBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitChangeParentUnitAction with checking for non-null required valuesbuilds BusinessUnitChangeParentUnitAction without checking for non-null required valuesNew parent unit of the Business Unit.of()
factory method for an instance of BusinessUnitChangeParentUnitActionBuilderof
(BusinessUnitChangeParentUnitAction template) create builder for BusinessUnitChangeParentUnitAction instanceparentUnit
(BusinessUnitResourceIdentifier parentUnit) New parent unit of the Business Unit.parentUnit
(Function<BusinessUnitResourceIdentifierBuilder, BusinessUnitResourceIdentifierBuilder> builder) New parent unit of the Business Unit.withParentUnit
(Function<BusinessUnitResourceIdentifierBuilder, BusinessUnitResourceIdentifier> builder) New parent unit of the Business Unit.
-
Constructor Details
-
BusinessUnitChangeParentUnitActionBuilder
public BusinessUnitChangeParentUnitActionBuilder()
-
-
Method Details
-
parentUnit
public BusinessUnitChangeParentUnitActionBuilder parentUnit(Function<BusinessUnitResourceIdentifierBuilder, BusinessUnitResourceIdentifierBuilder> builder) New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
The Business Unit
inheritedAssociates
andinheritedStores
field values will be eventually consistent.- Parameters:
builder
- function to build the parentUnit value- Returns:
- Builder
-
withParentUnit
public BusinessUnitChangeParentUnitActionBuilder withParentUnit(Function<BusinessUnitResourceIdentifierBuilder, BusinessUnitResourceIdentifier> builder) New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
The Business Unit
inheritedAssociates
andinheritedStores
field values will be eventually consistent.- Parameters:
builder
- function to build the parentUnit value- Returns:
- Builder
-
parentUnit
public BusinessUnitChangeParentUnitActionBuilder parentUnit(BusinessUnitResourceIdentifier parentUnit) New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
The Business Unit
inheritedAssociates
andinheritedStores
field values will be eventually consistent.- Parameters:
parentUnit
- value to be set- Returns:
- Builder
-
getParentUnit
New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
The Business Unit
inheritedAssociates
andinheritedStores
field values will be eventually consistent.- Returns:
- parentUnit
-
build
builds BusinessUnitChangeParentUnitAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitChangeParentUnitAction>
- Returns:
- BusinessUnitChangeParentUnitAction
-
buildUnchecked
builds BusinessUnitChangeParentUnitAction without checking for non-null required values- Returns:
- BusinessUnitChangeParentUnitAction
-
of
factory method for an instance of BusinessUnitChangeParentUnitActionBuilder- Returns:
- builder
-
of
public static BusinessUnitChangeParentUnitActionBuilder of(BusinessUnitChangeParentUnitAction template) create builder for BusinessUnitChangeParentUnitAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-