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()
id
of the ProductVariant that matches the search query.getSku()
sku
of the ProductVariant that matches the search query.id
of the ProductVariant that matches the search query.of()
factory method for an instance of ProductSearchMatchingVariantEntryBuilderof
(ProductSearchMatchingVariantEntry template) create builder for ProductSearchMatchingVariantEntry instancesku
of the ProductVariant that matches the search query.
-
Constructor Details
-
ProductSearchMatchingVariantEntryBuilder
public ProductSearchMatchingVariantEntryBuilder()
-
-
Method Details
-
id
id
of the ProductVariant that matches the search query.- Parameters:
id
- value to be set- Returns:
- Builder
-
sku
sku
of the ProductVariant that matches the search query.- Parameters:
sku
- value to be set- Returns:
- Builder
-
getId
id
of the ProductVariant that matches the search query.- Returns:
- id
-
getSku
sku
of the ProductVariant that matches the search query.- Returns:
- sku
-
build
builds ProductSearchMatchingVariantEntry with checking for non-null required values- Specified by:
build
in 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
-