Class CustomerAddressAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CustomerAddressAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CustomerAddressAddedMessagePayload>
public class CustomerAddressAddedMessagePayloadBuilder
extends Object
implements Builder<CustomerAddressAddedMessagePayload>
CustomerAddressAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerAddressAddedMessagePayload customerAddressAddedMessagePayload = CustomerAddressAddedMessagePayload.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAddress that was added during the Add Address update action.address
(Function<AddressBuilder, AddressBuilder> builder) Address that was added during the Add Address update action.build()
builds CustomerAddressAddedMessagePayload with checking for non-null required valuesbuilds CustomerAddressAddedMessagePayload without checking for non-null required valuesAddress that was added during the Add Address update action.of()
factory method for an instance of CustomerAddressAddedMessagePayloadBuilderof
(CustomerAddressAddedMessagePayload template) create builder for CustomerAddressAddedMessagePayload instancewithAddress
(Function<AddressBuilder, Address> builder) Address that was added during the Add Address update action.
-
Constructor Details
-
CustomerAddressAddedMessagePayloadBuilder
public CustomerAddressAddedMessagePayloadBuilder()
-
-
Method Details
-
address
public CustomerAddressAddedMessagePayloadBuilder address(Function<AddressBuilder, AddressBuilder> builder) Address that was added during the Add Address update action.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public CustomerAddressAddedMessagePayloadBuilder withAddress(Function<AddressBuilder, Address> builder) Address that was added during the Add Address update action.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Address that was added during the Add Address update action.
- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
Address that was added during the Add Address update action.
- Returns:
- address
-
build
builds CustomerAddressAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerAddressAddedMessagePayload>
- Returns:
- CustomerAddressAddedMessagePayload
-
buildUnchecked
builds CustomerAddressAddedMessagePayload without checking for non-null required values- Returns:
- CustomerAddressAddedMessagePayload
-
of
factory method for an instance of CustomerAddressAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static CustomerAddressAddedMessagePayloadBuilder of(CustomerAddressAddedMessagePayload template) create builder for CustomerAddressAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-