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