Interface ProductDiscountUpdateAction
- All Superinterfaces:
ResourceUpdateAction<ProductDiscountUpdateAction>
- All Known Subinterfaces:
ProductDiscountChangeIsActiveAction
,ProductDiscountChangeNameAction
,ProductDiscountChangePredicateAction
,ProductDiscountChangeSortOrderAction
,ProductDiscountChangeValueAction
,ProductDiscountSetDescriptionAction
,ProductDiscountSetKeyAction
,ProductDiscountSetValidFromAction
,ProductDiscountSetValidFromAndUntilAction
,ProductDiscountSetValidUntilAction
public interface ProductDiscountUpdateAction
extends ResourceUpdateAction<ProductDiscountUpdateAction>
ProductDiscountUpdateAction
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
ProductDiscountUpdateAction productDiscountUpdateAction = ProductDiscountUpdateAction.changeIsActiveBuilder()
isActive(true)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for changeIsActive subtypebuilder for changeName subtypebuilder for changePredicate subtypebuilder for changeSortOrder subtypebuilder for changeValue subtypestatic ProductDiscountUpdateAction
deepCopy
(ProductDiscountUpdateAction template) factory method to create a deep copy of ProductDiscountUpdateAction@NotNull String
builder for setDescription subtypebuilder for setKey subtypebuilder for setValidFromAndUntil subtypebuilder for setValidFrom subtypebuilder for setValidUntil subtypestatic com.fasterxml.jackson.core.type.TypeReference<ProductDiscountUpdateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ProductDiscountUpdateAction>
- Returns:
- action
-
deepCopy
@Nullable static ProductDiscountUpdateAction deepCopy(@Nullable ProductDiscountUpdateAction template) factory method to create a deep copy of ProductDiscountUpdateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
changeIsActiveBuilder
builder for changeIsActive subtype- Returns:
- builder
-
changeNameBuilder
builder for changeName subtype- Returns:
- builder
-
changePredicateBuilder
builder for changePredicate subtype- Returns:
- builder
-
changeSortOrderBuilder
builder for changeSortOrder subtype- Returns:
- builder
-
changeValueBuilder
builder for changeValue subtype- Returns:
- builder
-
setDescriptionBuilder
builder for setDescription subtype- Returns:
- builder
-
setKeyBuilder
builder for setKey subtype- Returns:
- builder
-
setValidFromBuilder
builder for setValidFrom subtype- Returns:
- builder
-
setValidFromAndUntilBuilder
builder for setValidFromAndUntil subtype- Returns:
- builder
-
setValidUntilBuilder
builder for setValidUntil subtype- Returns:
- builder
-
withProductDiscountUpdateAction
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
-