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