Class DiscountCodeKeySetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.DiscountCodeKeySetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<DiscountCodeKeySetMessagePayload>
public class DiscountCodeKeySetMessagePayloadBuilder
extends Object
implements Builder<DiscountCodeKeySetMessagePayload>
DiscountCodeKeySetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeKeySetMessagePayload discountCodeKeySetMessagePayload = DiscountCodeKeySetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DiscountCodeKeySetMessagePayload with checking for non-null required valuesbuilds DiscountCodeKeySetMessagePayload without checking for non-null required valuesgetKey()
key
value of the Discount Code after the Set Key update action.key
value of the Discount Code before the Set Key update action.key
value of the Discount Code after the Set Key update action.of()
factory method for an instance of DiscountCodeKeySetMessagePayloadBuilderof
(DiscountCodeKeySetMessagePayload template) create builder for DiscountCodeKeySetMessagePayload instancekey
value of the Discount Code before the Set Key update action.
-
Constructor Details
-
DiscountCodeKeySetMessagePayloadBuilder
public DiscountCodeKeySetMessagePayloadBuilder()
-
-
Method Details
-
key
key
value of the Discount Code after the Set Key update action.- Parameters:
key
- value to be set- Returns:
- Builder
-
oldKey
key
value of the Discount Code before the Set Key update action.- Parameters:
oldKey
- value to be set- Returns:
- Builder
-
getKey
key
value of the Discount Code after the Set Key update action.- Returns:
- key
-
getOldKey
key
value of the Discount Code before the Set Key update action.- Returns:
- oldKey
-
build
builds DiscountCodeKeySetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<DiscountCodeKeySetMessagePayload>
- Returns:
- DiscountCodeKeySetMessagePayload
-
buildUnchecked
builds DiscountCodeKeySetMessagePayload without checking for non-null required values- Returns:
- DiscountCodeKeySetMessagePayload
-
of
factory method for an instance of DiscountCodeKeySetMessagePayloadBuilder- Returns:
- builder
-
of
create builder for DiscountCodeKeySetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-