Interface StandalonePriceSetPriceTiersAction
- All Superinterfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>,StandalonePriceUpdateAction
Sets all PriceTiers for a StandalonePrice in one action, produces the Standalone Price Tiers Set Message.
Example to create an instance using the builder pattern
StandalonePriceSetPriceTiersAction standalonePriceSetPriceTiersAction = StandalonePriceSetPriceTiersAction.builder()
.plusTiers(tiersBuilder -> tiersBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StandalonePriceSetPriceTiersAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StandalonePriceSetPriceTiersActionbuilder(StandalonePriceSetPriceTiersAction template) create builder for StandalonePriceSetPriceTiersAction instancecopyDeep()deepCopy(StandalonePriceSetPriceTiersAction template) factory method to create a deep copy of StandalonePriceSetPriceTiersAction@NotNull @Valid List<PriceTierDraft>getTiers()Value to set.of()factory methodof(StandalonePriceSetPriceTiersAction template) factory method to create a shallow copy StandalonePriceSetPriceTiersActionvoidsetTiers(PriceTierDraft... tiers) Value to set.voidsetTiers(List<PriceTierDraft> tiers) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceSetPriceTiersAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.standalone_price.StandalonePriceUpdateAction
getAction, withStandalonePriceUpdateAction
-
Field Details
-
SET_PRICE_TIERS
discriminator value for StandalonePriceSetPriceTiersAction- See Also:
-
-
Method Details
-
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
-
setTiers
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- values to be set
-
setTiers
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- values to be set
-
of
factory method- Returns:
- instance of StandalonePriceSetPriceTiersAction
-
of
factory method to create a shallow copy StandalonePriceSetPriceTiersAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StandalonePriceSetPriceTiersAction copyDeep()- Specified by:
copyDeepin interfaceStandalonePriceUpdateAction
-
deepCopy
@Nullable static StandalonePriceSetPriceTiersAction deepCopy(@Nullable StandalonePriceSetPriceTiersAction template) factory method to create a deep copy of StandalonePriceSetPriceTiersAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceSetPriceTiersAction- Returns:
- builder
-
builder
static StandalonePriceSetPriceTiersActionBuilder builder(StandalonePriceSetPriceTiersAction template) create builder for StandalonePriceSetPriceTiersAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceSetPriceTiersAction
default <T> T withStandalonePriceSetPriceTiersAction(Function<StandalonePriceSetPriceTiersAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceSetPriceTiersAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-