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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTailoringCreatedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTailoringCreatedMessagebuilder(ProductTailoringCreatedMessage template) create builder for ProductTailoringCreatedMessage instancecopyDeep()deepCopy(ProductTailoringCreatedMessage template) factory method to create a deep copy of ProductTailoringCreatedMessage@Valid List<ProductTailoringAttribute>Attributes of the tailored Product.@Valid LocalizedStringThe description of the Product Tailoring at the time of creation.getKey()User-defined unique identifier of the Product Tailoring.@Valid LocalizedStringThe metaDescription of the Product Tailoring at the time of creation.@Valid LocalizedStringThe metaKeywords of the Product Tailoring at the time of creation.@Valid LocalizedStringThe metaTitle of the Product Tailoring at the time of creation.@Valid LocalizedStringgetName()The name of the Product Tailoring at the time of creation.@NotNull @Valid ProductReferenceReference to the Product the Product Tailoring belongs to.User-defined unique identifier of the Product this Product Tailoring belongs to.@NotNull Booleantrueif the ProductTailoring is published.@Valid LocalizedStringgetSlug()The slug of the Product Tailoring at the time of creation.@NotNull @Valid StoreKeyReferencegetStore()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 ProductTailoringCreatedMessagevoidsetAttributes(ProductTailoringAttribute... attributes) Attributes of the tailored Product.voidsetAttributes(List<ProductTailoringAttribute> attributes) Attributes of the tailored Product.voidsetDescription(LocalizedString description) The description of the Product Tailoring at the time of creation.voidUser-defined unique identifier of the Product Tailoring.voidsetMetaDescription(LocalizedString metaDescription) The metaDescription of the Product Tailoring at the time of creation.voidsetMetaKeywords(LocalizedString metaKeywords) The metaKeywords of the Product Tailoring at the time of creation.voidsetMetaTitle(LocalizedString metaTitle) The metaTitle of the Product Tailoring at the time of creation.voidsetName(LocalizedString name) The name of the Product Tailoring at the time of creation.voidsetProduct(ProductReference product) Reference to the Product the Product Tailoring belongs to.voidsetProductKey(String productKey) User-defined unique identifier of the Product this Product Tailoring belongs to.voidsetPublished(Boolean published) trueif the ProductTailoring is published.voidsetSlug(LocalizedString slug) The slug of the Product Tailoring at the time of creation.voidsetStore(StoreKeyReference store) The Store to which the Product Tailoring belongs.voidsetVariants(ProductVariantTailoring... variants) The variants of the Product Tailoring at the time of creation.voidsetVariants(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods 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
-
getAttributes
Attributes of the tailored Product. If available, these Attributes are selectively merged into the
attributesof the corresponding Product. If the Product contains an Attribute with the samename, then itsvalueis overwritten. Otherwise, the Attribute and itsvalueare added to the Product.- Returns:
- attributes
-
getPublished
trueif 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
-
setAttributes
Attributes of the tailored Product. If available, these Attributes are selectively merged into the
attributesof the corresponding Product. If the Product contains an Attribute with the samename, then itsvalueis overwritten. Otherwise, the Attribute and itsvalueare added to the Product.- Parameters:
attributes- values to be set
-
setAttributes
Attributes of the tailored Product. If available, these Attributes are selectively merged into the
attributesof the corresponding Product. If the Product contains an Attribute with the samename, then itsvalueis overwritten. Otherwise, the Attribute and itsvalueare added to the Product.- Parameters:
attributes- values to be set
-
setPublished
trueif 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
-
copyDeep
ProductTailoringCreatedMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage
-
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
-