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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSelectionCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSelectionCreatedMessagePayloadbuilder(ProductSelectionCreatedMessagePayload template) create builder for ProductSelectionCreatedMessagePayload instancecopyDeep()factory method to create a deep copy of ProductSelectionCreatedMessagePayload@NotNull @Valid ProductSelectionProduct Selection that was created.of()factory methodof(ProductSelectionCreatedMessagePayload template) factory method to create a shallow copy ProductSelectionCreatedMessagePayloadvoidsetProductSelection(ProductSelection productSelection) Product Selection that was created.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionCreatedMessagePayload>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
-
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
-
copyDeep
ProductSelectionCreatedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
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
-