Class StandalonePriceTierAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.StandalonePriceTierAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StandalonePriceTierAddedMessagePayload>
public class StandalonePriceTierAddedMessagePayloadBuilder
extends Object
implements Builder<StandalonePriceTierAddedMessagePayload>
StandalonePriceTierAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceTierAddedMessagePayload standalonePriceTierAddedMessagePayload = StandalonePriceTierAddedMessagePayload.builder()
.tier(tierBuilder -> tierBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StandalonePriceTierAddedMessagePayload with checking for non-null required valuesbuilds StandalonePriceTierAddedMessagePayload without checking for non-null required valuesgetTier()
The Price Tier that has been added to the array fieldtiers
for the StandalonePrice.of()
factory method for an instance of StandalonePriceTierAddedMessagePayloadBuilderof
(StandalonePriceTierAddedMessagePayload template) create builder for StandalonePriceTierAddedMessagePayload instanceThe Price Tier that has been added to the array fieldtiers
for the StandalonePrice.tier
(Function<PriceTierBuilder, PriceTierBuilder> builder) The Price Tier that has been added to the array fieldtiers
for the StandalonePrice.withTier
(Function<PriceTierBuilder, PriceTier> builder) The Price Tier that has been added to the array fieldtiers
for the StandalonePrice.
-
Constructor Details
-
StandalonePriceTierAddedMessagePayloadBuilder
public StandalonePriceTierAddedMessagePayloadBuilder()
-
-
Method Details
-
tier
public StandalonePriceTierAddedMessagePayloadBuilder tier(Function<PriceTierBuilder, PriceTierBuilder> builder) The Price Tier that has been added to the array field
tiers
for the StandalonePrice.- Parameters:
builder
- function to build the tier value- Returns:
- Builder
-
withTier
public StandalonePriceTierAddedMessagePayloadBuilder withTier(Function<PriceTierBuilder, PriceTier> builder) The Price Tier that has been added to the array field
tiers
for the StandalonePrice.- Parameters:
builder
- function to build the tier value- Returns:
- Builder
-
tier
The Price Tier that has been added to the array field
tiers
for the StandalonePrice.- Parameters:
tier
- value to be set- Returns:
- Builder
-
getTier
The Price Tier that has been added to the array field
tiers
for the StandalonePrice.- Returns:
- tier
-
build
builds StandalonePriceTierAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceTierAddedMessagePayload>
- Returns:
- StandalonePriceTierAddedMessagePayload
-
buildUnchecked
builds StandalonePriceTierAddedMessagePayload without checking for non-null required values- Returns:
- StandalonePriceTierAddedMessagePayload
-
of
factory method for an instance of StandalonePriceTierAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static StandalonePriceTierAddedMessagePayloadBuilder of(StandalonePriceTierAddedMessagePayload template) create builder for StandalonePriceTierAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-