Interface CustomerAddressChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Change Address update action.
Example to create an instance using the builder pattern
CustomerAddressChangedMessagePayload customerAddressChangedMessagePayload = CustomerAddressChangedMessagePayload.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerAddressChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerAddressChangedMessagePayloadbuilder
(CustomerAddressChangedMessagePayload template) create builder for CustomerAddressChangedMessagePayload instancedeepCopy
(CustomerAddressChangedMessagePayload template) factory method to create a deep copy of CustomerAddressChangedMessagePayload@NotNull @Valid Address
Address that was set during the Change Address update action.of()
factory methodof
(CustomerAddressChangedMessagePayload template) factory method to create a shallow copy CustomerAddressChangedMessagePayloadvoid
setAddress
(Address address) Address that was set during the Change Address update action.static com.fasterxml.jackson.core.type.TypeReference<CustomerAddressChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CUSTOMER_ADDRESS_CHANGED
discriminator value for CustomerAddressChangedMessagePayload- See Also:
-
-
Method Details
-
getAddress
Address that was set during the Change Address update action.
- Returns:
- address
-
setAddress
Address that was set during the Change Address update action.
- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of CustomerAddressChangedMessagePayload
-
of
factory method to create a shallow copy CustomerAddressChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerAddressChangedMessagePayload deepCopy(@Nullable CustomerAddressChangedMessagePayload template) factory method to create a deep copy of CustomerAddressChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerAddressChangedMessagePayload- Returns:
- builder
-
builder
static CustomerAddressChangedMessagePayloadBuilder builder(CustomerAddressChangedMessagePayload template) create builder for CustomerAddressChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerAddressChangedMessagePayload
default <T> T withCustomerAddressChangedMessagePayload(Function<CustomerAddressChangedMessagePayload, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CustomerAddressChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-