Class ProductRemoveFromCategoryActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductRemoveFromCategoryActionBuilder
- All Implemented Interfaces:
Builder<ProductRemoveFromCategoryAction>
public class ProductRemoveFromCategoryActionBuilder
extends Object
implements Builder<ProductRemoveFromCategoryAction>
ProductRemoveFromCategoryActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductRemoveFromCategoryAction productRemoveFromCategoryAction = ProductRemoveFromCategoryAction.builder()
.category(categoryBuilder -> categoryBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductRemoveFromCategoryAction with checking for non-null required valuesbuilds ProductRemoveFromCategoryAction without checking for non-null required valuescategory
(CategoryResourceIdentifier category) The Category to remove.The Category to remove.The Category to remove.Iftrue
, only the stagedcategories
andcategoryOrderHints
are removed.of()
factory method for an instance of ProductRemoveFromCategoryActionBuilderof
(ProductRemoveFromCategoryAction template) create builder for ProductRemoveFromCategoryAction instanceIftrue
, only the stagedcategories
andcategoryOrderHints
are removed.The Category to remove.
-
Constructor Details
-
ProductRemoveFromCategoryActionBuilder
public ProductRemoveFromCategoryActionBuilder()
-
-
Method Details
-
category
public ProductRemoveFromCategoryActionBuilder category(Function<CategoryResourceIdentifierBuilder, CategoryResourceIdentifierBuilder> builder) The Category to remove.
- Parameters:
builder
- function to build the category value- Returns:
- Builder
-
withCategory
public ProductRemoveFromCategoryActionBuilder withCategory(Function<CategoryResourceIdentifierBuilder, CategoryResourceIdentifier> builder) The Category to remove.
- Parameters:
builder
- function to build the category value- Returns:
- Builder
-
category
The Category to remove.
- Parameters:
category
- value to be set- Returns:
- Builder
-
staged
If
true
, only the stagedcategories
andcategoryOrderHints
are removed. Iffalse
, both the current and stagedcategories
andcategoryOrderHints
are removed.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getCategory
The Category to remove.
- Returns:
- category
-
getStaged
If
true
, only the stagedcategories
andcategoryOrderHints
are removed. Iffalse
, both the current and stagedcategories
andcategoryOrderHints
are removed.- Returns:
- staged
-
build
builds ProductRemoveFromCategoryAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductRemoveFromCategoryAction>
- Returns:
- ProductRemoveFromCategoryAction
-
buildUnchecked
builds ProductRemoveFromCategoryAction without checking for non-null required values- Returns:
- ProductRemoveFromCategoryAction
-
of
factory method for an instance of ProductRemoveFromCategoryActionBuilder- Returns:
- builder
-
of
create builder for ProductRemoveFromCategoryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-