Class BusinessUnitAddressAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitAddressAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitAddressAddedMessagePayload>
public class BusinessUnitAddressAddedMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitAddressAddedMessagePayload>
BusinessUnitAddressAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitAddressAddedMessagePayload businessUnitAddressAddedMessagePayload = BusinessUnitAddressAddedMessagePayload.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe address that was added to the Business Unit.address
(Function<AddressBuilder, AddressBuilder> builder) The address that was added to the Business Unit.build()
builds BusinessUnitAddressAddedMessagePayload with checking for non-null required valuesbuilds BusinessUnitAddressAddedMessagePayload without checking for non-null required valuesThe address that was added to the Business Unit.of()
factory method for an instance of BusinessUnitAddressAddedMessagePayloadBuilderof
(BusinessUnitAddressAddedMessagePayload template) create builder for BusinessUnitAddressAddedMessagePayload instancewithAddress
(Function<AddressBuilder, Address> builder) The address that was added to the Business Unit.
-
Constructor Details
-
BusinessUnitAddressAddedMessagePayloadBuilder
public BusinessUnitAddressAddedMessagePayloadBuilder()
-
-
Method Details
-
address
public BusinessUnitAddressAddedMessagePayloadBuilder address(Function<AddressBuilder, AddressBuilder> builder) The address that was added to the Business Unit.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public BusinessUnitAddressAddedMessagePayloadBuilder withAddress(Function<AddressBuilder, Address> builder) The address that was added to the Business Unit.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
The address that was added to the Business Unit.
- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
The address that was added to the Business Unit.
- Returns:
- address
-
build
builds BusinessUnitAddressAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitAddressAddedMessagePayload>
- Returns:
- BusinessUnitAddressAddedMessagePayload
-
buildUnchecked
builds BusinessUnitAddressAddedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitAddressAddedMessagePayload
-
of
factory method for an instance of BusinessUnitAddressAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitAddressAddedMessagePayloadBuilder of(BusinessUnitAddressAddedMessagePayload template) create builder for BusinessUnitAddressAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-