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