Class BusinessUnitTypeSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitTypeSetMessagePayload>
Example to create an instance using the builder pattern
BusinessUnitTypeSetMessagePayload businessUnitTypeSetMessagePayload = BusinessUnitTypeSetMessagePayload.builder()
.unitType(BusinessUnitType.COMPANY)
.oldUnitType(BusinessUnitType.COMPANY)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitTypeSetMessagePayload with checking for non-null required valuesbuilds BusinessUnitTypeSetMessagePayload without checking for non-null required valuesParent unit of the Business Unit before the Set Unit Type update action.Type of the Business Unit before the Set Unit Type update action.Parent unit of the Business Unit after the Set Unit Type update action.Type of the Business Unit after the Set Unit Type update action.of()
factory method for an instance of BusinessUnitTypeSetMessagePayloadBuilderof
(BusinessUnitTypeSetMessagePayload template) create builder for BusinessUnitTypeSetMessagePayload instanceoldParentUnit
(BusinessUnitKeyReference oldParentUnit) Parent unit of the Business Unit before the Set Unit Type update action.Parent unit of the Business Unit before the Set Unit Type update action.oldUnitType
(BusinessUnitType oldUnitType) Type of the Business Unit before the Set Unit Type update action.parentUnit
(BusinessUnitKeyReference parentUnit) Parent unit of the Business Unit after the Set Unit Type update action.Parent unit of the Business Unit after the Set Unit Type update action.unitType
(BusinessUnitType unitType) Type of the Business Unit after the Set Unit Type update action.Parent unit of the Business Unit before the Set Unit Type update action.Parent unit of the Business Unit after the Set Unit Type update action.
-
Constructor Details
-
BusinessUnitTypeSetMessagePayloadBuilder
public BusinessUnitTypeSetMessagePayloadBuilder()
-
-
Method Details
-
parentUnit
public BusinessUnitTypeSetMessagePayloadBuilder parentUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReferenceBuilder> builder) Parent unit of the Business Unit after the Set Unit Type update action.
- Parameters:
builder
- function to build the parentUnit value- Returns:
- Builder
-
withParentUnit
public BusinessUnitTypeSetMessagePayloadBuilder withParentUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReference> builder) Parent unit of the Business Unit after the Set Unit Type update action.
- Parameters:
builder
- function to build the parentUnit value- Returns:
- Builder
-
parentUnit
public BusinessUnitTypeSetMessagePayloadBuilder parentUnit(@Nullable BusinessUnitKeyReference parentUnit) Parent unit of the Business Unit after the Set Unit Type update action.
- Parameters:
parentUnit
- value to be set- Returns:
- Builder
-
oldParentUnit
public BusinessUnitTypeSetMessagePayloadBuilder oldParentUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReferenceBuilder> builder) Parent unit of the Business Unit before the Set Unit Type update action.
- Parameters:
builder
- function to build the oldParentUnit value- Returns:
- Builder
-
withOldParentUnit
public BusinessUnitTypeSetMessagePayloadBuilder withOldParentUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReference> builder) Parent unit of the Business Unit before the Set Unit Type update action.
- Parameters:
builder
- function to build the oldParentUnit value- Returns:
- Builder
-
oldParentUnit
public BusinessUnitTypeSetMessagePayloadBuilder oldParentUnit(@Nullable BusinessUnitKeyReference oldParentUnit) Parent unit of the Business Unit before the Set Unit Type update action.
- Parameters:
oldParentUnit
- value to be set- Returns:
- Builder
-
unitType
Type of the Business Unit after the Set Unit Type update action.
- Parameters:
unitType
- value to be set- Returns:
- Builder
-
oldUnitType
Type of the Business Unit before the Set Unit Type update action.
- Parameters:
oldUnitType
- value to be set- Returns:
- Builder
-
getParentUnit
Parent unit of the Business Unit after the Set Unit Type update action.
- Returns:
- parentUnit
-
getOldParentUnit
Parent unit of the Business Unit before the Set Unit Type update action.
- Returns:
- oldParentUnit
-
getUnitType
Type of the Business Unit after the Set Unit Type update action.
- Returns:
- unitType
-
getOldUnitType
Type of the Business Unit before the Set Unit Type update action.
- Returns:
- oldUnitType
-
build
builds BusinessUnitTypeSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitTypeSetMessagePayload>
- Returns:
- BusinessUnitTypeSetMessagePayload
-
buildUnchecked
builds BusinessUnitTypeSetMessagePayload without checking for non-null required values- Returns:
- BusinessUnitTypeSetMessagePayload
-
of
factory method for an instance of BusinessUnitTypeSetMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitTypeSetMessagePayloadBuilder of(BusinessUnitTypeSetMessagePayload template) create builder for BusinessUnitTypeSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-