Package com.commercetools.api.models.me
Class MyBusinessUnitChangeParentUnitActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyBusinessUnitChangeParentUnitActionBuilder
- All Implemented Interfaces:
Builder<MyBusinessUnitChangeParentUnitAction>
public class MyBusinessUnitChangeParentUnitActionBuilder
extends Object
implements Builder<MyBusinessUnitChangeParentUnitAction>
MyBusinessUnitChangeParentUnitActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyBusinessUnitChangeParentUnitAction myBusinessUnitChangeParentUnitAction = MyBusinessUnitChangeParentUnitAction.builder()
.parentUnit(parentUnitBuilder -> parentUnitBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyBusinessUnitChangeParentUnitAction with checking for non-null required valuesbuilds MyBusinessUnitChangeParentUnitAction without checking for non-null required valuesNew parent unit of the Business Unit.of()
factory method for an instance of MyBusinessUnitChangeParentUnitActionBuilderof
(MyBusinessUnitChangeParentUnitAction template) create builder for MyBusinessUnitChangeParentUnitAction 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
-
MyBusinessUnitChangeParentUnitActionBuilder
public MyBusinessUnitChangeParentUnitActionBuilder()
-
-
Method Details
-
parentUnit
public MyBusinessUnitChangeParentUnitActionBuilder parentUnit(Function<BusinessUnitResourceIdentifierBuilder, BusinessUnitResourceIdentifierBuilder> builder) New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.
- Parameters:
builder
- function to build the parentUnit value- Returns:
- Builder
-
withParentUnit
public MyBusinessUnitChangeParentUnitActionBuilder withParentUnit(Function<BusinessUnitResourceIdentifierBuilder, BusinessUnitResourceIdentifier> builder) New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.
- Parameters:
builder
- function to build the parentUnit value- Returns:
- Builder
-
parentUnit
public MyBusinessUnitChangeParentUnitActionBuilder parentUnit(BusinessUnitResourceIdentifier parentUnit) 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- Returns:
- Builder
-
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
-
build
builds MyBusinessUnitChangeParentUnitAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyBusinessUnitChangeParentUnitAction>
- Returns:
- MyBusinessUnitChangeParentUnitAction
-
buildUnchecked
builds MyBusinessUnitChangeParentUnitAction without checking for non-null required values- Returns:
- MyBusinessUnitChangeParentUnitAction
-
of
factory method for an instance of MyBusinessUnitChangeParentUnitActionBuilder- Returns:
- builder
-
of
public static MyBusinessUnitChangeParentUnitActionBuilder of(MyBusinessUnitChangeParentUnitAction template) create builder for MyBusinessUnitChangeParentUnitAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-