Interface ProductSetCategoryOrderHintAction
- All Superinterfaces:
ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
ProductSetCategoryOrderHintAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetCategoryOrderHintAction productSetCategoryOrderHintAction = ProductSetCategoryOrderHintAction.builder()
.categoryId("{categoryId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSetCategoryOrderHintAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSetCategoryOrderHintActionbuilder
(ProductSetCategoryOrderHintAction template) create builder for ProductSetCategoryOrderHintAction instancedeepCopy
(ProductSetCategoryOrderHintAction template) factory method to create a deep copy of ProductSetCategoryOrderHintAction@NotNull String
Theid
of the Category to add theorderHint
.A string representing a number between 0 and 1.Iftrue
, only the stagedcategoryOrderHints
is updated.of()
factory methodof
(ProductSetCategoryOrderHintAction template) factory method to create a shallow copy ProductSetCategoryOrderHintActionvoid
setCategoryId
(String categoryId) Theid
of the Category to add theorderHint
.void
setOrderHint
(String orderHint) A string representing a number between 0 and 1.void
Iftrue
, only the stagedcategoryOrderHints
is updated.static com.fasterxml.jackson.core.type.TypeReference<ProductSetCategoryOrderHintAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CATEGORY_ORDER_HINT
discriminator value for ProductSetCategoryOrderHintAction- See Also:
-
-
Method Details
-
getCategoryId
The
id
of the Category to add theorderHint
.- Returns:
- categoryId
-
getOrderHint
String getOrderHint()A string representing a number between 0 and 1. Must start with
0.
and cannot end with0
. If empty, any existing value will be removed.- Returns:
- orderHint
-
getStaged
Boolean getStaged()If
true
, only the stagedcategoryOrderHints
is updated. Iffalse
, both the current and stagedcategoryOrderHints
are updated.- Returns:
- staged
-
setCategoryId
The
id
of the Category to add theorderHint
.- Parameters:
categoryId
- value to be set
-
setOrderHint
A string representing a number between 0 and 1. Must start with
0.
and cannot end with0
. If empty, any existing value will be removed.- Parameters:
orderHint
- value to be set
-
setStaged
If
true
, only the stagedcategoryOrderHints
is updated. Iffalse
, both the current and stagedcategoryOrderHints
are updated.- Parameters:
staged
- value to be set
-
of
factory method- Returns:
- instance of ProductSetCategoryOrderHintAction
-
of
factory method to create a shallow copy ProductSetCategoryOrderHintAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSetCategoryOrderHintAction deepCopy(@Nullable ProductSetCategoryOrderHintAction template) factory method to create a deep copy of ProductSetCategoryOrderHintAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSetCategoryOrderHintAction- Returns:
- builder
-
builder
create builder for ProductSetCategoryOrderHintAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSetCategoryOrderHintAction
default <T> T withProductSetCategoryOrderHintAction(Function<ProductSetCategoryOrderHintAction, 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<ProductSetCategoryOrderHintAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-