Class ProductTypeChangeIsSearchableActionBuilder
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeChangeIsSearchableActionBuilder
- All Implemented Interfaces:
Builder<ProductTypeChangeIsSearchableAction>
public class ProductTypeChangeIsSearchableActionBuilder
extends Object
implements Builder<ProductTypeChangeIsSearchableAction>
ProductTypeChangeIsSearchableActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTypeChangeIsSearchableAction productTypeChangeIsSearchableAction = ProductTypeChangeIsSearchableAction.builder()
.attributeName("{attributeName}")
.isSearchable(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributeName
(String attributeName) Name of the AttributeDefinition to update.build()
builds ProductTypeChangeIsSearchableAction with checking for non-null required valuesbuilds ProductTypeChangeIsSearchableAction without checking for non-null required valuesName of the AttributeDefinition to update.Determines whether the Attribute's values can be used in full-text search queries, filters, and facets.isSearchable
(Boolean isSearchable) Determines whether the Attribute's values can be used in full-text search queries, filters, and facets.of()
factory method for an instance of ProductTypeChangeIsSearchableActionBuilderof
(ProductTypeChangeIsSearchableAction template) create builder for ProductTypeChangeIsSearchableAction instance
-
Constructor Details
-
ProductTypeChangeIsSearchableActionBuilder
public ProductTypeChangeIsSearchableActionBuilder()
-
-
Method Details
-
attributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName
- value to be set- Returns:
- Builder
-
isSearchable
Determines whether the Attribute's values can be used in full-text search queries, filters, and facets. See AttributeDefinition for details.
- Parameters:
isSearchable
- value to be set- Returns:
- Builder
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getIsSearchable
Determines whether the Attribute's values can be used in full-text search queries, filters, and facets. See AttributeDefinition for details.
- Returns:
- isSearchable
-
build
builds ProductTypeChangeIsSearchableAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTypeChangeIsSearchableAction>
- Returns:
- ProductTypeChangeIsSearchableAction
-
buildUnchecked
builds ProductTypeChangeIsSearchableAction without checking for non-null required values- Returns:
- ProductTypeChangeIsSearchableAction
-
of
factory method for an instance of ProductTypeChangeIsSearchableActionBuilder- Returns:
- builder
-
of
public static ProductTypeChangeIsSearchableActionBuilder of(ProductTypeChangeIsSearchableAction template) create builder for ProductTypeChangeIsSearchableAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-