@Generated(value="io.sphere.sdk.annotations.processors.generators.UpdateActionGenerator", comments="Generated from: io.sphere.sdk.discountcodes.DiscountCode") public final class SetValidFromAndUntil extends UpdateActionImpl<DiscountCode>
validFrom
property of a DiscountCode
.DiscountCode.getValidFrom()
Modifier and Type | Method and Description |
---|---|
ZonedDateTime |
getValidFrom() |
ZonedDateTime |
getValidUntil() |
static SetValidFromAndUntil |
of(ZonedDateTime validFrom,
ZonedDateTime validUntil)
Creates a new object initialized with the given values.
|
static SetValidFromAndUntil |
ofUnset()
Creates a new object initialized with the given values.
|
SetValidFromAndUntil |
withValidFrom(ZonedDateTime validFrom)
Creates a copied update action initialized with the given parameter, the rest of the parameters are copied from the original object.
|
SetValidFromAndUntil |
withValidUntil(ZonedDateTime validUntil)
Creates a copied update action initialized with the given parameter, the rest of the parameters are copied from the original object.
|
getAction
@Nullable public ZonedDateTime getValidFrom()
@Nullable public ZonedDateTime getValidUntil()
public static SetValidFromAndUntil of(@Nullable ZonedDateTime validFrom, @Nullable ZonedDateTime validUntil)
validFrom
- initial value for the propertyvalidUntil
- initial value for the propertypublic static SetValidFromAndUntil ofUnset()
public SetValidFromAndUntil withValidFrom(ZonedDateTime validFrom)
public SetValidFromAndUntil withValidUntil(ZonedDateTime validUntil)