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

io.sphere.sdk.inventories.commands.updateactions.SetExpectedDelivery Maven / Gradle / Ivy

The newest version!
package io.sphere.sdk.inventories.commands.updateactions;

import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.inventories.InventoryEntry;

import java.time.Instant;
import java.util.Optional;

/**
 *
 * {@include.example io.sphere.sdk.inventories.commands.InventoryEntryUpdateCommandTest#setExpectedDelivery()}
 */
public class SetExpectedDelivery extends UpdateAction {
    private final Optional expectedDelivery;

    private SetExpectedDelivery(final Optional expectedDelivery) {
        super("setExpectedDelivery");
        this.expectedDelivery = expectedDelivery;
    }

    public Optional getExpectedDelivery() {
        return expectedDelivery;
    }

    public static SetExpectedDelivery of(final Instant expectedDelivery) {
        return of(Optional.of(expectedDelivery));
    }

    public static SetExpectedDelivery of(final Optional expectedDelivery) {
        return new SetExpectedDelivery(expectedDelivery);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy