Interface ProductSelectionCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create Product Selection request.
Example to create an instance using the builder pattern
ProductSelectionCreatedMessagePayload productSelectionCreatedMessagePayload = ProductSelectionCreatedMessagePayload.builder()
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSelectionCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionCreatedMessagePayloadbuilder
(ProductSelectionCreatedMessagePayload template) create builder for ProductSelectionCreatedMessagePayload instancefactory method to create a deep copy of ProductSelectionCreatedMessagePayload@NotNull @Valid ProductSelection
Product Selection that was created.of()
factory methodof
(ProductSelectionCreatedMessagePayload template) factory method to create a shallow copy ProductSelectionCreatedMessagePayloadvoid
setProductSelection
(ProductSelection productSelection) Product Selection that was created.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionCreatedMessagePayload>
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_SELECTION_CREATED
discriminator value for ProductSelectionCreatedMessagePayload- See Also:
-
-
Method Details
-
getProductSelection
Product Selection that was created.
- Returns:
- productSelection
-
setProductSelection
Product Selection that was created.
- Parameters:
productSelection
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionCreatedMessagePayload
-
of
factory method to create a shallow copy ProductSelectionCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSelectionCreatedMessagePayload deepCopy(@Nullable ProductSelectionCreatedMessagePayload template) factory method to create a deep copy of ProductSelectionCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionCreatedMessagePayload- Returns:
- builder
-
builder
static ProductSelectionCreatedMessagePayloadBuilder builder(ProductSelectionCreatedMessagePayload template) create builder for ProductSelectionCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionCreatedMessagePayload
default <T> T withProductSelectionCreatedMessagePayload(Function<ProductSelectionCreatedMessagePayload, 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<ProductSelectionCreatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-