io.sphere.sdk.orders.commands.updateactions.ChangeShipmentState Maven / Gradle / Ivy
package io.sphere.sdk.orders.commands.updateactions;
import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.orders.Order;
import io.sphere.sdk.orders.ShipmentState;
/**
Changes the shipment state.
{@doc.gen intro}
{@include.example io.sphere.sdk.orders.commands.OrderUpdateCommandTest#changeShipmentState()}
*/
public class ChangeShipmentState extends UpdateActionImpl {
private final ShipmentState shipmentState;
private ChangeShipmentState(final ShipmentState shipmentState) {
super("changeShipmentState");
this.shipmentState = shipmentState;
}
public static ChangeShipmentState of(final ShipmentState shipmentState) {
return new ChangeShipmentState(shipmentState);
}
public ShipmentState getShipmentState() {
return shipmentState;
}
}