Class BusinessUnitCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitCreatedMessagePayload>
public class BusinessUnitCreatedMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitCreatedMessagePayload>
BusinessUnitCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitCreatedMessagePayload businessUnitCreatedMessagePayload = BusinessUnitCreatedMessagePayload.builder()
.businessUnit(businessUnitBuilder -> businessUnitBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitCreatedMessagePayload with checking for non-null required valuesbuilds BusinessUnitCreatedMessagePayload without checking for non-null required valuesbusinessUnit
(BusinessUnit businessUnit) The Business Unit that was created.businessUnit
(Function<BusinessUnitBuilder, Builder<? extends BusinessUnit>> builder) The Business Unit that was created.The Business Unit that was created.of()
factory method for an instance of BusinessUnitCreatedMessagePayloadBuilderof
(BusinessUnitCreatedMessagePayload template) create builder for BusinessUnitCreatedMessagePayload instance
-
Constructor Details
-
BusinessUnitCreatedMessagePayloadBuilder
public BusinessUnitCreatedMessagePayloadBuilder()
-
-
Method Details
-
businessUnit
The Business Unit that was created.
- Parameters:
businessUnit
- value to be set- Returns:
- Builder
-
businessUnit
public BusinessUnitCreatedMessagePayloadBuilder businessUnit(Function<BusinessUnitBuilder, Builder<? extends BusinessUnit>> builder) The Business Unit that was created.
- Parameters:
builder
- function to build the businessUnit value- Returns:
- Builder
-
getBusinessUnit
The Business Unit that was created.
- Returns:
- businessUnit
-
build
builds BusinessUnitCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitCreatedMessagePayload>
- Returns:
- BusinessUnitCreatedMessagePayload
-
buildUnchecked
builds BusinessUnitCreatedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitCreatedMessagePayload
-
of
factory method for an instance of BusinessUnitCreatedMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitCreatedMessagePayloadBuilder of(BusinessUnitCreatedMessagePayload template) create builder for BusinessUnitCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-