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 instancestatic ProductVariantTailoring
deepCopy
(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 Long
getId()
Theid
of the tailored ProductVariant.Images of the tailored Product Variant.static ProductVariantTailoring
of()
factory methodstatic ProductVariantTailoring
of
(ProductVariantTailoring template) factory method to create a shallow copy ProductVariantTailoringvoid
Media assets of the tailored Product Variant.void
Media assets of the tailored Product Variant.void
setAttributes
(ProductTailoringAttribute... attributes) Attributes of the tailored Product Variant.void
setAttributes
(List<ProductTailoringAttribute> attributes) Attributes of the tailored Product Variant.void
Theid
of the tailored ProductVariant.void
Images of the tailored Product Variant.void
Images of the tailored Product Variant.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantTailoring>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getId
The
id
of 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
attributes
of the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name
, itsvalue
is 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
id
of 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
attributes
of the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name
, itsvalue
is 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
attributes
of the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name
, itsvalue
is 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
-
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
-