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