Class ProductDiscountReferenceBuilder
java.lang.Object
com.commercetools.history.models.common.ProductDiscountReferenceBuilder
- All Implemented Interfaces:
Builder<ProductDiscountReference>
public class ProductDiscountReferenceBuilder
extends Object
implements Builder<ProductDiscountReference>
ProductDiscountReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountReference productDiscountReference = ProductDiscountReference.builder()
.id("{id}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductDiscountReference with checking for non-null required valuesbuilds ProductDiscountReference without checking for non-null required valuesgetId()Unique identifier of the referenced ProductDiscount.Unique identifier of the referenced ProductDiscount.of()factory method for an instance of ProductDiscountReferenceBuilderof(ProductDiscountReference template) create builder for ProductDiscountReference instance
-
Constructor Details
-
ProductDiscountReferenceBuilder
public ProductDiscountReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced ProductDiscount.
- Parameters:
id- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced ProductDiscount.
- Returns:
- id
-
build
builds ProductDiscountReference with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductDiscountReference>- Returns:
- ProductDiscountReference
-
buildUnchecked
builds ProductDiscountReference without checking for non-null required values- Returns:
- ProductDiscountReference
-
of
factory method for an instance of ProductDiscountReferenceBuilder- Returns:
- builder
-
of
create builder for ProductDiscountReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-