Interface CartDiscountChangeTargetAction
- All Superinterfaces:
CartDiscountUpdateAction
,ResourceUpdateAction<CartDiscountUpdateAction>
CartDiscountChangeTargetAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountChangeTargetAction cartDiscountChangeTargetAction = CartDiscountChangeTargetAction.builder()
.target(targetBuilder -> targetBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountChangeTargetAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountChangeTargetActionbuilder
(CartDiscountChangeTargetAction template) create builder for CartDiscountChangeTargetAction instancedeepCopy
(CartDiscountChangeTargetAction template) factory method to create a deep copy of CartDiscountChangeTargetAction@NotNull @Valid CartDiscountTarget
New value to set.of()
factory methodof
(CartDiscountChangeTargetAction template) factory method to create a shallow copy CartDiscountChangeTargetActionvoid
setTarget
(CartDiscountTarget target) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountChangeTargetAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
getAction, withCartDiscountUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_TARGET
discriminator value for CartDiscountChangeTargetAction- See Also:
-
-
Method Details
-
getTarget
New value to set.
- Returns:
- target
-
setTarget
New value to set.
- Parameters:
target
- value to be set
-
of
factory method- Returns:
- instance of CartDiscountChangeTargetAction
-
of
factory method to create a shallow copy CartDiscountChangeTargetAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartDiscountChangeTargetAction deepCopy(@Nullable CartDiscountChangeTargetAction template) factory method to create a deep copy of CartDiscountChangeTargetAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountChangeTargetAction- Returns:
- builder
-
builder
create builder for CartDiscountChangeTargetAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountChangeTargetAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CartDiscountChangeTargetAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-