Interface StandalonePriceValidUntilSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Valid Until update action.
Example to create an instance using the builder pattern
StandalonePriceValidUntilSetMessagePayload standalonePriceValidUntilSetMessagePayload = StandalonePriceValidUntilSetMessagePayload.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceValidUntilSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceValidUntilSetMessagePayloadcreate builder for StandalonePriceValidUntilSetMessagePayload instancefactory method to create a deep copy of StandalonePriceValidUntilSetMessagePayloadValue of StandalonePricevalidUntil
before the Set Valid Until update action.Value of StandalonePricevalidUntil
after the Set Valid Until update action.of()
factory methodof
(StandalonePriceValidUntilSetMessagePayload template) factory method to create a shallow copy StandalonePriceValidUntilSetMessagePayloadvoid
setPreviousValidUntil
(ZonedDateTime previousValidUntil) Value of StandalonePricevalidUntil
before the Set Valid Until update action.void
setValidUntil
(ZonedDateTime validUntil) Value of StandalonePricevalidUntil
after the Set Valid Until update action.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceValidUntilSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStandalonePriceValidUntilSetMessagePayload
(Function<StandalonePriceValidUntilSetMessagePayload, 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_VALID_UNTIL_SET
discriminator value for StandalonePriceValidUntilSetMessagePayload- See Also:
-
-
Method Details
-
getValidUntil
ZonedDateTime getValidUntil()Value of StandalonePrice
validUntil
after the Set Valid Until update action.- Returns:
- validUntil
-
getPreviousValidUntil
ZonedDateTime getPreviousValidUntil()Value of StandalonePrice
validUntil
before the Set Valid Until update action.- Returns:
- previousValidUntil
-
setValidUntil
Value of StandalonePrice
validUntil
after the Set Valid Until update action.- Parameters:
validUntil
- value to be set
-
setPreviousValidUntil
Value of StandalonePrice
validUntil
before the Set Valid Until update action.- Parameters:
previousValidUntil
- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceValidUntilSetMessagePayload
-
of
static StandalonePriceValidUntilSetMessagePayload of(StandalonePriceValidUntilSetMessagePayload template) factory method to create a shallow copy StandalonePriceValidUntilSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceValidUntilSetMessagePayload deepCopy(@Nullable StandalonePriceValidUntilSetMessagePayload template) factory method to create a deep copy of StandalonePriceValidUntilSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceValidUntilSetMessagePayload- Returns:
- builder
-
builder
static StandalonePriceValidUntilSetMessagePayloadBuilder builder(StandalonePriceValidUntilSetMessagePayload template) create builder for StandalonePriceValidUntilSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceValidUntilSetMessagePayload
default <T> T withStandalonePriceValidUntilSetMessagePayload(Function<StandalonePriceValidUntilSetMessagePayload, 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<StandalonePriceValidUntilSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-