Interface StagedQuoteValidToSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Valid To update action.
Example to create an instance using the builder pattern
StagedQuoteValidToSetMessagePayload stagedQuoteValidToSetMessagePayload = StagedQuoteValidToSetMessagePayload.builder()
.validTo(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedQuoteValidToSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedQuoteValidToSetMessagePayloadbuilder
(StagedQuoteValidToSetMessagePayload template) create builder for StagedQuoteValidToSetMessagePayload instancedeepCopy
(StagedQuoteValidToSetMessagePayload template) factory method to create a deep copy of StagedQuoteValidToSetMessagePayload@NotNull ZonedDateTime
Expiration date for the Staged Quote after the Set Valid To update action.of()
factory methodof
(StagedQuoteValidToSetMessagePayload template) factory method to create a shallow copy StagedQuoteValidToSetMessagePayloadvoid
setValidTo
(ZonedDateTime validTo) Expiration date for the Staged Quote after the Set Valid To update action.static com.fasterxml.jackson.core.type.TypeReference<StagedQuoteValidToSetMessagePayload>
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
-
STAGED_QUOTE_VALID_TO_SET
discriminator value for StagedQuoteValidToSetMessagePayload- See Also:
-
-
Method Details
-
getValidTo
Expiration date for the Staged Quote after the Set Valid To update action.
- Returns:
- validTo
-
setValidTo
Expiration date for the Staged Quote after the Set Valid To update action.
- Parameters:
validTo
- value to be set
-
of
factory method- Returns:
- instance of StagedQuoteValidToSetMessagePayload
-
of
factory method to create a shallow copy StagedQuoteValidToSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedQuoteValidToSetMessagePayload deepCopy(@Nullable StagedQuoteValidToSetMessagePayload template) factory method to create a deep copy of StagedQuoteValidToSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedQuoteValidToSetMessagePayload- Returns:
- builder
-
builder
static StagedQuoteValidToSetMessagePayloadBuilder builder(StagedQuoteValidToSetMessagePayload template) create builder for StagedQuoteValidToSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedQuoteValidToSetMessagePayload
default <T> T withStagedQuoteValidToSetMessagePayload(Function<StagedQuoteValidToSetMessagePayload, 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<StagedQuoteValidToSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-