Interface DiscountCodeReference
- All Superinterfaces:
Reference
Reference to a DiscountCode.
Example to create an instance using the builder pattern
DiscountCodeReference discountCodeReference = DiscountCodeReference.builder()
.id("{id}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for DiscountCodeReference -
Method Summary
Modifier and TypeMethodDescriptionstatic DiscountCodeReferenceBuilderbuilder()builder factory method for DiscountCodeReferencestatic DiscountCodeReferenceBuilderbuilder(DiscountCodeReference template) create builder for DiscountCodeReference instancecopyDeep()static DiscountCodeReferencedeepCopy(DiscountCodeReference template) factory method to create a deep copy of DiscountCodeReference@NotNull StringgetId()Unique identifier of the referenced DiscountCode.static DiscountCodeReferenceof()factory methodstatic DiscountCodeReferenceof(DiscountCodeReference template) factory method to create a shallow copy DiscountCodeReferencevoidUnique identifier of the referenced DiscountCode.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeReference>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.history.models.common.Reference
getTypeId, withReference
-
Field Details
-
DISCOUNT_CODE
discriminator value for DiscountCodeReference- See Also:
-
-
Method Details
-
getId
Unique identifier of the referenced DiscountCode.
-
setId
Unique identifier of the referenced DiscountCode.
-
of
factory method- Returns:
- instance of DiscountCodeReference
-
of
factory method to create a shallow copy DiscountCodeReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
DiscountCodeReference copyDeep() -
deepCopy
factory method to create a deep copy of DiscountCodeReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeReference- Returns:
- builder
-
builder
create builder for DiscountCodeReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeReference
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
-