Class ProductRemovePriceActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductRemovePriceActionBuilder
- All Implemented Interfaces:
Builder<ProductRemovePriceAction>
public class ProductRemovePriceActionBuilder
extends Object
implements Builder<ProductRemovePriceAction>
ProductRemovePriceActionBuilder
Example to create an instance using the builder pattern
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 valuesTheid
of the Embedded Price to remove.Iftrue
, only the staged Embedded Price is removed.of()
factory method for an instance of ProductRemovePriceActionBuilderof
(ProductRemovePriceAction template) create builder for ProductRemovePriceAction instanceTheid
of the Embedded Price to remove.Iftrue
, only the staged Embedded Price is removed.
-
Constructor Details
-
ProductRemovePriceActionBuilder
public ProductRemovePriceActionBuilder()
-
-
Method Details
-
priceId
The
id
of the Embedded Price to remove.- Parameters:
priceId
- 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
-
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 interfaceBuilder<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
-