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