Interface BusinessUnitCustomTypeSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after adding a Custom Type to a Business Unit using the Set Custom Type update action.
Example to create an instance using the builder pattern
BusinessUnitCustomTypeSetMessagePayload businessUnitCustomTypeSetMessagePayload = BusinessUnitCustomTypeSetMessagePayload.builder()
.customFields(customFieldsBuilder -> customFieldsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitCustomTypeSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitCustomTypeSetMessagePayloadcreate builder for BusinessUnitCustomTypeSetMessagePayload instancefactory method to create a deep copy of BusinessUnitCustomTypeSetMessagePayload@NotNull @Valid CustomFields
The Custom Fields that were set.id
of the previous Custom Type.of()
factory methodof
(BusinessUnitCustomTypeSetMessagePayload template) factory method to create a shallow copy BusinessUnitCustomTypeSetMessagePayloadvoid
setCustomFields
(CustomFields customFields) The Custom Fields that were set.void
setOldTypeId
(String oldTypeId) id
of the previous Custom Type.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitCustomTypeSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitCustomTypeSetMessagePayload
(Function<BusinessUnitCustomTypeSetMessagePayload, 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_CUSTOM_TYPE_SET
discriminator value for BusinessUnitCustomTypeSetMessagePayload- See Also:
-
-
Method Details
-
getCustomFields
The Custom Fields that were set.
- Returns:
- customFields
-
getOldTypeId
String getOldTypeId()id
of the previous Custom Type. Absent if there was no previous Custom Type present.- Returns:
- oldTypeId
-
setCustomFields
The Custom Fields that were set.
- Parameters:
customFields
- value to be set
-
setOldTypeId
id
of the previous Custom Type. Absent if there was no previous Custom Type present.- Parameters:
oldTypeId
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitCustomTypeSetMessagePayload
-
of
factory method to create a shallow copy BusinessUnitCustomTypeSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitCustomTypeSetMessagePayload deepCopy(@Nullable BusinessUnitCustomTypeSetMessagePayload template) factory method to create a deep copy of BusinessUnitCustomTypeSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitCustomTypeSetMessagePayload- Returns:
- builder
-
builder
static BusinessUnitCustomTypeSetMessagePayloadBuilder builder(BusinessUnitCustomTypeSetMessagePayload template) create builder for BusinessUnitCustomTypeSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitCustomTypeSetMessagePayload
default <T> T withBusinessUnitCustomTypeSetMessagePayload(Function<BusinessUnitCustomTypeSetMessagePayload, 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<BusinessUnitCustomTypeSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-