Interface ProductVariantKeyReference
- All Superinterfaces:
KeyReference
Used by the Import API to identify a ProductVariant.
Example to create an instance using the builder pattern
ProductVariantKeyReference productVariantKeyReference = ProductVariantKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductVariantKeyReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductVariantKeyReferencebuilder(ProductVariantKeyReference template) create builder for ProductVariantKeyReference instancecopyDeep()static ProductVariantKeyReferencedeepCopy(ProductVariantKeyReference template) factory method to create a deep copy of ProductVariantKeyReference@NotNull StringgetKey()User-defined unique identifier of the referenced ProductVariant.static ProductVariantKeyReferenceof()factory methodstatic ProductVariantKeyReferenceof(ProductVariantKeyReference template) factory method to create a shallow copy ProductVariantKeyReferencevoidUser-defined unique identifier of the referenced ProductVariant.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantKeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
PRODUCT_VARIANT
discriminator value for ProductVariantKeyReference- See Also:
-
-
Method Details
-
getKey
User-defined unique identifier of the referenced ProductVariant.
- Specified by:
getKeyin interfaceKeyReference- Returns:
- key
-
setKey
User-defined unique identifier of the referenced ProductVariant.
- Specified by:
setKeyin interfaceKeyReference- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of ProductVariantKeyReference
-
of
factory method to create a shallow copy ProductVariantKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductVariantKeyReference copyDeep()- Specified by:
copyDeepin interfaceKeyReference
-
deepCopy
factory method to create a deep copy of ProductVariantKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantKeyReference- Returns:
- builder
-
builder
create builder for ProductVariantKeyReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantKeyReference
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
-