Class BusinessUnitTopLevelUnitSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitTopLevelUnitSetMessagePayload>
Example to create an instance using the builder pattern
BusinessUnitTopLevelUnitSetMessagePayload businessUnitTopLevelUnitSetMessagePayload = BusinessUnitTopLevelUnitSetMessagePayload.builder()
.topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder)
.oldTopLevelUnit(oldTopLevelUnitBuilder -> oldTopLevelUnitBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitTopLevelUnitSetMessagePayload with checking for non-null required valuesbuilds BusinessUnitTopLevelUnitSetMessagePayload without checking for non-null required valuesof()
factory method for an instance of BusinessUnitTopLevelUnitSetMessagePayloadBuilderof
(BusinessUnitTopLevelUnitSetMessagePayload template) create builder for BusinessUnitTopLevelUnitSetMessagePayload instanceoldTopLevelUnit
(BusinessUnitKeyReference oldTopLevelUnit) topLevelUnit
(BusinessUnitKeyReference topLevelUnit)
-
Constructor Details
-
BusinessUnitTopLevelUnitSetMessagePayloadBuilder
public BusinessUnitTopLevelUnitSetMessagePayloadBuilder()
-
-
Method Details
-
topLevelUnit
public BusinessUnitTopLevelUnitSetMessagePayloadBuilder topLevelUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReferenceBuilder> builder) Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.
- Parameters:
builder
- function to build the topLevelUnit value- Returns:
- Builder
-
withTopLevelUnit
public BusinessUnitTopLevelUnitSetMessagePayloadBuilder withTopLevelUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReference> builder) Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.
- Parameters:
builder
- function to build the topLevelUnit value- Returns:
- Builder
-
topLevelUnit
public BusinessUnitTopLevelUnitSetMessagePayloadBuilder topLevelUnit(BusinessUnitKeyReference topLevelUnit) Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.
- Parameters:
topLevelUnit
- value to be set- Returns:
- Builder
-
oldTopLevelUnit
public BusinessUnitTopLevelUnitSetMessagePayloadBuilder oldTopLevelUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReferenceBuilder> builder) Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.
- Parameters:
builder
- function to build the oldTopLevelUnit value- Returns:
- Builder
-
withOldTopLevelUnit
public BusinessUnitTopLevelUnitSetMessagePayloadBuilder withOldTopLevelUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReference> builder) Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.
- Parameters:
builder
- function to build the oldTopLevelUnit value- Returns:
- Builder
-
oldTopLevelUnit
public BusinessUnitTopLevelUnitSetMessagePayloadBuilder oldTopLevelUnit(BusinessUnitKeyReference oldTopLevelUnit) Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.
- Parameters:
oldTopLevelUnit
- value to be set- Returns:
- Builder
-
getTopLevelUnit
Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.
- Returns:
- topLevelUnit
-
getOldTopLevelUnit
Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.
- Returns:
- oldTopLevelUnit
-
build
builds BusinessUnitTopLevelUnitSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitTopLevelUnitSetMessagePayload>
- Returns:
- BusinessUnitTopLevelUnitSetMessagePayload
-
buildUnchecked
builds BusinessUnitTopLevelUnitSetMessagePayload without checking for non-null required values- Returns:
- BusinessUnitTopLevelUnitSetMessagePayload
-
of
factory method for an instance of BusinessUnitTopLevelUnitSetMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitTopLevelUnitSetMessagePayloadBuilder of(BusinessUnitTopLevelUnitSetMessagePayload template) create builder for BusinessUnitTopLevelUnitSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-