Class ProductSetCategoryOrderHintActionBuilder
- All Implemented Interfaces:
Builder<ProductSetCategoryOrderHintAction>
Example to create an instance using the builder pattern
ProductSetCategoryOrderHintAction productSetCategoryOrderHintAction = ProductSetCategoryOrderHintAction.builder()
.categoryId("{categoryId}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductSetCategoryOrderHintAction with checking for non-null required valuesbuilds ProductSetCategoryOrderHintAction without checking for non-null required valuescategoryId(String categoryId) Theidof the Category to add theorderHint.Theidof the Category to add theorderHint.A string representing a number between 0 and 1.Whether only the stagedcategoryOrderHintsis updated.of()factory method for an instance of ProductSetCategoryOrderHintActionBuilderof(ProductSetCategoryOrderHintAction template) create builder for ProductSetCategoryOrderHintAction instanceA string representing a number between 0 and 1.Whether only the stagedcategoryOrderHintsis updated.
-
Constructor Details
-
ProductSetCategoryOrderHintActionBuilder
public ProductSetCategoryOrderHintActionBuilder()
-
-
Method Details
-
categoryId
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- Returns:
- Builder
-
orderHint
A string representing a number between 0 and 1. Must start with
0.and cannot end with0. If omitted, any existing value is removed.- Parameters:
orderHint- value to be set- Returns:
- Builder
-
staged
Whether only the staged
categoryOrderHintsis updated. Iffalse, both the current and stagedcategoryOrderHintsare updated.- Parameters:
staged- value to be set- Returns:
- Builder
-
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
A string representing a number between 0 and 1. Must start with
0.and cannot end with0. If omitted, any existing value is removed.- Returns:
- orderHint
-
getStaged
Whether only the staged
categoryOrderHintsis updated. Iffalse, both the current and stagedcategoryOrderHintsare updated.- Returns:
- staged
-
build
builds ProductSetCategoryOrderHintAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductSetCategoryOrderHintAction>- Returns:
- ProductSetCategoryOrderHintAction
-
buildUnchecked
builds ProductSetCategoryOrderHintAction without checking for non-null required values- Returns:
- ProductSetCategoryOrderHintAction
-
of
factory method for an instance of ProductSetCategoryOrderHintActionBuilder- Returns:
- builder
-
of
public static ProductSetCategoryOrderHintActionBuilder of(ProductSetCategoryOrderHintAction template) create builder for ProductSetCategoryOrderHintAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-