Interface CustomerAddressRemovedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Remove Address update action.
Example to create an instance using the builder pattern
CustomerAddressRemovedMessagePayload customerAddressRemovedMessagePayload = CustomerAddressRemovedMessagePayload.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerAddressRemovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerAddressRemovedMessagePayloadbuilder
(CustomerAddressRemovedMessagePayload template) create builder for CustomerAddressRemovedMessagePayload instancedeepCopy
(CustomerAddressRemovedMessagePayload template) factory method to create a deep copy of CustomerAddressRemovedMessagePayload@NotNull @Valid Address
Address that was removed during the Remove Address update action.of()
factory methodof
(CustomerAddressRemovedMessagePayload template) factory method to create a shallow copy CustomerAddressRemovedMessagePayloadvoid
setAddress
(Address address) Address that was removed during the Remove Address update action.static com.fasterxml.jackson.core.type.TypeReference<CustomerAddressRemovedMessagePayload>
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_REMOVED
discriminator value for CustomerAddressRemovedMessagePayload- See Also:
-
-
Method Details
-
getAddress
Address that was removed during the Remove Address update action.
- Returns:
- address
-
setAddress
Address that was removed during the Remove Address update action.
- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of CustomerAddressRemovedMessagePayload
-
of
factory method to create a shallow copy CustomerAddressRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerAddressRemovedMessagePayload deepCopy(@Nullable CustomerAddressRemovedMessagePayload template) factory method to create a deep copy of CustomerAddressRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerAddressRemovedMessagePayload- Returns:
- builder
-
builder
static CustomerAddressRemovedMessagePayloadBuilder builder(CustomerAddressRemovedMessagePayload template) create builder for CustomerAddressRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerAddressRemovedMessagePayload
default <T> T withCustomerAddressRemovedMessagePayload(Function<CustomerAddressRemovedMessagePayload, 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<CustomerAddressRemovedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-