Interface ProductDiscountChangeSortOrderAction
- All Superinterfaces:
ProductDiscountUpdateAction
,ResourceUpdateAction<ProductDiscountUpdateAction>
ProductDiscountChangeSortOrderAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountChangeSortOrderAction productDiscountChangeSortOrderAction = ProductDiscountChangeSortOrderAction.builder()
.sortOrder("{sortOrder}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductDiscountChangeSortOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductDiscountChangeSortOrderActionbuilder
(ProductDiscountChangeSortOrderAction template) create builder for ProductDiscountChangeSortOrderAction instancedeepCopy
(ProductDiscountChangeSortOrderAction template) factory method to create a deep copy of ProductDiscountChangeSortOrderAction@NotNull String
New value to set.of()
factory methodof
(ProductDiscountChangeSortOrderAction template) factory method to create a shallow copy ProductDiscountChangeSortOrderActionvoid
setSortOrder
(String sortOrder) New value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountChangeSortOrderAction>
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_SORT_ORDER
discriminator value for ProductDiscountChangeSortOrderAction- See Also:
-
-
Method Details
-
getSortOrder
New value to set. Must not be empty. The string value must be a number between
0
and1
. A Discount with a higher sortOrder is prioritized.- Returns:
- sortOrder
-
setSortOrder
New value to set. Must not be empty. The string value must be a number between
0
and1
. A Discount with a higher sortOrder is prioritized.- Parameters:
sortOrder
- value to be set
-
of
factory method- Returns:
- instance of ProductDiscountChangeSortOrderAction
-
of
factory method to create a shallow copy ProductDiscountChangeSortOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductDiscountChangeSortOrderAction deepCopy(@Nullable ProductDiscountChangeSortOrderAction template) factory method to create a deep copy of ProductDiscountChangeSortOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDiscountChangeSortOrderAction- Returns:
- builder
-
builder
static ProductDiscountChangeSortOrderActionBuilder builder(ProductDiscountChangeSortOrderAction template) create builder for ProductDiscountChangeSortOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductDiscountChangeSortOrderAction
default <T> T withProductDiscountChangeSortOrderAction(Function<ProductDiscountChangeSortOrderAction, 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<ProductDiscountChangeSortOrderAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-