Interface StandalonePriceValidFromSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Valid From update action.
Example to create an instance using the builder pattern
StandalonePriceValidFromSetMessagePayload standalonePriceValidFromSetMessagePayload = StandalonePriceValidFromSetMessagePayload.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceValidFromSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceValidFromSetMessagePayloadcreate builder for StandalonePriceValidFromSetMessagePayload instancefactory method to create a deep copy of StandalonePriceValidFromSetMessagePayloadValue of StandalonePricevalidFrom
before the Set Valid From update action.Value of StandalonePricevalidFrom
after the Set Valid From update action.of()
factory methodof
(StandalonePriceValidFromSetMessagePayload template) factory method to create a shallow copy StandalonePriceValidFromSetMessagePayloadvoid
setPreviousValidFrom
(ZonedDateTime previousValidFrom) Value of StandalonePricevalidFrom
before the Set Valid From update action.void
setValidFrom
(ZonedDateTime validFrom) Value of StandalonePricevalidFrom
after the Set Valid From update action.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceValidFromSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStandalonePriceValidFromSetMessagePayload
(Function<StandalonePriceValidFromSetMessagePayload, 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_FROM_SET
discriminator value for StandalonePriceValidFromSetMessagePayload- See Also:
-
-
Method Details
-
getValidFrom
ZonedDateTime getValidFrom()Value of StandalonePrice
validFrom
after the Set Valid From update action.- Returns:
- validFrom
-
getPreviousValidFrom
ZonedDateTime getPreviousValidFrom()Value of StandalonePrice
validFrom
before the Set Valid From update action.- Returns:
- previousValidFrom
-
setValidFrom
Value of StandalonePrice
validFrom
after the Set Valid From update action.- Parameters:
validFrom
- value to be set
-
setPreviousValidFrom
Value of StandalonePrice
validFrom
before the Set Valid From update action.- Parameters:
previousValidFrom
- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceValidFromSetMessagePayload
-
of
static StandalonePriceValidFromSetMessagePayload of(StandalonePriceValidFromSetMessagePayload template) factory method to create a shallow copy StandalonePriceValidFromSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceValidFromSetMessagePayload deepCopy(@Nullable StandalonePriceValidFromSetMessagePayload template) factory method to create a deep copy of StandalonePriceValidFromSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceValidFromSetMessagePayload- Returns:
- builder
-
builder
static StandalonePriceValidFromSetMessagePayloadBuilder builder(StandalonePriceValidFromSetMessagePayload template) create builder for StandalonePriceValidFromSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceValidFromSetMessagePayload
default <T> T withStandalonePriceValidFromSetMessagePayload(Function<StandalonePriceValidFromSetMessagePayload, 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<StandalonePriceValidFromSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-