Interface ProductDiscountChangeIsActiveAction
- All Superinterfaces:
ProductDiscountUpdateAction,ResourceUpdateAction<ProductDiscountUpdateAction>
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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductDiscountChangeIsActiveAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductDiscountChangeIsActiveActionbuilder(ProductDiscountChangeIsActiveAction template) create builder for ProductDiscountChangeIsActiveAction instancecopyDeep()deepCopy(ProductDiscountChangeIsActiveAction template) factory method to create a deep copy of ProductDiscountChangeIsActiveAction@NotNull BooleanNew value to set.of()factory methodof(ProductDiscountChangeIsActiveAction template) factory method to create a shallow copy ProductDiscountChangeIsActiveActionvoidsetIsActive(Boolean isActive) New value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountChangeIsActiveAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountUpdateAction
getAction, withProductDiscountUpdateActionMethods 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
-
copyDeep
ProductDiscountChangeIsActiveAction copyDeep()- Specified by:
copyDeepin interfaceProductDiscountUpdateAction
-
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
-