Class SimilarProductBuilder
- All Implemented Interfaces:
Builder<SimilarProduct>
Example to create an instance using the builder pattern
SimilarProduct similarProduct = SimilarProduct.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SimilarProduct with checking for non-null required valuesbuilds SimilarProduct without checking for non-null required valuesgetMeta()
Supplementary information about the data used for similarity estimation.Reference to ProductID of the ProductVariant that was compared.meta
(SimilarProductMeta meta) Supplementary information about the data used for similarity estimation.Supplementary information about the data used for similarity estimation.static SimilarProductBuilder
of()
factory method for an instance of SimilarProductBuilderstatic SimilarProductBuilder
of
(SimilarProduct template) create builder for SimilarProduct instanceproduct
(ProductReference product) Reference to ProductReference to ProductID of the ProductVariant that was compared.Supplementary information about the data used for similarity estimation.Reference to Product
-
Constructor Details
-
SimilarProductBuilder
public SimilarProductBuilder()
-
-
Method Details
-
product
public SimilarProductBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Reference to Product
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public SimilarProductBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Reference to Product
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
Reference to Product
- Parameters:
product
- value to be set- Returns:
- Builder
-
variantId
ID of the ProductVariant that was compared.
- Parameters:
variantId
- value to be set- Returns:
- Builder
-
meta
public SimilarProductBuilder meta(Function<SimilarProductMetaBuilder, SimilarProductMetaBuilder> builder) Supplementary information about the data used for similarity estimation. This information helps you understand the estimated confidence score, but it should not be used to identify a product.
- Parameters:
builder
- function to build the meta value- Returns:
- Builder
-
withMeta
public SimilarProductBuilder withMeta(Function<SimilarProductMetaBuilder, SimilarProductMeta> builder) Supplementary information about the data used for similarity estimation. This information helps you understand the estimated confidence score, but it should not be used to identify a product.
- Parameters:
builder
- function to build the meta value- Returns:
- Builder
-
meta
Supplementary information about the data used for similarity estimation. This information helps you understand the estimated confidence score, but it should not be used to identify a product.
- Parameters:
meta
- value to be set- Returns:
- Builder
-
getProduct
Reference to Product
- Returns:
- product
-
getVariantId
ID of the ProductVariant that was compared.
- Returns:
- variantId
-
getMeta
Supplementary information about the data used for similarity estimation. This information helps you understand the estimated confidence score, but it should not be used to identify a product.
- Returns:
- meta
-
build
builds SimilarProduct with checking for non-null required values- Specified by:
build
in interfaceBuilder<SimilarProduct>
- Returns:
- SimilarProduct
-
buildUnchecked
builds SimilarProduct without checking for non-null required values- Returns:
- SimilarProduct
-
of
factory method for an instance of SimilarProductBuilder- Returns:
- builder
-
of
create builder for SimilarProduct instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-