io.sphere.sdk.cartdiscounts.commands.updateactions.SetValidFrom Maven / Gradle / Ivy
package io.sphere.sdk.cartdiscounts.commands.updateactions;
import io.sphere.sdk.cartdiscounts.CartDiscount;
import io.sphere.sdk.commands.UpdateActionImpl;
import javax.annotation.Nullable;
import java.time.ZonedDateTime;
/**
* Sets valid from property.
*
* {@doc.gen intro}
*
* {@include.example io.sphere.sdk.cartdiscounts.commands.CartDiscountUpdateCommandTest#setValidFrom()}
*/
public class SetValidFrom extends UpdateActionImpl {
@Nullable
private final ZonedDateTime validFrom;
private SetValidFrom(@Nullable final ZonedDateTime validFrom) {
super("setValidFrom");
this.validFrom = validFrom;
}
public static SetValidFrom of(@Nullable final ZonedDateTime validFrom) {
return new SetValidFrom(validFrom);
}
@Nullable
public ZonedDateTime getValidFrom() {
return validFrom;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy