Interface ProductDiscountReference
- All Superinterfaces:
Reference
Reference to a ProductDiscount.
Example to create an instance using the builder pattern
ProductDiscountReference productDiscountReference = ProductDiscountReference.builder()
.id("{id}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductDiscountReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductDiscountReferencebuilder(ProductDiscountReference template) create builder for ProductDiscountReference instancecopyDeep()static ProductDiscountReferencedeepCopy(ProductDiscountReference template) factory method to create a deep copy of ProductDiscountReference@NotNull StringgetId()Unique identifier of the referenced ProductDiscount.static ProductDiscountReferenceof()factory methodstatic ProductDiscountReferenceof(ProductDiscountReference template) factory method to create a shallow copy ProductDiscountReferencevoidUnique identifier of the referenced ProductDiscount.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountReference>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
-
PRODUCT_DISCOUNT
discriminator value for ProductDiscountReference- See Also:
-
-
Method Details
-
getId
Unique identifier of the referenced ProductDiscount.
-
setId
Unique identifier of the referenced ProductDiscount.
-
of
factory method- Returns:
- instance of ProductDiscountReference
-
of
factory method to create a shallow copy ProductDiscountReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductDiscountReference copyDeep() -
deepCopy
factory method to create a deep copy of ProductDiscountReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDiscountReference- Returns:
- builder
-
builder
create builder for ProductDiscountReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductDiscountReference
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
-