Class ProductRemovePriceActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductRemovePriceAction>
Example to create an instance using the builder pattern
ProductRemovePriceAction productRemovePriceAction = ProductRemovePriceAction.builder()
.priceId("{priceId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductRemovePriceAction with checking for non-null required valuesbuilds ProductRemovePriceAction without checking for non-null required valuesgetPrice()
The Price identical to the one to be removed from the ProductVariant.Theid
of the Embedded Price to remove.getSku()
Thesku
of the ProductVariant the provided Price should be removed from.Iftrue
, only the staged Embedded Price is removed.Theid
of the ProductVariant the provided Price should be removed from.of()
factory method for an instance of ProductRemovePriceActionBuilderof
(ProductRemovePriceAction template) create builder for ProductRemovePriceAction instanceprice
(PriceDraft price) The Price identical to the one to be removed from the ProductVariant.price
(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Price identical to the one to be removed from the ProductVariant.Theid
of the Embedded Price to remove.Thesku
of the ProductVariant the provided Price should be removed from.Iftrue
, only the staged Embedded Price is removed.Theid
of the ProductVariant the provided Price should be removed from.withPrice
(Function<PriceDraftBuilder, PriceDraft> builder) The Price identical to the one to be removed from the ProductVariant.
-
Constructor Details
-
ProductRemovePriceActionBuilder
public ProductRemovePriceActionBuilder()
-
-
Method Details
-
priceId
The
id
of the Embedded Price to remove.- Parameters:
priceId
- value to be set- Returns:
- Builder
-
sku
The
sku
of the ProductVariant the provided Price should be removed from. Either 'variantId' or 'sku' is required" whenpriceId
is not provided. This field is now deprecated, use 'priceId' instead.- Parameters:
sku
- value to be set- Returns:
- Builder
-
variantId
The
id
of the ProductVariant the provided Price should be removed from. Either 'variantId' or 'sku' is required" whenpriceId
is not provided. This field is now deprecated, use 'priceId' instead.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
price
The Price identical to the one to be removed from the ProductVariant. This field is now deprecated, use 'priceId' instead.
- Parameters:
builder
- function to build the price value- Returns:
- Builder
-
withPrice
The Price identical to the one to be removed from the ProductVariant. This field is now deprecated, use 'priceId' instead.
- Parameters:
builder
- function to build the price value- Returns:
- Builder
-
price
The Price identical to the one to be removed from the ProductVariant. This field is now deprecated, use 'priceId' instead.
- Parameters:
price
- value to be set- Returns:
- Builder
-
staged
If
true
, only the staged Embedded Price is removed. Iffalse
, both the current and staged Embedded Price are removed.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getPriceId
The
id
of the Embedded Price to remove.- Returns:
- priceId
-
getSku
The
sku
of the ProductVariant the provided Price should be removed from. Either 'variantId' or 'sku' is required" whenpriceId
is not provided. This field is now deprecated, use 'priceId' instead.- Returns:
- sku
-
getVariantId
The
id
of the ProductVariant the provided Price should be removed from. Either 'variantId' or 'sku' is required" whenpriceId
is not provided. This field is now deprecated, use 'priceId' instead.- Returns:
- variantId
-
getPrice
The Price identical to the one to be removed from the ProductVariant. This field is now deprecated, use 'priceId' instead.
- Returns:
- price
-
getStaged
If
true
, only the staged Embedded Price is removed. Iffalse
, both the current and staged Embedded Price are removed.- Returns:
- staged
-
build
builds ProductRemovePriceAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<ProductRemovePriceAction>
- Returns:
- ProductRemovePriceAction
-
buildUnchecked
builds ProductRemovePriceAction without checking for non-null required values- Returns:
- ProductRemovePriceAction
-
of
factory method for an instance of ProductRemovePriceActionBuilder- Returns:
- builder
-
of
create builder for ProductRemovePriceAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-