Interface BusinessUnitShippingAddressAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Add Shipping Address Identifier update action.
Example to create an instance using the builder pattern
BusinessUnitShippingAddressAddedMessagePayload businessUnitShippingAddressAddedMessagePayload = BusinessUnitShippingAddressAddedMessagePayload.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitShippingAddressAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitShippingAddressAddedMessagePayloadcreate builder for BusinessUnitShippingAddressAddedMessagePayload instancefactory method to create a deep copy of BusinessUnitShippingAddressAddedMessagePayload@NotNull @Valid Address
The address that was added to the Business Unit as shipping address.of()
factory methodfactory method to create a shallow copy BusinessUnitShippingAddressAddedMessagePayloadvoid
setAddress
(Address address) The address that was added to the Business Unit as shipping address.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitShippingAddressAddedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitShippingAddressAddedMessagePayload
(Function<BusinessUnitShippingAddressAddedMessagePayload, T> helper) 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
-
BUSINESS_UNIT_SHIPPING_ADDRESS_ADDED
discriminator value for BusinessUnitShippingAddressAddedMessagePayload- See Also:
-
-
Method Details
-
getAddress
The address that was added to the Business Unit as shipping address.
- Returns:
- address
-
setAddress
The address that was added to the Business Unit as shipping address.
- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitShippingAddressAddedMessagePayload
-
of
static BusinessUnitShippingAddressAddedMessagePayload of(BusinessUnitShippingAddressAddedMessagePayload template) factory method to create a shallow copy BusinessUnitShippingAddressAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitShippingAddressAddedMessagePayload deepCopy(@Nullable BusinessUnitShippingAddressAddedMessagePayload template) factory method to create a deep copy of BusinessUnitShippingAddressAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitShippingAddressAddedMessagePayload- Returns:
- builder
-
builder
static BusinessUnitShippingAddressAddedMessagePayloadBuilder builder(BusinessUnitShippingAddressAddedMessagePayload template) create builder for BusinessUnitShippingAddressAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitShippingAddressAddedMessagePayload
default <T> T withBusinessUnitShippingAddressAddedMessagePayload(Function<BusinessUnitShippingAddressAddedMessagePayload, 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<BusinessUnitShippingAddressAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-