Class StandalonePriceSetValidFromAndUntilActionImpl
java.lang.Object
com.commercetools.api.models.standalone_price.StandalonePriceSetValidFromAndUntilActionImpl
- All Implemented Interfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>
,StandalonePriceSetValidFromAndUntilAction
,StandalonePriceUpdateAction
,io.vrap.rmf.base.client.ModelBase
public class StandalonePriceSetValidFromAndUntilActionImpl
extends Object
implements StandalonePriceSetValidFromAndUntilAction, io.vrap.rmf.base.client.ModelBase
Updating the validFrom
and validUntil
values generates the StandalonePriceValidFromAndUntilSet 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.standalone_price.StandalonePriceSetValidFromAndUntilAction
SET_VALID_FROM_AND_UNTIL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.Value to set.int
hashCode()
void
setValidFrom
(ZonedDateTime validFrom) Value to set.void
setValidUntil
(ZonedDateTime validUntil) Value to set.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.standalone_price.StandalonePriceSetValidFromAndUntilAction
withStandalonePriceSetValidFromAndUntilAction
Methods inherited from interface com.commercetools.api.models.standalone_price.StandalonePriceUpdateAction
withStandalonePriceUpdateAction
-
Constructor Details
-
StandalonePriceSetValidFromAndUntilActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StandalonePriceUpdateAction>
- Specified by:
getAction
in interfaceStandalonePriceUpdateAction
- Returns:
- action
-
getValidFrom
Value to set. If empty, any existing value is removed.
- Specified by:
getValidFrom
in interfaceStandalonePriceSetValidFromAndUntilAction
- Returns:
- validFrom
-
getValidUntil
Value to set. If empty, any existing value is removed.
- Specified by:
getValidUntil
in interfaceStandalonePriceSetValidFromAndUntilAction
- Returns:
- validUntil
-
setValidFrom
Description copied from interface:StandalonePriceSetValidFromAndUntilAction
Value to set. If empty, any existing value is removed.
- Specified by:
setValidFrom
in interfaceStandalonePriceSetValidFromAndUntilAction
- Parameters:
validFrom
- value to be set
-
setValidUntil
Description copied from interface:StandalonePriceSetValidFromAndUntilAction
Value to set. If empty, any existing value is removed.
- Specified by:
setValidUntil
in interfaceStandalonePriceSetValidFromAndUntilAction
- Parameters:
validUntil
- value to be set
-
equals
-
hashCode
-