Class ProductSetPriceKeyActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductSetPriceKeyActionBuilder
- All Implemented Interfaces:
Builder<ProductSetPriceKeyAction>
public class ProductSetPriceKeyActionBuilder
extends Object
implements Builder<ProductSetPriceKeyAction>
ProductSetPriceKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetPriceKeyAction productSetPriceKeyAction = ProductSetPriceKeyAction.builder()
.priceId("{priceId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSetPriceKeyAction with checking for non-null required valuesbuilds ProductSetPriceKeyAction without checking for non-null required valuesgetKey()
Value to set.Theid
of the Price to set the key.Iftrue
, only the staged Embedded Price is updated.Value to set.of()
factory method for an instance of ProductSetPriceKeyActionBuilderof
(ProductSetPriceKeyAction template) create builder for ProductSetPriceKeyAction instanceTheid
of the Price to set the key.Iftrue
, only the staged Embedded Price is updated.
-
Constructor Details
-
ProductSetPriceKeyActionBuilder
public ProductSetPriceKeyActionBuilder()
-
-
Method Details
-
priceId
The
id
of the Price to set the key.- Parameters:
priceId
- value to be set- Returns:
- Builder
-
staged
If
true
, only the staged Embedded Price is updated. Iffalse
, both the current and staged Embedded Price are updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
key
Value to set. If empty, any existing value will be removed.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getPriceId
The
id
of the Price to set the key.- Returns:
- priceId
-
getStaged
If
true
, only the staged Embedded Price is updated. Iffalse
, both the current and staged Embedded Price are updated.- Returns:
- staged
-
getKey
Value to set. If empty, any existing value will be removed.
- Returns:
- key
-
build
builds ProductSetPriceKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSetPriceKeyAction>
- Returns:
- ProductSetPriceKeyAction
-
buildUnchecked
builds ProductSetPriceKeyAction without checking for non-null required values- Returns:
- ProductSetPriceKeyAction
-
of
factory method for an instance of ProductSetPriceKeyActionBuilder- Returns:
- builder
-
of
create builder for ProductSetPriceKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-