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 SummaryConstructors
- 
Method SummaryModifier 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- 
BusinessUnitParentChangedMessagePayloadBuilderpublic BusinessUnitParentChangedMessagePayloadBuilder()
 
- 
- 
Method Details- 
oldParentUnitpublic 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
 
- 
withOldParentUnitpublic 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
 
- 
oldParentUnitpublic 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
 
- 
newParentUnitpublic 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
 
- 
withNewParentUnitpublic 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
 
- 
newParentUnitpublic 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
 
- 
getOldParentUnitParent unit of the Business Unit before the Change Parent Unit update action. - Returns:
- oldParentUnit
 
- 
getNewParentUnitParent unit of the Business Unit after the Change Parent Unit update action. - Returns:
- newParentUnit
 
- 
buildbuilds BusinessUnitParentChangedMessagePayload with checking for non-null required values- Specified by:
- buildin interface- Builder<BusinessUnitParentChangedMessagePayload>
- Returns:
- BusinessUnitParentChangedMessagePayload
 
- 
buildUncheckedbuilds BusinessUnitParentChangedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitParentChangedMessagePayload
 
- 
offactory method for an instance of BusinessUnitParentChangedMessagePayloadBuilder- Returns:
- builder
 
- 
ofpublic static BusinessUnitParentChangedMessagePayloadBuilder of(BusinessUnitParentChangedMessagePayload template) create builder for BusinessUnitParentChangedMessagePayload instance- Parameters:
- template- instance with prefilled values for the builder
- Returns:
- builder
 
 
-