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