Class ProductPublishActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductPublishActionBuilder
- All Implemented Interfaces:
Builder<ProductPublishAction>
ProductPublishActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductPublishAction productPublishAction = ProductPublishAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductPublishAction with checking for non-null required valuesbuilds ProductPublishAction without checking for non-null required valuesgetScope()
All
orPrices
static ProductPublishActionBuilder
of()
factory method for an instance of ProductPublishActionBuilderstatic ProductPublishActionBuilder
of
(ProductPublishAction template) create builder for ProductPublishAction instancescope
(ProductPublishScope scope) All
orPrices
-
Constructor Details
-
ProductPublishActionBuilder
public ProductPublishActionBuilder()
-
-
Method Details
-
scope
All
orPrices
- Parameters:
scope
- value to be set- Returns:
- Builder
-
getScope
All
orPrices
- Returns:
- scope
-
build
builds ProductPublishAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductPublishAction>
- Returns:
- ProductPublishAction
-
buildUnchecked
builds ProductPublishAction without checking for non-null required values- Returns:
- ProductPublishAction
-
of
factory method for an instance of ProductPublishActionBuilder- Returns:
- builder
-
of
create builder for ProductPublishAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-