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