Interface BusinessUnitStatusChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Change Status update action.
Example to create an instance using the builder pattern
BusinessUnitStatusChangedMessagePayload businessUnitStatusChangedMessagePayload = BusinessUnitStatusChangedMessagePayload.builder()
.active(BusinessUnitStatus.ACTIVE)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitStatusChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitStatusChangedMessagePayloadcreate builder for BusinessUnitStatusChangedMessagePayload instancefactory method to create a deep copy of BusinessUnitStatusChangedMessagePayload@NotNull BusinessUnitStatus
Updated status of the Business Unit.of()
factory methodof
(BusinessUnitStatusChangedMessagePayload template) factory method to create a shallow copy BusinessUnitStatusChangedMessagePayloadvoid
setActive
(BusinessUnitStatus active) Updated status of the Business Unit.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitStatusChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitStatusChangedMessagePayload
(Function<BusinessUnitStatusChangedMessagePayload, 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_STATUS_CHANGED
discriminator value for BusinessUnitStatusChangedMessagePayload- See Also:
-
-
Method Details
-
getActive
Updated status of the Business Unit.
- Returns:
- active
-
setActive
Updated status of the Business Unit.
- Parameters:
active
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitStatusChangedMessagePayload
-
of
factory method to create a shallow copy BusinessUnitStatusChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitStatusChangedMessagePayload deepCopy(@Nullable BusinessUnitStatusChangedMessagePayload template) factory method to create a deep copy of BusinessUnitStatusChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitStatusChangedMessagePayload- Returns:
- builder
-
builder
static BusinessUnitStatusChangedMessagePayloadBuilder builder(BusinessUnitStatusChangedMessagePayload template) create builder for BusinessUnitStatusChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitStatusChangedMessagePayload
default <T> T withBusinessUnitStatusChangedMessagePayload(Function<BusinessUnitStatusChangedMessagePayload, 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<BusinessUnitStatusChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-