Interface ProductTailoringCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create Product Tailoring or Create Product Tailoring in Store request.
Example to create an instance using the builder pattern
ProductTailoringCreatedMessagePayload productTailoringCreatedMessagePayload = ProductTailoringCreatedMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.published(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTailoringCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTailoringCreatedMessagePayloadbuilder
(ProductTailoringCreatedMessagePayload template) create builder for ProductTailoringCreatedMessagePayload instancefactory method to create a deep copy of ProductTailoringCreatedMessagePayload@Valid LocalizedString
The description of the Product Tailoring at the time of creation.getKey()
User-defined unique identifier of the Product Tailoring.@Valid LocalizedString
The metaDescription of the Product Tailoring at the time of creation.@Valid LocalizedString
The metaKeywords of the Product Tailoring at the time of creation.@Valid LocalizedString
The metaTitle of the Product Tailoring at the time of creation.@Valid LocalizedString
getName()
The name of the Product Tailoring at the time of creation.@NotNull @Valid ProductReference
Reference to the Product the Product Tailoring belongs to.User-defined unique identifier of the Product this Product Tailoring belongs to.@NotNull Boolean
true
if the ProductTailoring is published.@Valid LocalizedString
getSlug()
The slug of the Product Tailoring at the time of creation.@NotNull @Valid StoreKeyReference
getStore()
The Store to which the Product Tailoring belongs.@Valid List<ProductVariantTailoring>
The variants of the Product Tailoring at the time of creation.of()
factory methodof
(ProductTailoringCreatedMessagePayload template) factory method to create a shallow copy ProductTailoringCreatedMessagePayloadvoid
setDescription
(LocalizedString description) The description of the Product Tailoring at the time of creation.void
User-defined unique identifier of the Product Tailoring.void
setMetaDescription
(LocalizedString metaDescription) The metaDescription of the Product Tailoring at the time of creation.void
setMetaKeywords
(LocalizedString metaKeywords) The metaKeywords of the Product Tailoring at the time of creation.void
setMetaTitle
(LocalizedString metaTitle) The metaTitle of the Product Tailoring at the time of creation.void
setName
(LocalizedString name) The name of the Product Tailoring at the time of creation.void
setProduct
(ProductReference product) Reference to the Product the Product Tailoring belongs to.void
setProductKey
(String productKey) User-defined unique identifier of the Product this Product Tailoring belongs to.void
setPublished
(Boolean published) true
if the ProductTailoring is published.void
setSlug
(LocalizedString slug) The slug of the Product Tailoring at the time of creation.void
setStore
(StoreKeyReference store) The Store to which the Product Tailoring belongs.void
setVariants
(ProductVariantTailoring... variants) The variants of the Product Tailoring at the time of creation.void
setVariants
(List<ProductVariantTailoring> variants) The variants of the Product Tailoring at the time of creation.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringCreatedMessagePayload>
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_TAILORING_CREATED
discriminator value for ProductTailoringCreatedMessagePayload- See Also:
-
-
Method Details
-
getKey
String getKey()User-defined unique identifier of the Product Tailoring.
- Returns:
- key
-
getStore
The Store to which the Product Tailoring belongs.
- Returns:
- store
-
getProductKey
String getProductKey()User-defined unique identifier of the Product this Product Tailoring belongs to.
- Returns:
- productKey
-
getProduct
Reference to the Product the Product Tailoring belongs to.
- Returns:
- product
-
getDescription
The description of the Product Tailoring at the time of creation.
- Returns:
- description
-
getName
The name of the Product Tailoring at the time of creation.
- Returns:
- name
-
getSlug
The slug of the Product Tailoring at the time of creation.
- Returns:
- slug
-
getMetaTitle
The metaTitle of the Product Tailoring at the time of creation.
- Returns:
- metaTitle
-
getMetaDescription
The metaDescription of the Product Tailoring at the time of creation.
- Returns:
- metaDescription
-
getMetaKeywords
The metaKeywords of the Product Tailoring at the time of creation.
- Returns:
- metaKeywords
-
getVariants
The variants of the Product Tailoring at the time of creation.
- Returns:
- variants
-
getPublished
true
if the ProductTailoring is published.- Returns:
- published
-
setKey
User-defined unique identifier of the Product Tailoring.
- Parameters:
key
- value to be set
-
setStore
The Store to which the Product Tailoring belongs.
- Parameters:
store
- value to be set
-
setProductKey
User-defined unique identifier of the Product this Product Tailoring belongs to.
- Parameters:
productKey
- value to be set
-
setProduct
Reference to the Product the Product Tailoring belongs to.
- Parameters:
product
- value to be set
-
setDescription
The description of the Product Tailoring at the time of creation.
- Parameters:
description
- value to be set
-
setName
The name of the Product Tailoring at the time of creation.
- Parameters:
name
- value to be set
-
setSlug
The slug of the Product Tailoring at the time of creation.
- Parameters:
slug
- value to be set
-
setMetaTitle
The metaTitle of the Product Tailoring at the time of creation.
- Parameters:
metaTitle
- value to be set
-
setMetaDescription
The metaDescription of the Product Tailoring at the time of creation.
- Parameters:
metaDescription
- value to be set
-
setMetaKeywords
The metaKeywords of the Product Tailoring at the time of creation.
- Parameters:
metaKeywords
- value to be set
-
setVariants
The variants of the Product Tailoring at the time of creation.
- Parameters:
variants
- values to be set
-
setVariants
The variants of the Product Tailoring at the time of creation.
- Parameters:
variants
- values to be set
-
setPublished
true
if the ProductTailoring is published.- Parameters:
published
- value to be set
-
of
factory method- Returns:
- instance of ProductTailoringCreatedMessagePayload
-
of
factory method to create a shallow copy ProductTailoringCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTailoringCreatedMessagePayload deepCopy(@Nullable ProductTailoringCreatedMessagePayload template) factory method to create a deep copy of ProductTailoringCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringCreatedMessagePayload- Returns:
- builder
-
builder
static ProductTailoringCreatedMessagePayloadBuilder builder(ProductTailoringCreatedMessagePayload template) create builder for ProductTailoringCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringCreatedMessagePayload
default <T> T withProductTailoringCreatedMessagePayload(Function<ProductTailoringCreatedMessagePayload, 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<ProductTailoringCreatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-