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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StandalonePriceSetValidUntilAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StandalonePriceSetValidUntilActionbuilder(StandalonePriceSetValidUntilAction template) create builder for StandalonePriceSetValidUntilAction instancecopyDeep()deepCopy(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 StandalonePriceSetValidUntilActionvoidsetValidUntil(ZonedDateTime validUntil) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceSetValidUntilAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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
-
copyDeep
StandalonePriceSetValidUntilAction copyDeep()- Specified by:
copyDeepin interfaceStandalonePriceUpdateAction
-
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
-