Interface ProductVariantTailoringDraft
- All Superinterfaces:
Draft<ProductVariantTailoringDraft>
Either id or sku is required to reference a ProductVariant or Variant 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 instancecopyDeep()static ProductVariantTailoringDraftdeepCopy(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()Images of the tailored Product Variant.getSku()static ProductVariantTailoringDraftof()factory methodstatic ProductVariantTailoringDraftof(ProductVariantTailoringDraft template) factory method to create a shallow copy ProductVariantTailoringDraftvoidMedia assets of the tailored Product Variant.voidMedia assets of the tailored Product Variant.voidsetAttributes(ProductTailoringAttribute... attributes) Attributes of the tailored Product Variant according to the respective AttributeDefinition.voidsetAttributes(List<ProductTailoringAttribute> attributes) Attributes of the tailored Product Variant according to the respective AttributeDefinition.voidvoidImages of the tailored Product Variant.voidImages of the tailored Product Variant.voidstatic tools.jackson.core.type.TypeReference<ProductVariantTailoringDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getId
Long getId()The
idof the ProductVariant or Variant to be tailored.- Returns:
- id
-
getSku
String getSku()The
skuof the ProductVariant or Variant 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
attributesof the corresponding ProductVariant or Variant:- If the ProductVariant or Variant contains an Attribute with the same
name, itsvalueis overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant.
- Returns:
- attributes
- If the ProductVariant or Variant contains an Attribute with the same
-
setId
The
idof the ProductVariant or Variant to be tailored.- Parameters:
id- value to be set
-
setSku
The
skuof the ProductVariant or Variant 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
attributesof the corresponding ProductVariant or Variant:- If the ProductVariant or Variant contains an Attribute with the same
name, itsvalueis overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant.
- Parameters:
attributes- values to be set
- If the ProductVariant or Variant 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
attributesof the corresponding ProductVariant or Variant:- If the ProductVariant or Variant contains an Attribute with the same
name, itsvalueis overwritten. Otherwise, the Attribute and its value are added to the ProductVariant or Variant.
- Parameters:
attributes- values to be set
- If the ProductVariant or Variant 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
-
copyDeep
ProductVariantTailoringDraft copyDeep() -
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
-