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