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