Interface StandalonePriceSetValidUntilAction
- All Superinterfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>
,StandalonePriceUpdateAction
Updating the validUntil
value generates the StandalonePriceValidUntilSet Message.
As the validity dates are part of the price scope and are not allowed to overlap, this update might return the DuplicateStandalonePriceScope and OverlappingStandalonePriceValidity errors, respectively. A Price without validity period does not conflict with a Price defined for a time period.
Example to create an instance using the builder pattern
StandalonePriceSetValidUntilAction standalonePriceSetValidUntilAction = StandalonePriceSetValidUntilAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceSetValidUntilAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceSetValidUntilActionbuilder
(StandalonePriceSetValidUntilAction template) create builder for StandalonePriceSetValidUntilAction instancedeepCopy
(StandalonePriceSetValidUntilAction template) factory method to create a deep copy of StandalonePriceSetValidUntilActionValue to set.of()
factory methodof
(StandalonePriceSetValidUntilAction template) factory method to create a shallow copy StandalonePriceSetValidUntilActionvoid
setValidUntil
(ZonedDateTime validUntil) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceSetValidUntilAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.standalone_price.StandalonePriceUpdateAction
getAction, withStandalonePriceUpdateAction
-
Field Details
-
SET_VALID_UNTIL
discriminator value for StandalonePriceSetValidUntilAction- See Also:
-
-
Method Details
-
getValidUntil
ZonedDateTime getValidUntil()Value to set. If empty, any existing value is removed.
- Returns:
- validUntil
-
setValidUntil
Value to set. If empty, any existing value is removed.
- Parameters:
validUntil
- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceSetValidUntilAction
-
of
factory method to create a shallow copy StandalonePriceSetValidUntilAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceSetValidUntilAction deepCopy(@Nullable StandalonePriceSetValidUntilAction template) factory method to create a deep copy of StandalonePriceSetValidUntilAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceSetValidUntilAction- Returns:
- builder
-
builder
static StandalonePriceSetValidUntilActionBuilder builder(StandalonePriceSetValidUntilAction template) create builder for StandalonePriceSetValidUntilAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceSetValidUntilAction
default <T> T withStandalonePriceSetValidUntilAction(Function<StandalonePriceSetValidUntilAction, 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<StandalonePriceSetValidUntilAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-