
io.sphere.sdk.inventories.commands.updateactions.SetRestockableInDays 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.util.Optional;
/**
*
* {@include.example io.sphere.sdk.inventories.commands.InventoryEntryUpdateCommandTest#setRestockableInDays()}
*/
public class SetRestockableInDays extends UpdateAction {
private final Optional restockableInDays;
private SetRestockableInDays(final Optional restockableInDays) {
super("setRestockableInDays");
this.restockableInDays = restockableInDays;
}
public Optional getRestockableInDays() {
return restockableInDays;
}
public static SetRestockableInDays of(final int restockableInDays) {
return of(Optional.of(restockableInDays));
}
public static SetRestockableInDays of(final Optional restockableInDays) {
return new SetRestockableInDays(restockableInDays);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy