Interface StandalonePriceSetValidFromAction
- All Superinterfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>
,StandalonePriceUpdateAction
Updating the validFrom
value generates the StandalonePriceValidFromSet 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
StandalonePriceSetValidFromAction standalonePriceSetValidFromAction = StandalonePriceSetValidFromAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceSetValidFromAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceSetValidFromActionbuilder
(StandalonePriceSetValidFromAction template) create builder for StandalonePriceSetValidFromAction instancedeepCopy
(StandalonePriceSetValidFromAction template) factory method to create a deep copy of StandalonePriceSetValidFromActionValue to set.of()
factory methodof
(StandalonePriceSetValidFromAction template) factory method to create a shallow copy StandalonePriceSetValidFromActionvoid
setValidFrom
(ZonedDateTime validFrom) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceSetValidFromAction>
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_FROM
discriminator value for StandalonePriceSetValidFromAction- See Also:
-
-
Method Details
-
getValidFrom
ZonedDateTime getValidFrom()Value to set. If empty, any existing value is removed.
- Returns:
- validFrom
-
setValidFrom
Value to set. If empty, any existing value is removed.
- Parameters:
validFrom
- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceSetValidFromAction
-
of
factory method to create a shallow copy StandalonePriceSetValidFromAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceSetValidFromAction deepCopy(@Nullable StandalonePriceSetValidFromAction template) factory method to create a deep copy of StandalonePriceSetValidFromAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceSetValidFromAction- Returns:
- builder
-
builder
create builder for StandalonePriceSetValidFromAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceSetValidFromAction
default <T> T withStandalonePriceSetValidFromAction(Function<StandalonePriceSetValidFromAction, 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<StandalonePriceSetValidFromAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-