Interface ProductVariantTailoringDraft
- All Superinterfaces:
Draft<ProductVariantTailoringDraft>
Either id
or sku
is required to reference a ProductVariant that exists.
Example to create an instance using the builder pattern
ProductVariantTailoringDraft productVariantTailoringDraft = ProductVariantTailoringDraft.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantTailoringDraftbuilder
(ProductVariantTailoringDraft template) create builder for ProductVariantTailoringDraft instancestatic ProductVariantTailoringDraft
deepCopy
(ProductVariantTailoringDraft template) factory method to create a deep copy of ProductVariantTailoringDraftMedia assets of the tailored Product Variant.@Valid List<ProductTailoringAttribute>
Attributes of the tailored Product Variant according to the respective AttributeDefinition.getId()
Theid
of the ProductVariant to be tailored.Images of the tailored Product Variant.getSku()
Thesku
of the ProductVariant to be tailored.static ProductVariantTailoringDraft
of()
factory methodstatic ProductVariantTailoringDraft
of
(ProductVariantTailoringDraft template) factory method to create a shallow copy ProductVariantTailoringDraftvoid
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 according to the respective AttributeDefinition.void
setAttributes
(List<ProductTailoringAttribute> attributes) Attributes of the tailored Product Variant according to the respective AttributeDefinition.void
Theid
of the ProductVariant to be tailored.void
Images of the tailored Product Variant.void
Images of the tailored Product Variant.void
Thesku
of the ProductVariant to be tailored.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantTailoringDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getId
Long getId()The
id
of the ProductVariant to be tailored.- Returns:
- id
-
getSku
String getSku()The
sku
of the ProductVariant to be tailored.- Returns:
- sku
-
getImages
Images of the tailored Product Variant.
- Returns:
- images
-
getAssets
Media assets of the tailored Product Variant.
- Returns:
- assets
-
getAttributes
Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, 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 ProductVariant to be tailored.- Parameters:
id
- value to be set
-
setSku
The
sku
of the ProductVariant to be tailored.- Parameters:
sku
- value to be set
-
setImages
Images of the tailored Product Variant.
- Parameters:
images
- values to be set
-
setImages
Images of the tailored Product Variant.
- Parameters:
images
- values to be set
-
setAssets
Media assets of the tailored Product Variant.
- Parameters:
assets
- values to be set
-
setAssets
Media assets of the tailored Product Variant.
- Parameters:
assets
- values to be set
-
setAttributes
Attributes of the tailored Product Variant according to the respective AttributeDefinition. If provided, 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 according to the respective AttributeDefinition. If provided, 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 ProductVariantTailoringDraft
-
of
factory method to create a shallow copy ProductVariantTailoringDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductVariantTailoringDraft deepCopy(@Nullable ProductVariantTailoringDraft template) factory method to create a deep copy of ProductVariantTailoringDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantTailoringDraft- Returns:
- builder
-
builder
create builder for ProductVariantTailoringDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantTailoringDraft
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
-