Class ProductDiscountValueExternalBuilder
java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountValueExternalBuilder
- All Implemented Interfaces:
Builder<ProductDiscountValueExternal>
public class ProductDiscountValueExternalBuilder
extends Object
implements Builder<ProductDiscountValueExternal>
ProductDiscountValueExternalBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountValueExternal productDiscountValueExternal = ProductDiscountValueExternal.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductDiscountValueExternal with checking for non-null required valuesbuilds ProductDiscountValueExternal without checking for non-null required valuesof()
factory method for an instance of ProductDiscountValueExternalBuilderof
(ProductDiscountValueExternal template) create builder for ProductDiscountValueExternal instance
-
Constructor Details
-
ProductDiscountValueExternalBuilder
public ProductDiscountValueExternalBuilder()
-
-
Method Details
-
build
builds ProductDiscountValueExternal with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductDiscountValueExternal>
- Returns:
- ProductDiscountValueExternal
-
buildUnchecked
builds ProductDiscountValueExternal without checking for non-null required values- Returns:
- ProductDiscountValueExternal
-
of
factory method for an instance of ProductDiscountValueExternalBuilder- Returns:
- builder
-
of
create builder for ProductDiscountValueExternal instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-