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
-
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 stagedsearchKeywords
is 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 stagedsearchKeywords
is 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 stagedsearchKeywords
is updated. Iffalse
, both the current and stagedsearchKeywords
are updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getSearchKeywords
Value to set.
- Returns:
- searchKeywords
-
getStaged
If
true
, only the stagedsearchKeywords
is updated. Iffalse
, both the current and stagedsearchKeywords
are updated.- Returns:
- staged
-
build
builds ProductSetSearchKeywordsAction with checking for non-null required values- Specified by:
build
in 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
-