Interface BusinessUnitCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create BusinessUnit request.
Example to create an instance using the builder pattern
BusinessUnitCreatedMessagePayload businessUnitCreatedMessagePayload = BusinessUnitCreatedMessagePayload.builder()
.businessUnit(businessUnitBuilder -> businessUnitBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitCreatedMessagePayloadbuilder
(BusinessUnitCreatedMessagePayload template) create builder for BusinessUnitCreatedMessagePayload instancedeepCopy
(BusinessUnitCreatedMessagePayload template) factory method to create a deep copy of BusinessUnitCreatedMessagePayload@NotNull @Valid BusinessUnit
The Business Unit that was created.of()
factory methodof
(BusinessUnitCreatedMessagePayload template) factory method to create a shallow copy BusinessUnitCreatedMessagePayloadvoid
setBusinessUnit
(BusinessUnit businessUnit) The Business Unit that was created.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitCreatedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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_CREATED
discriminator value for BusinessUnitCreatedMessagePayload- See Also:
-
-
Method Details
-
getBusinessUnit
The Business Unit that was created.
- Returns:
- businessUnit
-
setBusinessUnit
The Business Unit that was created.
- Parameters:
businessUnit
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitCreatedMessagePayload
-
of
factory method to create a shallow copy BusinessUnitCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitCreatedMessagePayload deepCopy(@Nullable BusinessUnitCreatedMessagePayload template) factory method to create a deep copy of BusinessUnitCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitCreatedMessagePayload- Returns:
- builder
-
builder
create builder for BusinessUnitCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitCreatedMessagePayload
default <T> T withBusinessUnitCreatedMessagePayload(Function<BusinessUnitCreatedMessagePayload, 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<BusinessUnitCreatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-