Class StandalonePriceTierRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.StandalonePriceTierRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StandalonePriceTierRemovedMessagePayload>
public class StandalonePriceTierRemovedMessagePayloadBuilder
extends Object
implements Builder<StandalonePriceTierRemovedMessagePayload>
StandalonePriceTierRemovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceTierRemovedMessagePayload standalonePriceTierRemovedMessagePayload = StandalonePriceTierRemovedMessagePayload.builder()
.removedTier(removedTierBuilder -> removedTierBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StandalonePriceTierRemovedMessagePayload with checking for non-null required valuesbuilds StandalonePriceTierRemovedMessagePayload without checking for non-null required valuesThe Price Tier that has been removed from the array fieldtiers
for the StandalonePrice.of()
factory method for an instance of StandalonePriceTierRemovedMessagePayloadBuilderof
(StandalonePriceTierRemovedMessagePayload template) create builder for StandalonePriceTierRemovedMessagePayload instanceremovedTier
(PriceTier removedTier) The Price Tier that has been removed from the array fieldtiers
for the StandalonePrice.removedTier
(Function<PriceTierBuilder, PriceTierBuilder> builder) The Price Tier that has been removed from the array fieldtiers
for the StandalonePrice.withRemovedTier
(Function<PriceTierBuilder, PriceTier> builder) The Price Tier that has been removed from the array fieldtiers
for the StandalonePrice.
-
Constructor Details
-
StandalonePriceTierRemovedMessagePayloadBuilder
public StandalonePriceTierRemovedMessagePayloadBuilder()
-
-
Method Details
-
removedTier
public StandalonePriceTierRemovedMessagePayloadBuilder removedTier(Function<PriceTierBuilder, PriceTierBuilder> builder) The Price Tier that has been removed from the array field
tiers
for the StandalonePrice.- Parameters:
builder
- function to build the removedTier value- Returns:
- Builder
-
withRemovedTier
public StandalonePriceTierRemovedMessagePayloadBuilder withRemovedTier(Function<PriceTierBuilder, PriceTier> builder) The Price Tier that has been removed from the array field
tiers
for the StandalonePrice.- Parameters:
builder
- function to build the removedTier value- Returns:
- Builder
-
removedTier
The Price Tier that has been removed from the array field
tiers
for the StandalonePrice.- Parameters:
removedTier
- value to be set- Returns:
- Builder
-
getRemovedTier
The Price Tier that has been removed from the array field
tiers
for the StandalonePrice.- Returns:
- removedTier
-
build
builds StandalonePriceTierRemovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceTierRemovedMessagePayload>
- Returns:
- StandalonePriceTierRemovedMessagePayload
-
buildUnchecked
builds StandalonePriceTierRemovedMessagePayload without checking for non-null required values- Returns:
- StandalonePriceTierRemovedMessagePayload
-
of
factory method for an instance of StandalonePriceTierRemovedMessagePayloadBuilder- Returns:
- builder
-
of
public static StandalonePriceTierRemovedMessagePayloadBuilder of(StandalonePriceTierRemovedMessagePayload template) create builder for StandalonePriceTierRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-