Class SimilarProductSearchRequestMetaBuilder
java.lang.Object
com.commercetools.ml.models.similar_products.SimilarProductSearchRequestMetaBuilder
- All Implemented Interfaces:
Builder<SimilarProductSearchRequestMeta>
public class SimilarProductSearchRequestMetaBuilder
extends Object
implements Builder<SimilarProductSearchRequestMeta>
SimilarProductSearchRequestMetaBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SimilarProductSearchRequestMeta similarProductSearchRequestMeta = SimilarProductSearchRequestMeta.builder()
.similarityMeasures(similarityMeasuresBuilder -> similarityMeasuresBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SimilarProductSearchRequestMeta with checking for non-null required valuesbuilds SimilarProductSearchRequestMeta without checking for non-null required valuesThe SimilarityMeasures used in this search.of()
factory method for an instance of SimilarProductSearchRequestMetaBuilderof
(SimilarProductSearchRequestMeta template) create builder for SimilarProductSearchRequestMeta instancesimilarityMeasures
(SimilarityMeasures similarityMeasures) The SimilarityMeasures used in this search.The SimilarityMeasures used in this search.The SimilarityMeasures used in this search.
-
Constructor Details
-
SimilarProductSearchRequestMetaBuilder
public SimilarProductSearchRequestMetaBuilder()
-
-
Method Details
-
similarityMeasures
public SimilarProductSearchRequestMetaBuilder similarityMeasures(Function<SimilarityMeasuresBuilder, SimilarityMeasuresBuilder> builder) The SimilarityMeasures used in this search.
- Parameters:
builder
- function to build the similarityMeasures value- Returns:
- Builder
-
withSimilarityMeasures
public SimilarProductSearchRequestMetaBuilder withSimilarityMeasures(Function<SimilarityMeasuresBuilder, SimilarityMeasures> builder) The SimilarityMeasures used in this search.
- Parameters:
builder
- function to build the similarityMeasures value- Returns:
- Builder
-
similarityMeasures
public SimilarProductSearchRequestMetaBuilder similarityMeasures(SimilarityMeasures similarityMeasures) The SimilarityMeasures used in this search.
- Parameters:
similarityMeasures
- value to be set- Returns:
- Builder
-
getSimilarityMeasures
The SimilarityMeasures used in this search.
- Returns:
- similarityMeasures
-
build
builds SimilarProductSearchRequestMeta with checking for non-null required values- Specified by:
build
in interfaceBuilder<SimilarProductSearchRequestMeta>
- Returns:
- SimilarProductSearchRequestMeta
-
buildUnchecked
builds SimilarProductSearchRequestMeta without checking for non-null required values- Returns:
- SimilarProductSearchRequestMeta
-
of
factory method for an instance of SimilarProductSearchRequestMetaBuilder- Returns:
- builder
-
of
create builder for SimilarProductSearchRequestMeta instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-