Interface ProductVariantTailoring
The tailoring of a ProductVariant.
Example to create an instance using the builder pattern
ProductVariantTailoring productVariantTailoring = ProductVariantTailoring.builder()
.id(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductVariantTailoringbuilder(ProductVariantTailoring template) create builder for ProductVariantTailoring instancecopyDeep()static ProductVariantTailoringdeepCopy(ProductVariantTailoring template) factory method to create a deep copy of ProductVariantTailoringMedia assets of the tailored Product Variant.@Valid List<ProductTailoringAttribute>Attributes of the tailored Product Variant.@NotNull LonggetId()Theidof the tailored ProductVariant.Images of the tailored Product Variant.static ProductVariantTailoringof()factory methodstatic ProductVariantTailoringof(ProductVariantTailoring template) factory method to create a shallow copy ProductVariantTailoringvoidMedia assets of the tailored Product Variant.voidMedia assets of the tailored Product Variant.voidsetAttributes(ProductTailoringAttribute... attributes) Attributes of the tailored Product Variant.voidsetAttributes(List<ProductTailoringAttribute> attributes) Attributes of the tailored Product Variant.voidTheidof the tailored ProductVariant.voidImages of the tailored Product Variant.voidImages of the tailored Product Variant.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantTailoring>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getId
The
idof the tailored ProductVariant.- Returns:
- id
-
getImages
Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.
- Returns:
- images
-
getAssets
Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.
- Returns:
- assets
-
getAttributes
Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the
attributesof the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name, itsvalueis overwritten, - otherwise the Attribute and its value are added to the ProductVariant.
- Returns:
- attributes
- If the ProductVariant contains an Attribute with the same
-
setId
The
idof the tailored ProductVariant.- Parameters:
id- value to be set
-
setImages
Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.
- Parameters:
images- values to be set
-
setImages
Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.
- Parameters:
images- values to be set
-
setAssets
Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.
- Parameters:
assets- values to be set
-
setAssets
Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.
- Parameters:
assets- values to be set
-
setAttributes
Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the
attributesof the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name, itsvalueis overwritten, - otherwise the Attribute and its value are added to the ProductVariant.
- Parameters:
attributes- values to be set
- If the ProductVariant contains an Attribute with the same
-
setAttributes
Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the
attributesof the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name, itsvalueis overwritten, - otherwise the Attribute and its value are added to the ProductVariant.
- Parameters:
attributes- values to be set
- If the ProductVariant contains an Attribute with the same
-
of
factory method- Returns:
- instance of ProductVariantTailoring
-
of
factory method to create a shallow copy ProductVariantTailoring- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductVariantTailoring copyDeep() -
deepCopy
factory method to create a deep copy of ProductVariantTailoring- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantTailoring- Returns:
- builder
-
builder
create builder for ProductVariantTailoring instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantTailoring
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-