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