Class ProductSearchMatchingVariantEntryBuilder
java.lang.Object
com.commercetools.api.models.product_search.ProductSearchMatchingVariantEntryBuilder
- All Implemented Interfaces:
Builder<ProductSearchMatchingVariantEntry>
public class ProductSearchMatchingVariantEntryBuilder
extends Object
implements Builder<ProductSearchMatchingVariantEntry>
ProductSearchMatchingVariantEntryBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchMatchingVariantEntry productSearchMatchingVariantEntry = ProductSearchMatchingVariantEntry.builder()
.id(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductSearchMatchingVariantEntry with checking for non-null required valuesbuilds ProductSearchMatchingVariantEntry without checking for non-null required valuesgetId()idof the ProductVariant that matches the search query.getSku()skuof the ProductVariant that matches the search query.idof the ProductVariant that matches the search query.of()factory method for an instance of ProductSearchMatchingVariantEntryBuilderof(ProductSearchMatchingVariantEntry template) create builder for ProductSearchMatchingVariantEntry instanceskuof the ProductVariant that matches the search query.
-
Constructor Details
-
ProductSearchMatchingVariantEntryBuilder
public ProductSearchMatchingVariantEntryBuilder()
-
-
Method Details
-
id
idof the ProductVariant that matches the search query.- Parameters:
id- value to be set- Returns:
- Builder
-
sku
skuof the ProductVariant that matches the search query.- Parameters:
sku- value to be set- Returns:
- Builder
-
getId
idof the ProductVariant that matches the search query.- Returns:
- id
-
getSku
skuof the ProductVariant that matches the search query.- Returns:
- sku
-
build
builds ProductSearchMatchingVariantEntry with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductSearchMatchingVariantEntry>- Returns:
- ProductSearchMatchingVariantEntry
-
buildUnchecked
builds ProductSearchMatchingVariantEntry without checking for non-null required values- Returns:
- ProductSearchMatchingVariantEntry
-
of
factory method for an instance of ProductSearchMatchingVariantEntryBuilder- Returns:
- builder
-
of
public static ProductSearchMatchingVariantEntryBuilder of(ProductSearchMatchingVariantEntry template) create builder for ProductSearchMatchingVariantEntry instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-