Class ProductSetPriceModeActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductSetPriceModeActionBuilder
- All Implemented Interfaces:
Builder<ProductSetPriceModeAction>
public class ProductSetPriceModeActionBuilder
extends Object
implements Builder<ProductSetPriceModeAction>
ProductSetPriceModeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetPriceModeAction productSetPriceModeAction = ProductSetPriceModeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductSetPriceModeAction with checking for non-null required valuesbuilds ProductSetPriceModeAction without checking for non-null required valuesSpecifies which type of Prices should be used when looking up a price for the Product.of()factory method for an instance of ProductSetPriceModeActionBuilderof(ProductSetPriceModeAction template) create builder for ProductSetPriceModeAction instancepriceMode(ProductPriceModeEnum priceMode) Specifies which type of Prices should be used when looking up a price for the Product.
-
Constructor Details
-
ProductSetPriceModeActionBuilder
public ProductSetPriceModeActionBuilder()
-
-
Method Details
-
priceMode
Specifies which type of Prices should be used when looking up a price for the Product.
- Parameters:
priceMode- value to be set- Returns:
- Builder
-
getPriceMode
Specifies which type of Prices should be used when looking up a price for the Product.
- Returns:
- priceMode
-
build
builds ProductSetPriceModeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductSetPriceModeAction>- Returns:
- ProductSetPriceModeAction
-
buildUnchecked
builds ProductSetPriceModeAction without checking for non-null required values- Returns:
- ProductSetPriceModeAction
-
of
factory method for an instance of ProductSetPriceModeActionBuilder- Returns:
- builder
-
of
create builder for ProductSetPriceModeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-