Class ProductSearchProjectionParamsBuilder
- All Implemented Interfaces:
Builder<ProductSearchProjectionParams>
Example to create an instance using the builder pattern
ProductSearchProjectionParams productSearchProjectionParams = ProductSearchProjectionParams.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSearchProjectionParams with checking for non-null required valuesbuilds ProductSearchProjectionParams without checking for non-null required valuesExpands avalue
of type Reference in a ProductProjection.Expands avalue
of type Reference in a ProductProjection.Expands avalue
of type Reference in a ProductProjection.Used for locale-based projection.id
of an existing Channel used for Product price selection.The country used for Product price selection.The currency used for Product price selection.id
of an existing CustomerGroup used for Product price selection.Set totrue
to retrieve the staged Product Projectionkey
of an existing Store.localeProjection
(String... localeProjection) Used for locale-based projection.localeProjection
(List<String> localeProjection) Used for locale-based projection.of()
factory method for an instance of ProductSearchProjectionParamsBuilderof
(ProductSearchProjectionParams template) create builder for ProductSearchProjectionParams instanceplusExpand
(String... expand) Expands avalue
of type Reference in a ProductProjection.plusLocaleProjection
(String... localeProjection) Used for locale-based projection.priceChannel
(String priceChannel) id
of an existing Channel used for Product price selection.priceCountry
(String priceCountry) The country used for Product price selection.priceCurrency
(String priceCurrency) The currency used for Product price selection.priceCustomerGroup
(String priceCustomerGroup) id
of an existing CustomerGroup used for Product price selection.Set totrue
to retrieve the staged Product ProjectionstoreProjection
(String storeProjection) key
of an existing Store.
-
Constructor Details
-
ProductSearchProjectionParamsBuilder
public ProductSearchProjectionParamsBuilder()
-
-
Method Details
-
expand
Expands a
value
of type Reference in a ProductProjection. In case the referenced object does not exist, the API returns the non-expanded reference.- Parameters:
expand
- value to be set- Returns:
- Builder
-
expand
Expands a
value
of type Reference in a ProductProjection. In case the referenced object does not exist, the API returns the non-expanded reference.- Parameters:
expand
- value to be set- Returns:
- Builder
-
plusExpand
Expands a
value
of type Reference in a ProductProjection. In case the referenced object does not exist, the API returns the non-expanded reference.- Parameters:
expand
- value to be set- Returns:
- Builder
-
staged
Set to
true
to retrieve the staged Product Projection- Parameters:
staged
- value to be set- Returns:
- Builder
-
priceCurrency
The currency used for Product price selection.
- Parameters:
priceCurrency
- value to be set- Returns:
- Builder
-
priceCountry
The country used for Product price selection. Can only be used in conjunction with the
priceCurrency
parameter.- Parameters:
priceCountry
- value to be set- Returns:
- Builder
-
priceCustomerGroup
id
of an existing CustomerGroup used for Product price selection. Can only be used in conjunction with thepriceCurrency
parameter.- Parameters:
priceCustomerGroup
- value to be set- Returns:
- Builder
-
priceChannel
id
of an existing Channel used for Product price selection. Can only be used in conjunction with thepriceCurrency
parameter.- Parameters:
priceChannel
- value to be set- Returns:
- Builder
-
localeProjection
Used for locale-based projection.
- Parameters:
localeProjection
- value to be set- Returns:
- Builder
-
localeProjection
public ProductSearchProjectionParamsBuilder localeProjection(@Nullable List<String> localeProjection) Used for locale-based projection.
- Parameters:
localeProjection
- value to be set- Returns:
- Builder
-
plusLocaleProjection
public ProductSearchProjectionParamsBuilder plusLocaleProjection(@Nullable String... localeProjection) Used for locale-based projection.
- Parameters:
localeProjection
- value to be set- Returns:
- Builder
-
storeProjection
key
of an existing Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price, and inventory. If the Store has defined Product Selections or Product Tailoring, they have no effect on the results of this query.- Parameters:
storeProjection
- value to be set- Returns:
- Builder
-
getExpand
Expands a
value
of type Reference in a ProductProjection. In case the referenced object does not exist, the API returns the non-expanded reference.- Returns:
- expand
-
getStaged
Set to
true
to retrieve the staged Product Projection- Returns:
- staged
-
getPriceCurrency
The currency used for Product price selection.
- Returns:
- priceCurrency
-
getPriceCountry
The country used for Product price selection. Can only be used in conjunction with the
priceCurrency
parameter.- Returns:
- priceCountry
-
getPriceCustomerGroup
id
of an existing CustomerGroup used for Product price selection. Can only be used in conjunction with thepriceCurrency
parameter.- Returns:
- priceCustomerGroup
-
getPriceChannel
id
of an existing Channel used for Product price selection. Can only be used in conjunction with thepriceCurrency
parameter.- Returns:
- priceChannel
-
getLocaleProjection
Used for locale-based projection.
- Returns:
- localeProjection
-
getStoreProjection
key
of an existing Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price, and inventory. If the Store has defined Product Selections or Product Tailoring, they have no effect on the results of this query.- Returns:
- storeProjection
-
build
builds ProductSearchProjectionParams with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSearchProjectionParams>
- Returns:
- ProductSearchProjectionParams
-
buildUnchecked
builds ProductSearchProjectionParams without checking for non-null required values- Returns:
- ProductSearchProjectionParams
-
of
factory method for an instance of ProductSearchProjectionParamsBuilder- Returns:
- builder
-
of
create builder for ProductSearchProjectionParams instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-