Class StandalonePriceSetPriceTiersActionBuilder
- All Implemented Interfaces:
Builder<StandalonePriceSetPriceTiersAction>
Example to create an instance using the builder pattern
StandalonePriceSetPriceTiersAction standalonePriceSetPriceTiersAction = StandalonePriceSetPriceTiersAction.builder()
.plusTiers(tiersBuilder -> tiersBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTiers(Function<PriceTierDraftBuilder, PriceTierDraft> builder) Value to set.build()builds StandalonePriceSetPriceTiersAction with checking for non-null required valuesbuilds StandalonePriceSetPriceTiersAction without checking for non-null required valuesgetTiers()Value to set.of()factory method for an instance of StandalonePriceSetPriceTiersActionBuilderof(StandalonePriceSetPriceTiersAction template) create builder for StandalonePriceSetPriceTiersAction instanceplusTiers(PriceTierDraft... tiers) Value to set.Value to set.setTiers(Function<PriceTierDraftBuilder, PriceTierDraft> builder) Value to set.tiers(PriceTierDraft... tiers) Value to set.tiers(List<PriceTierDraft> tiers) Value to set.Value to set.
-
Constructor Details
-
StandalonePriceSetPriceTiersActionBuilder
public StandalonePriceSetPriceTiersActionBuilder()
-
-
Method Details
-
tiers
Value to set. If empty, any existing value will be removed. The
minimumQuantityof the PriceTiers must be unique and greater than1, otherwise an InvalidField error is returned.- Parameters:
tiers- value to be set- Returns:
- Builder
-
tiers
Value to set. If empty, any existing value will be removed. The
minimumQuantityof the PriceTiers must be unique and greater than1, otherwise an InvalidField error is returned.- Parameters:
tiers- value to be set- Returns:
- Builder
-
plusTiers
Value to set. If empty, any existing value will be removed. The
minimumQuantityof the PriceTiers must be unique and greater than1, otherwise an InvalidField error is returned.- Parameters:
tiers- value to be set- Returns:
- Builder
-
plusTiers
public StandalonePriceSetPriceTiersActionBuilder plusTiers(Function<PriceTierDraftBuilder, PriceTierDraftBuilder> builder) Value to set. If empty, any existing value will be removed. The
minimumQuantityof the PriceTiers must be unique and greater than1, otherwise an InvalidField error is returned.- Parameters:
builder- function to build the tiers value- Returns:
- Builder
-
withTiers
public StandalonePriceSetPriceTiersActionBuilder withTiers(Function<PriceTierDraftBuilder, PriceTierDraftBuilder> builder) Value to set. If empty, any existing value will be removed. The
minimumQuantityof the PriceTiers must be unique and greater than1, otherwise an InvalidField error is returned.- Parameters:
builder- function to build the tiers value- Returns:
- Builder
-
addTiers
public StandalonePriceSetPriceTiersActionBuilder addTiers(Function<PriceTierDraftBuilder, PriceTierDraft> builder) Value to set. If empty, any existing value will be removed. The
minimumQuantityof the PriceTiers must be unique and greater than1, otherwise an InvalidField error is returned.- Parameters:
builder- function to build the tiers value- Returns:
- Builder
-
setTiers
public StandalonePriceSetPriceTiersActionBuilder setTiers(Function<PriceTierDraftBuilder, PriceTierDraft> builder) Value to set. If empty, any existing value will be removed. The
minimumQuantityof the PriceTiers must be unique and greater than1, otherwise an InvalidField error is returned.- Parameters:
builder- function to build the tiers value- Returns:
- Builder
-
getTiers
Value to set. If empty, any existing value will be removed. The
minimumQuantityof the PriceTiers must be unique and greater than1, otherwise an InvalidField error is returned.- Returns:
- tiers
-
build
builds StandalonePriceSetPriceTiersAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StandalonePriceSetPriceTiersAction>- Returns:
- StandalonePriceSetPriceTiersAction
-
buildUnchecked
builds StandalonePriceSetPriceTiersAction without checking for non-null required values- Returns:
- StandalonePriceSetPriceTiersAction
-
of
factory method for an instance of StandalonePriceSetPriceTiersActionBuilder- Returns:
- builder
-
of
public static StandalonePriceSetPriceTiersActionBuilder of(StandalonePriceSetPriceTiersAction template) create builder for StandalonePriceSetPriceTiersAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-