Interface DiscountCodeChangeIsActiveAction
- All Superinterfaces:
DiscountCodeUpdateAction
,ResourceUpdateAction<DiscountCodeUpdateAction>
DiscountCodeChangeIsActiveAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeChangeIsActiveAction discountCodeChangeIsActiveAction = DiscountCodeChangeIsActiveAction.builder()
.isActive(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountCodeChangeIsActiveAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountCodeChangeIsActiveActionbuilder
(DiscountCodeChangeIsActiveAction template) create builder for DiscountCodeChangeIsActiveAction instancedeepCopy
(DiscountCodeChangeIsActiveAction template) factory method to create a deep copy of DiscountCodeChangeIsActiveAction@NotNull Boolean
New value to set.of()
factory methodof
(DiscountCodeChangeIsActiveAction template) factory method to create a shallow copy DiscountCodeChangeIsActiveActionvoid
setIsActive
(Boolean isActive) New value to set.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeChangeIsActiveAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.discount_code.DiscountCodeUpdateAction
getAction, withDiscountCodeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_IS_ACTIVE
discriminator value for DiscountCodeChangeIsActiveAction- See Also:
-
-
Method Details
-
getIsActive
New value to set. Set to
true
to activate the DiscountCode for all matching Discounts.- Returns:
- isActive
-
setIsActive
New value to set. Set to
true
to activate the DiscountCode for all matching Discounts.- Parameters:
isActive
- value to be set
-
of
factory method- Returns:
- instance of DiscountCodeChangeIsActiveAction
-
of
factory method to create a shallow copy DiscountCodeChangeIsActiveAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DiscountCodeChangeIsActiveAction deepCopy(@Nullable DiscountCodeChangeIsActiveAction template) factory method to create a deep copy of DiscountCodeChangeIsActiveAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeChangeIsActiveAction- Returns:
- builder
-
builder
create builder for DiscountCodeChangeIsActiveAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeChangeIsActiveAction
default <T> T withDiscountCodeChangeIsActiveAction(Function<DiscountCodeChangeIsActiveAction, 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<DiscountCodeChangeIsActiveAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-