public interface StateDeleteCommand extends MetaModelReferenceExpansionDsl<State,StateDeleteCommand,StateExpansionModel<State>>, DeleteCommand<State>
StateFixtures.withState(client(), state -> { final State deletedState = client().executeBlocking(StateDeleteCommand.of(state)); });See the test code.
State| Modifier and Type | Method and Description |
|---|---|
static StateDeleteCommand |
of(Versioned<State> versioned)
Creates a command object to delete a
State by ID. |
static StateDeleteCommand |
ofId(String id,
Long version)
Creates a command object to delete a
State by its id. |
static StateDeleteCommand |
ofKey(String key,
Long version)
Creates a command object to delete a
State by its key. |
plusExpansionPaths, withExpansionPathsplusExpansionPaths, plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPathsexpansionPathscanDeserialize, deserialize, httpRequestIntentstatic StateDeleteCommand of(Versioned<State> versioned)
State by ID.versioned - the object to delete (so directly a State) or just the version/ID information of itstatic StateDeleteCommand ofKey(String key, Long version)
State by its key.key - the key of the State to delete, see State.getKey()version - `the current version of the State, see Resource.getVersion()static StateDeleteCommand ofId(String id, Long version)
State by its id.id - the id of the State to delete, see Resource.getId()version - `the current version of the State, see Resource.getVersion()