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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartDiscountChangeTargetAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartDiscountChangeTargetActionbuilder(CartDiscountChangeTargetAction template) create builder for CartDiscountChangeTargetAction instancecopyDeep()deepCopy(CartDiscountChangeTargetAction template) factory method to create a deep copy of CartDiscountChangeTargetAction@NotNull @Valid CartDiscountTargetNew value to set.of()factory methodof(CartDiscountChangeTargetAction template) factory method to create a shallow copy CartDiscountChangeTargetActionvoidsetTarget(CartDiscountTarget target) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountChangeTargetAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
getAction, withCartDiscountUpdateActionMethods 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
-
copyDeep
CartDiscountChangeTargetAction copyDeep()- Specified by:
copyDeepin interfaceCartDiscountUpdateAction
-
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
-