Interface CartDiscountTarget
public interface CartDiscountTarget
CartDiscountTarget
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountTarget cartDiscountTarget = CartDiscountTarget.builder()
.type("{type}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CartDiscountTargetBuilderbuilder()builder factory method for CartDiscountTargetstatic CartDiscountTargetBuilderbuilder(CartDiscountTarget template) create builder for CartDiscountTarget instancecopyDeep()static CartDiscountTargetdeepCopy(CartDiscountTarget template) factory method to create a deep copy of CartDiscountTarget@NotNull StringgetType()static CartDiscountTargetof()factory methodstatic CartDiscountTargetof(CartDiscountTarget template) factory method to create a shallow copy CartDiscountTargetvoidset typestatic com.fasterxml.jackson.core.type.TypeReference<CartDiscountTarget>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartDiscountTarget(Function<CartDiscountTarget, 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 CartDiscountTarget
-
of
factory method to create a shallow copy CartDiscountTarget- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartDiscountTarget copyDeep() -
deepCopy
factory method to create a deep copy of CartDiscountTarget- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountTarget- Returns:
- builder
-
builder
create builder for CartDiscountTarget instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountTarget
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
-