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

io.sphere.sdk.cartdiscounts.commands.updateactions.SetValidUntil 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 the valid until property.
 *
 *  {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.cartdiscounts.commands.CartDiscountUpdateCommandTest#setValidUntil()}
 */
public class SetValidUntil extends UpdateActionImpl {
    @Nullable
    private final ZonedDateTime validUntil;

    private SetValidUntil(@Nullable final ZonedDateTime validUntil) {
        super("setValidUntil");
        this.validUntil = validUntil;
    }

    public static SetValidUntil of(@Nullable final ZonedDateTime validUntil) {
        return new SetValidUntil(validUntil);
    }

    @Nullable
    public ZonedDateTime getValidUntil() {
        return validUntil;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy