Class ProductSetSearchKeywordsActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductSetSearchKeywordsActionBuilder
- All Implemented Interfaces:
Builder<ProductSetSearchKeywordsAction>
public class ProductSetSearchKeywordsActionBuilder
extends Object
implements Builder<ProductSetSearchKeywordsAction>
ProductSetSearchKeywordsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetSearchKeywordsAction productSetSearchKeywordsAction = ProductSetSearchKeywordsAction.builder()
.searchKeywords(searchKeywordsBuilder -> searchKeywordsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductSetSearchKeywordsAction with checking for non-null required valuesbuilds ProductSetSearchKeywordsAction without checking for non-null required valuesValue to set.Iftrue, only the stagedsearchKeywordsis updated.of()factory method for an instance of ProductSetSearchKeywordsActionBuilderof(ProductSetSearchKeywordsAction template) create builder for ProductSetSearchKeywordsAction instancesearchKeywords(SearchKeywords searchKeywords) Value to set.Value to set.Iftrue, only the stagedsearchKeywordsis updated.Value to set.
-
Constructor Details
-
ProductSetSearchKeywordsActionBuilder
public ProductSetSearchKeywordsActionBuilder()
-
-
Method Details
-
searchKeywords
public ProductSetSearchKeywordsActionBuilder searchKeywords(Function<SearchKeywordsBuilder, SearchKeywordsBuilder> builder) Value to set.
- Parameters:
builder- function to build the searchKeywords value- Returns:
- Builder
-
withSearchKeywords
public ProductSetSearchKeywordsActionBuilder withSearchKeywords(Function<SearchKeywordsBuilder, SearchKeywords> builder) Value to set.
- Parameters:
builder- function to build the searchKeywords value- Returns:
- Builder
-
searchKeywords
Value to set.
- Parameters:
searchKeywords- value to be set- Returns:
- Builder
-
staged
If
true, only the stagedsearchKeywordsis updated. Iffalse, both the current and stagedsearchKeywordsare updated.- Parameters:
staged- value to be set- Returns:
- Builder
-
getSearchKeywords
Value to set.
- Returns:
- searchKeywords
-
getStaged
If
true, only the stagedsearchKeywordsis updated. Iffalse, both the current and stagedsearchKeywordsare updated.- Returns:
- staged
-
build
builds ProductSetSearchKeywordsAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductSetSearchKeywordsAction>- Returns:
- ProductSetSearchKeywordsAction
-
buildUnchecked
builds ProductSetSearchKeywordsAction without checking for non-null required values- Returns:
- ProductSetSearchKeywordsAction
-
of
factory method for an instance of ProductSetSearchKeywordsActionBuilder- Returns:
- builder
-
of
create builder for ProductSetSearchKeywordsAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-