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