Class SearchMatchingVariantBuilder
java.lang.Object
com.commercetools.api.models.search.SearchMatchingVariantBuilder
- All Implemented Interfaces:
Builder<SearchMatchingVariant>
SearchMatchingVariantBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchMatchingVariant searchMatchingVariant = SearchMatchingVariant.builder()
.id(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SearchMatchingVariant with checking for non-null required valuesbuilds SearchMatchingVariant without checking for non-null required valuesgetId()
Unique identifier of the variant.getSku()
SKU of the matching variant.Unique identifier of the variant.static SearchMatchingVariantBuilder
of()
factory method for an instance of SearchMatchingVariantBuilderstatic SearchMatchingVariantBuilder
of
(SearchMatchingVariant template) create builder for SearchMatchingVariant instanceSKU of the matching variant.
-
Constructor Details
-
SearchMatchingVariantBuilder
public SearchMatchingVariantBuilder()
-
-
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 SearchMatchingVariant with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchMatchingVariant>
- Returns:
- SearchMatchingVariant
-
buildUnchecked
builds SearchMatchingVariant without checking for non-null required values- Returns:
- SearchMatchingVariant
-
of
factory method for an instance of SearchMatchingVariantBuilder- Returns:
- builder
-
of
create builder for SearchMatchingVariant instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-