Interface DiscountCodeKeyReference
- All Superinterfaces:
KeyReference
References a discount code by key.
Example to create an instance using the builder pattern
DiscountCodeKeyReference discountCodeKeyReference = DiscountCodeKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountCodeKeyReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountCodeKeyReferencebuilder
(DiscountCodeKeyReference template) create builder for DiscountCodeKeyReference instancestatic DiscountCodeKeyReference
deepCopy
(DiscountCodeKeyReference template) factory method to create a deep copy of DiscountCodeKeyReferencestatic DiscountCodeKeyReference
of()
factory methodstatic DiscountCodeKeyReference
of
(DiscountCodeKeyReference template) factory method to create a shallow copy DiscountCodeKeyReferencestatic com.fasterxml.jackson.core.type.TypeReference<DiscountCodeKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getKey, getTypeId, setKey, withKeyReference
-
Field Details
-
DISCOUNT_CODE
discriminator value for DiscountCodeKeyReference- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of DiscountCodeKeyReference
-
of
factory method to create a shallow copy DiscountCodeKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of DiscountCodeKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeKeyReference- Returns:
- builder
-
builder
create builder for DiscountCodeKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeKeyReference
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
-