Interface StandalonePriceTierAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Add Price Tier update action
Example to create an instance using the builder pattern
StandalonePriceTierAddedMessagePayload standalonePriceTierAddedMessagePayload = StandalonePriceTierAddedMessagePayload.builder()
.tier(tierBuilder -> tierBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceTierAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceTierAddedMessagePayloadcreate builder for StandalonePriceTierAddedMessagePayload instancefactory method to create a deep copy of StandalonePriceTierAddedMessagePayload@NotNull @Valid PriceTier
getTier()
The Price Tier that has been added to the array fieldtiers
for the StandalonePrice.of()
factory methodof
(StandalonePriceTierAddedMessagePayload template) factory method to create a shallow copy StandalonePriceTierAddedMessagePayloadvoid
The Price Tier that has been added to the array fieldtiers
for the StandalonePrice.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceTierAddedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStandalonePriceTierAddedMessagePayload
(Function<StandalonePriceTierAddedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
STANDALONE_PRICE_TIER_ADDED
discriminator value for StandalonePriceTierAddedMessagePayload- See Also:
-
-
Method Details
-
getTier
The Price Tier that has been added to the array field
tiers
for the StandalonePrice.- Returns:
- tier
-
setTier
The Price Tier that has been added to the array field
tiers
for the StandalonePrice.- Parameters:
tier
- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceTierAddedMessagePayload
-
of
factory method to create a shallow copy StandalonePriceTierAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceTierAddedMessagePayload deepCopy(@Nullable StandalonePriceTierAddedMessagePayload template) factory method to create a deep copy of StandalonePriceTierAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceTierAddedMessagePayload- Returns:
- builder
-
builder
static StandalonePriceTierAddedMessagePayloadBuilder builder(StandalonePriceTierAddedMessagePayload template) create builder for StandalonePriceTierAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceTierAddedMessagePayload
default <T> T withStandalonePriceTierAddedMessagePayload(Function<StandalonePriceTierAddedMessagePayload, 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<StandalonePriceTierAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-