Class ProductSetCategoryOrderHintActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductSetCategoryOrderHintActionBuilder
- All Implemented Interfaces:
Builder<ProductSetCategoryOrderHintAction>
public class ProductSetCategoryOrderHintActionBuilder
extends Object
implements Builder<ProductSetCategoryOrderHintAction>
ProductSetCategoryOrderHintActionBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSetCategoryOrderHintAction with checking for non-null required valuesbuilds ProductSetCategoryOrderHintAction without checking for non-null required valuescategoryId
(String categoryId) Theid
of the Category to add theorderHint
.Theid
of the Category to add theorderHint
.A string representing a number between 0 and 1.Iftrue
, only the stagedcategoryOrderHints
is updated.of()
factory method for an instance of ProductSetCategoryOrderHintActionBuilderof
(ProductSetCategoryOrderHintAction template) create builder for ProductSetCategoryOrderHintAction instanceA string representing a number between 0 and 1.Iftrue
, only the stagedcategoryOrderHints
is updated.
-
Constructor Details
-
ProductSetCategoryOrderHintActionBuilder
public ProductSetCategoryOrderHintActionBuilder()
-
-
Method Details
-
categoryId
The
id
of the Category to add theorderHint
.- 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 empty, any existing value will be removed.- Parameters:
orderHint
- value to be set- Returns:
- Builder
-
staged
If
true
, only the stagedcategoryOrderHints
is updated. Iffalse
, both the current and stagedcategoryOrderHints
are updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getCategoryId
The
id
of the Category to add theorderHint
.- Returns:
- categoryId
-
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
If
true
, only the stagedcategoryOrderHints
is updated. Iffalse
, both the current and stagedcategoryOrderHints
are updated.- Returns:
- staged
-
build
builds ProductSetCategoryOrderHintAction with checking for non-null required values- Specified by:
build
in 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
-