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