io.sphere.sdk.states.commands.StateDeleteCommand Maven / Gradle / Ivy
package io.sphere.sdk.states.commands;
import io.sphere.sdk.commands.ByIdDeleteCommandImpl;
import io.sphere.sdk.commands.DeleteCommand;
import io.sphere.sdk.models.Versioned;
import io.sphere.sdk.states.State;
/** Deletes a state.
Example:
{@include.example io.sphere.sdk.states.commands.StateDeleteCommandTest#execution()}
*/
public class StateDeleteCommand extends ByIdDeleteCommandImpl {
private StateDeleteCommand(final Versioned versioned) {
super(versioned, StateEndpoint.ENDPOINT);
}
public static DeleteCommand of(final Versioned versioned) {
return new StateDeleteCommand(versioned);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy