Interface CustomerShippingAddressAddedMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Add Shipping Address ID update action.
Example to create an instance using the builder pattern
CustomerShippingAddressAddedMessagePayload customerShippingAddressAddedMessagePayload = CustomerShippingAddressAddedMessagePayload.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerShippingAddressAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerShippingAddressAddedMessagePayloadcreate builder for CustomerShippingAddressAddedMessagePayload instancecopyDeep()factory method to create a deep copy of CustomerShippingAddressAddedMessagePayload@NotNull @Valid AddressThe address that was added to the CustomershippingAddressIds.of()factory methodof(CustomerShippingAddressAddedMessagePayload template) factory method to create a shallow copy CustomerShippingAddressAddedMessagePayloadvoidsetAddress(Address address) The address that was added to the CustomershippingAddressIds.static com.fasterxml.jackson.core.type.TypeReference<CustomerShippingAddressAddedMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCustomerShippingAddressAddedMessagePayload(Function<CustomerShippingAddressAddedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CUSTOMER_SHIPPING_ADDRESS_ADDED
discriminator value for CustomerShippingAddressAddedMessagePayload- See Also:
-
-
Method Details
-
getAddress
The address that was added to the Customer
shippingAddressIds.- Returns:
- address
-
setAddress
The address that was added to the Customer
shippingAddressIds.- Parameters:
address- value to be set
-
of
factory method- Returns:
- instance of CustomerShippingAddressAddedMessagePayload
-
of
static CustomerShippingAddressAddedMessagePayload of(CustomerShippingAddressAddedMessagePayload template) factory method to create a shallow copy CustomerShippingAddressAddedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerShippingAddressAddedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static CustomerShippingAddressAddedMessagePayload deepCopy(@Nullable CustomerShippingAddressAddedMessagePayload template) factory method to create a deep copy of CustomerShippingAddressAddedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerShippingAddressAddedMessagePayload- Returns:
- builder
-
builder
static CustomerShippingAddressAddedMessagePayloadBuilder builder(CustomerShippingAddressAddedMessagePayload template) create builder for CustomerShippingAddressAddedMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerShippingAddressAddedMessagePayload
default <T> T withCustomerShippingAddressAddedMessagePayload(Function<CustomerShippingAddressAddedMessagePayload, 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<CustomerShippingAddressAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-