All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.cartdiscounts.commands.updateactions.SetValidFrom Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
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