Interface BusinessUnitAddressChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Change Address update action.
Example to create an instance using the builder pattern
BusinessUnitAddressChangedMessagePayload businessUnitAddressChangedMessagePayload = BusinessUnitAddressChangedMessagePayload.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitAddressChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitAddressChangedMessagePayloadcreate builder for BusinessUnitAddressChangedMessagePayload instancefactory method to create a deep copy of BusinessUnitAddressChangedMessagePayload@NotNull @Valid Address
Updated address of the Business Unit.of()
factory methodof
(BusinessUnitAddressChangedMessagePayload template) factory method to create a shallow copy BusinessUnitAddressChangedMessagePayloadvoid
setAddress
(Address address) Updated address of the Business Unit.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitAddressChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitAddressChangedMessagePayload
(Function<BusinessUnitAddressChangedMessagePayload, 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_ADDRESS_CHANGED
discriminator value for BusinessUnitAddressChangedMessagePayload- See Also:
-
-
Method Details
-
getAddress
Updated address of the Business Unit.
- Returns:
- address
-
setAddress
Updated address of the Business Unit.
- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitAddressChangedMessagePayload
-
of
static BusinessUnitAddressChangedMessagePayload of(BusinessUnitAddressChangedMessagePayload template) factory method to create a shallow copy BusinessUnitAddressChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitAddressChangedMessagePayload deepCopy(@Nullable BusinessUnitAddressChangedMessagePayload template) factory method to create a deep copy of BusinessUnitAddressChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitAddressChangedMessagePayload- Returns:
- builder
-
builder
static BusinessUnitAddressChangedMessagePayloadBuilder builder(BusinessUnitAddressChangedMessagePayload template) create builder for BusinessUnitAddressChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitAddressChangedMessagePayload
default <T> T withBusinessUnitAddressChangedMessagePayload(Function<BusinessUnitAddressChangedMessagePayload, 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<BusinessUnitAddressChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-