Interface ProductCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create Product request.
Example to create an instance using the builder pattern
ProductCreatedMessagePayload productCreatedMessagePayload = ProductCreatedMessagePayload.builder()
.productProjection(productProjectionBuilder -> productProjectionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductCreatedMessagePayloadbuilder
(ProductCreatedMessagePayload template) create builder for ProductCreatedMessagePayload instancestatic ProductCreatedMessagePayload
deepCopy
(ProductCreatedMessagePayload template) factory method to create a deep copy of ProductCreatedMessagePayload@NotNull @Valid ProductProjection
The staged Product Projection of the Product at the time of creation.static ProductCreatedMessagePayload
of()
factory methodstatic ProductCreatedMessagePayload
of
(ProductCreatedMessagePayload template) factory method to create a shallow copy ProductCreatedMessagePayloadvoid
setProductProjection
(ProductProjection productProjection) The staged Product Projection of the Product at the time of creation.static com.fasterxml.jackson.core.type.TypeReference<ProductCreatedMessagePayload>
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
-
PRODUCT_CREATED
discriminator value for ProductCreatedMessagePayload- See Also:
-
-
Method Details
-
getProductProjection
The staged Product Projection of the Product at the time of creation.
- Returns:
- productProjection
-
setProductProjection
The staged Product Projection of the Product at the time of creation.
- Parameters:
productProjection
- value to be set
-
of
factory method- Returns:
- instance of ProductCreatedMessagePayload
-
of
factory method to create a shallow copy ProductCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductCreatedMessagePayload deepCopy(@Nullable ProductCreatedMessagePayload template) factory method to create a deep copy of ProductCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductCreatedMessagePayload- Returns:
- builder
-
builder
create builder for ProductCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductCreatedMessagePayload
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
-