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