Interface CategoryCreatedMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Create Category request.
Example to create an instance using the builder pattern
CategoryCreatedMessagePayload categoryCreatedMessagePayload = CategoryCreatedMessagePayload.builder()
.category(categoryBuilder -> categoryBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CategoryCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CategoryCreatedMessagePayloadbuilder(CategoryCreatedMessagePayload template) create builder for CategoryCreatedMessagePayload instancecopyDeep()deepCopy(CategoryCreatedMessagePayload template) factory method to create a deep copy of CategoryCreatedMessagePayload@NotNull @Valid CategoryCategory that was created.of()factory methodof(CategoryCreatedMessagePayload template) factory method to create a shallow copy CategoryCreatedMessagePayloadvoidsetCategory(Category category) Category that was created.static com.fasterxml.jackson.core.type.TypeReference<CategoryCreatedMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CATEGORY_CREATED
discriminator value for CategoryCreatedMessagePayload- See Also:
-
-
Method Details
-
getCategory
Category that was created.
- Returns:
- category
-
setCategory
Category that was created.
- Parameters:
category- value to be set
-
of
factory method- Returns:
- instance of CategoryCreatedMessagePayload
-
of
factory method to create a shallow copy CategoryCreatedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CategoryCreatedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static CategoryCreatedMessagePayload deepCopy(@Nullable CategoryCreatedMessagePayload template) factory method to create a deep copy of CategoryCreatedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategoryCreatedMessagePayload- Returns:
- builder
-
builder
create builder for CategoryCreatedMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCategoryCreatedMessagePayload
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-