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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSearchMatchingVariantEntry with checking for non-null required valuesbuilds ProductSearchMatchingVariantEntry without checking for non-null required valuesgetId()
Unique identifier of the variant.getSku()
SKU of the matching variant.Unique identifier of the variant.of()
factory method for an instance of ProductSearchMatchingVariantEntryBuilderof
(ProductSearchMatchingVariantEntry template) create builder for ProductSearchMatchingVariantEntry instanceSKU of the matching variant.
-
Constructor Details
-
ProductSearchMatchingVariantEntryBuilder
public ProductSearchMatchingVariantEntryBuilder()
-
-
Method Details
-
id
Unique identifier of the variant.
- Parameters:
id
- value to be set- Returns:
- Builder
-
sku
SKU of the matching variant.
- Parameters:
sku
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the variant.
- Returns:
- id
-
getSku
SKU of the matching variant.
- 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
-