Class BusinessUnitChangeParentUnitActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitChangeParentUnitActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitChangeParentUnitAction>
public class BusinessUnitChangeParentUnitActionBuilder
extends Object
implements Builder<BusinessUnitChangeParentUnitAction>
BusinessUnitChangeParentUnitActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitChangeParentUnitAction businessUnitChangeParentUnitAction = BusinessUnitChangeParentUnitAction.builder()
.parentUnit(parentUnitBuilder -> parentUnitBuilder)
.build()
-
Constructor Summary
-
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. 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 BusinessUnitChangeParentUnitActionBuilder 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 BusinessUnitChangeParentUnitActionBuilder 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 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
-