Class StandalonePriceExternalDiscountSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.StandalonePriceExternalDiscountSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StandalonePriceExternalDiscountSetMessagePayload>
public class StandalonePriceExternalDiscountSetMessagePayloadBuilder
extends Object
implements Builder<StandalonePriceExternalDiscountSetMessagePayload>
StandalonePriceExternalDiscountSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceExternalDiscountSetMessagePayload standalonePriceExternalDiscountSetMessagePayload = StandalonePriceExternalDiscountSetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StandalonePriceExternalDiscountSetMessagePayload with checking for non-null required valuesbuilds StandalonePriceExternalDiscountSetMessagePayload without checking for non-null required valuesdiscounted
(DiscountedPrice discounted) Thediscounted
value of the StandalonePrice after the Set Discounted Price update action.Thediscounted
value of the StandalonePrice after the Set Discounted Price update action.Thediscounted
value of the StandalonePrice after the Set Discounted Price update action.of()
factory method for an instance of StandalonePriceExternalDiscountSetMessagePayloadBuildercreate builder for StandalonePriceExternalDiscountSetMessagePayload instanceThediscounted
value of the StandalonePrice after the Set Discounted Price update action.
-
Constructor Details
-
StandalonePriceExternalDiscountSetMessagePayloadBuilder
public StandalonePriceExternalDiscountSetMessagePayloadBuilder()
-
-
Method Details
-
discounted
public StandalonePriceExternalDiscountSetMessagePayloadBuilder discounted(Function<DiscountedPriceBuilder, DiscountedPriceBuilder> builder) The
discounted
value of the StandalonePrice after the Set Discounted Price update action.- Parameters:
builder
- function to build the discounted value- Returns:
- Builder
-
withDiscounted
public StandalonePriceExternalDiscountSetMessagePayloadBuilder withDiscounted(Function<DiscountedPriceBuilder, DiscountedPrice> builder) The
discounted
value of the StandalonePrice after the Set Discounted Price update action.- Parameters:
builder
- function to build the discounted value- Returns:
- Builder
-
discounted
public StandalonePriceExternalDiscountSetMessagePayloadBuilder discounted(@Nullable DiscountedPrice discounted) The
discounted
value of the StandalonePrice after the Set Discounted Price update action.- Parameters:
discounted
- value to be set- Returns:
- Builder
-
getDiscounted
The
discounted
value of the StandalonePrice after the Set Discounted Price update action.- Returns:
- discounted
-
build
builds StandalonePriceExternalDiscountSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceExternalDiscountSetMessagePayload>
- Returns:
- StandalonePriceExternalDiscountSetMessagePayload
-
buildUnchecked
builds StandalonePriceExternalDiscountSetMessagePayload without checking for non-null required values- Returns:
- StandalonePriceExternalDiscountSetMessagePayload
-
of
factory method for an instance of StandalonePriceExternalDiscountSetMessagePayloadBuilder- Returns:
- builder
-
of
public static StandalonePriceExternalDiscountSetMessagePayloadBuilder of(StandalonePriceExternalDiscountSetMessagePayload template) create builder for StandalonePriceExternalDiscountSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-