Interface ProductSetCategoryOrderHintAction
- All Superinterfaces:
ProductUpdateAction,ResourceUpdateAction<ProductUpdateAction>
Example to create an instance using the builder pattern
ProductSetCategoryOrderHintAction productSetCategoryOrderHintAction = ProductSetCategoryOrderHintAction.builder()
.categoryId("{categoryId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSetCategoryOrderHintAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSetCategoryOrderHintActionbuilder(ProductSetCategoryOrderHintAction template) create builder for ProductSetCategoryOrderHintAction instancecopyDeep()deepCopy(ProductSetCategoryOrderHintAction template) factory method to create a deep copy of ProductSetCategoryOrderHintAction@NotNull StringTheidof the Category to add theorderHint.A string representing a number between 0 and 1.Iftrue, only the stagedcategoryOrderHintsis updated.of()factory methodof(ProductSetCategoryOrderHintAction template) factory method to create a shallow copy ProductSetCategoryOrderHintActionvoidsetCategoryId(String categoryId) Theidof the Category to add theorderHint.voidsetOrderHint(String orderHint) A string representing a number between 0 and 1.voidIftrue, only the stagedcategoryOrderHintsis updated.static com.fasterxml.jackson.core.type.TypeReference<ProductSetCategoryOrderHintAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateActionMethods 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
idof the Category to add theorderHint. If this Category is not assigned to the Product, an InvalidOperation error is returned.- 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 stagedcategoryOrderHintsis updated. Iffalse, both the current and stagedcategoryOrderHintsare updated.- Returns:
- staged
-
setCategoryId
The
idof the Category to add theorderHint. If this Category is not assigned to the Product, an InvalidOperation error is returned.- 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 stagedcategoryOrderHintsis updated. Iffalse, both the current and stagedcategoryOrderHintsare 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
-
copyDeep
ProductSetCategoryOrderHintAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
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
-