Class BusinessUnitParentChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitParentChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitParentChangedMessagePayload>
public class BusinessUnitParentChangedMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitParentChangedMessagePayload>
BusinessUnitParentChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitParentChangedMessagePayload businessUnitParentChangedMessagePayload = BusinessUnitParentChangedMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitParentChangedMessagePayload with checking for non-null required valuesbuilds BusinessUnitParentChangedMessagePayload without checking for non-null required valuesParent unit of the Business Unit after the Change Parent Unit update action.Parent unit of the Business Unit before the Change Parent Unit update action.newParentUnit
(BusinessUnitKeyReference newParentUnit) Parent unit of the Business Unit after the Change Parent Unit update action.Parent unit of the Business Unit after the Change Parent Unit update action.of()
factory method for an instance of BusinessUnitParentChangedMessagePayloadBuilderof
(BusinessUnitParentChangedMessagePayload template) create builder for BusinessUnitParentChangedMessagePayload instanceoldParentUnit
(BusinessUnitKeyReference oldParentUnit) Parent unit of the Business Unit before the Change Parent Unit update action.Parent unit of the Business Unit before the Change Parent Unit update action.Parent unit of the Business Unit after the Change Parent Unit update action.Parent unit of the Business Unit before the Change Parent Unit update action.
-
Constructor Details
-
BusinessUnitParentChangedMessagePayloadBuilder
public BusinessUnitParentChangedMessagePayloadBuilder()
-
-
Method Details
-
oldParentUnit
public BusinessUnitParentChangedMessagePayloadBuilder oldParentUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReferenceBuilder> builder) Parent unit of the Business Unit before the Change Parent Unit update action.
- Parameters:
builder
- function to build the oldParentUnit value- Returns:
- Builder
-
withOldParentUnit
public BusinessUnitParentChangedMessagePayloadBuilder withOldParentUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReference> builder) Parent unit of the Business Unit before the Change Parent Unit update action.
- Parameters:
builder
- function to build the oldParentUnit value- Returns:
- Builder
-
oldParentUnit
public BusinessUnitParentChangedMessagePayloadBuilder oldParentUnit(@Nullable BusinessUnitKeyReference oldParentUnit) Parent unit of the Business Unit before the Change Parent Unit update action.
- Parameters:
oldParentUnit
- value to be set- Returns:
- Builder
-
newParentUnit
public BusinessUnitParentChangedMessagePayloadBuilder newParentUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReferenceBuilder> builder) Parent unit of the Business Unit after the Change Parent Unit update action.
- Parameters:
builder
- function to build the newParentUnit value- Returns:
- Builder
-
withNewParentUnit
public BusinessUnitParentChangedMessagePayloadBuilder withNewParentUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReference> builder) Parent unit of the Business Unit after the Change Parent Unit update action.
- Parameters:
builder
- function to build the newParentUnit value- Returns:
- Builder
-
newParentUnit
public BusinessUnitParentChangedMessagePayloadBuilder newParentUnit(@Nullable BusinessUnitKeyReference newParentUnit) Parent unit of the Business Unit after the Change Parent Unit update action.
- Parameters:
newParentUnit
- value to be set- Returns:
- Builder
-
getOldParentUnit
Parent unit of the Business Unit before the Change Parent Unit update action.
- Returns:
- oldParentUnit
-
getNewParentUnit
Parent unit of the Business Unit after the Change Parent Unit update action.
- Returns:
- newParentUnit
-
build
builds BusinessUnitParentChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitParentChangedMessagePayload>
- Returns:
- BusinessUnitParentChangedMessagePayload
-
buildUnchecked
builds BusinessUnitParentChangedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitParentChangedMessagePayload
-
of
factory method for an instance of BusinessUnitParentChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitParentChangedMessagePayloadBuilder of(BusinessUnitParentChangedMessagePayload template) create builder for BusinessUnitParentChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-