Interface ProductTailoringCreatedMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Create Product Tailoring or Create Product Tailoring in Store request.
Example to create an instance using the builder pattern
ProductTailoringCreatedMessage productTailoringCreatedMessage = ProductTailoringCreatedMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.published(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTailoringCreatedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTailoringCreatedMessagebuilder
(ProductTailoringCreatedMessage template) create builder for ProductTailoringCreatedMessage instancedeepCopy
(ProductTailoringCreatedMessage template) factory method to create a deep copy of ProductTailoringCreatedMessage@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
(ProductTailoringCreatedMessage template) factory method to create a shallow copy ProductTailoringCreatedMessagevoid
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<ProductTailoringCreatedMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
PRODUCT_TAILORING_CREATED
discriminator value for ProductTailoringCreatedMessage- 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 ProductTailoringCreatedMessage
-
of
factory method to create a shallow copy ProductTailoringCreatedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTailoringCreatedMessage deepCopy(@Nullable ProductTailoringCreatedMessage template) factory method to create a deep copy of ProductTailoringCreatedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringCreatedMessage- Returns:
- builder
-
builder
create builder for ProductTailoringCreatedMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringCreatedMessage
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<ProductTailoringCreatedMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-