Class StandalonePriceDiscountSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.StandalonePriceDiscountSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StandalonePriceDiscountSetMessagePayload>
public class StandalonePriceDiscountSetMessagePayloadBuilder
extends Object
implements Builder<StandalonePriceDiscountSetMessagePayload>
StandalonePriceDiscountSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceDiscountSetMessagePayload standalonePriceDiscountSetMessagePayload = StandalonePriceDiscountSetMessagePayload.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StandalonePriceDiscountSetMessagePayload with checking for non-null required valuesbuilds StandalonePriceDiscountSetMessagePayload without checking for non-null required valuesdiscounted(DiscountedPrice discounted) The newdiscountedvalue of the updated StandalonePrice.The newdiscountedvalue of the updated StandalonePrice.The newdiscountedvalue of the updated StandalonePrice.of()factory method for an instance of StandalonePriceDiscountSetMessagePayloadBuilderof(StandalonePriceDiscountSetMessagePayload template) create builder for StandalonePriceDiscountSetMessagePayload instanceThe newdiscountedvalue of the updated StandalonePrice.
-
Constructor Details
-
StandalonePriceDiscountSetMessagePayloadBuilder
public StandalonePriceDiscountSetMessagePayloadBuilder()
-
-
Method Details
-
discounted
public StandalonePriceDiscountSetMessagePayloadBuilder discounted(Function<DiscountedPriceBuilder, DiscountedPriceBuilder> builder) The new
discountedvalue of the updated StandalonePrice.- Parameters:
builder- function to build the discounted value- Returns:
- Builder
-
withDiscounted
public StandalonePriceDiscountSetMessagePayloadBuilder withDiscounted(Function<DiscountedPriceBuilder, DiscountedPrice> builder) The new
discountedvalue of the updated StandalonePrice.- Parameters:
builder- function to build the discounted value- Returns:
- Builder
-
discounted
public StandalonePriceDiscountSetMessagePayloadBuilder discounted(@Nullable DiscountedPrice discounted) The new
discountedvalue of the updated StandalonePrice.- Parameters:
discounted- value to be set- Returns:
- Builder
-
getDiscounted
The new
discountedvalue of the updated StandalonePrice.- Returns:
- discounted
-
build
builds StandalonePriceDiscountSetMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<StandalonePriceDiscountSetMessagePayload>- Returns:
- StandalonePriceDiscountSetMessagePayload
-
buildUnchecked
builds StandalonePriceDiscountSetMessagePayload without checking for non-null required values- Returns:
- StandalonePriceDiscountSetMessagePayload
-
of
factory method for an instance of StandalonePriceDiscountSetMessagePayloadBuilder- Returns:
- builder
-
of
public static StandalonePriceDiscountSetMessagePayloadBuilder of(StandalonePriceDiscountSetMessagePayload template) create builder for StandalonePriceDiscountSetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-