Interface ProductDiscountChangeIsActiveAction
- All Superinterfaces:
ProductDiscountUpdateAction
,ResourceUpdateAction<ProductDiscountUpdateAction>
- All Known Implementing Classes:
ProductDiscountChangeIsActiveActionImpl
ProductDiscountChangeIsActiveAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountChangeIsActiveAction productDiscountChangeIsActiveAction = ProductDiscountChangeIsActiveAction.builder()
.isActive(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductDiscountChangeIsActiveAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductDiscountChangeIsActiveActionbuilder
(ProductDiscountChangeIsActiveAction template) create builder for ProductDiscountChangeIsActiveAction instancedeepCopy
(ProductDiscountChangeIsActiveAction template) factory method to create a deep copy of ProductDiscountChangeIsActiveAction@NotNull Boolean
New value to set.of()
factory methodof
(ProductDiscountChangeIsActiveAction template) factory method to create a shallow copy ProductDiscountChangeIsActiveActionvoid
setIsActive
(Boolean isActive) New value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountChangeIsActiveAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountUpdateAction
getAction, withProductDiscountUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_IS_ACTIVE
discriminator value for ProductDiscountChangeIsActiveAction- See Also:
-
-
Method Details
-
getIsActive
New value to set. If set to
true
, the Discount will be applied to Product Prices.- Returns:
- isActive
-
setIsActive
New value to set. If set to
true
, the Discount will be applied to Product Prices.- Parameters:
isActive
- value to be set
-
of
factory method- Returns:
- instance of ProductDiscountChangeIsActiveAction
-
of
factory method to create a shallow copy ProductDiscountChangeIsActiveAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductDiscountChangeIsActiveAction deepCopy(@Nullable ProductDiscountChangeIsActiveAction template) factory method to create a deep copy of ProductDiscountChangeIsActiveAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDiscountChangeIsActiveAction- Returns:
- builder
-
builder
static ProductDiscountChangeIsActiveActionBuilder builder(ProductDiscountChangeIsActiveAction template) create builder for ProductDiscountChangeIsActiveAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductDiscountChangeIsActiveAction
default <T> T withProductDiscountChangeIsActiveAction(Function<ProductDiscountChangeIsActiveAction, T> helper) 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<ProductDiscountChangeIsActiveAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-