Interface CategoryCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
- All Known Implementing Classes:
CategoryCreatedMessagePayloadImpl
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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CategoryCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CategoryCreatedMessagePayloadbuilder
(CategoryCreatedMessagePayload template) create builder for CategoryCreatedMessagePayload instancedeepCopy
(CategoryCreatedMessagePayload template) factory method to create a deep copy of CategoryCreatedMessagePayload@NotNull @Valid Category
Category that was created.of()
factory methodof
(CategoryCreatedMessagePayload template) factory method to create a shallow copy CategoryCreatedMessagePayloadvoid
setCategory
(Category category) Category that was created.static com.fasterxml.jackson.core.type.TypeReference<CategoryCreatedMessagePayload>
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
-
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
-
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
-