Interface StandalonePriceCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create StandalonePrice request.
Example to create an instance using the builder pattern
StandalonePriceCreatedMessagePayload standalonePriceCreatedMessagePayload = StandalonePriceCreatedMessagePayload.builder()
.standalonePrice(standalonePriceBuilder -> standalonePriceBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceCreatedMessagePayloadbuilder
(StandalonePriceCreatedMessagePayload template) create builder for StandalonePriceCreatedMessagePayload instancedeepCopy
(StandalonePriceCreatedMessagePayload template) factory method to create a deep copy of StandalonePriceCreatedMessagePayload@NotNull @Valid StandalonePrice
Standalone Price that was created.of()
factory methodof
(StandalonePriceCreatedMessagePayload template) factory method to create a shallow copy StandalonePriceCreatedMessagePayloadvoid
setStandalonePrice
(StandalonePrice standalonePrice) Standalone Price that was created.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceCreatedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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_CREATED
discriminator value for StandalonePriceCreatedMessagePayload- See Also:
-
-
Method Details
-
getStandalonePrice
Standalone Price that was created.
- Returns:
- standalonePrice
-
setStandalonePrice
Standalone Price that was created.
- Parameters:
standalonePrice
- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceCreatedMessagePayload
-
of
factory method to create a shallow copy StandalonePriceCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceCreatedMessagePayload deepCopy(@Nullable StandalonePriceCreatedMessagePayload template) factory method to create a deep copy of StandalonePriceCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceCreatedMessagePayload- Returns:
- builder
-
builder
static StandalonePriceCreatedMessagePayloadBuilder builder(StandalonePriceCreatedMessagePayload template) create builder for StandalonePriceCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceCreatedMessagePayload
default <T> T withStandalonePriceCreatedMessagePayload(Function<StandalonePriceCreatedMessagePayload, 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<StandalonePriceCreatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-