Interface ProductDiscountValue
public interface ProductDiscountValue
ProductDiscountValue
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountValue productDiscountValue = ProductDiscountValue.builder()
.type("{type}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductDiscountValueBuilderbuilder()builder factory method for ProductDiscountValuestatic ProductDiscountValueBuilderbuilder(ProductDiscountValue template) create builder for ProductDiscountValue instancecopyDeep()static ProductDiscountValuedeepCopy(ProductDiscountValue template) factory method to create a deep copy of ProductDiscountValue@NotNull StringgetType()static ProductDiscountValueof()factory methodstatic ProductDiscountValueof(ProductDiscountValue template) factory method to create a shallow copy ProductDiscountValuevoidset typestatic com.fasterxml.jackson.core.type.TypeReference<ProductDiscountValue>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductDiscountValue(Function<ProductDiscountValue, T> helper) accessor map function
-
Method Details
-
getType
- Returns:
- type
-
setType
set type- Parameters:
type- value to be set
-
of
factory method- Returns:
- instance of ProductDiscountValue
-
of
factory method to create a shallow copy ProductDiscountValue- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductDiscountValue copyDeep() -
deepCopy
factory method to create a deep copy of ProductDiscountValue- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDiscountValue- Returns:
- builder
-
builder
create builder for ProductDiscountValue instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductDiscountValue
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
-