public interface StoreUpdateCommand extends UpdateCommandDsl<Store,StoreUpdateCommand>, MetaModelReferenceExpansionDsl<Store,StoreUpdateCommand,StoreExpansionModel<Store>>
Store
.
Known UpdateActions
withUpdateableStore(client(), store -> { final LocalizedString newName = SphereTestUtils.randomSlug(); final Store updatedStore = client().executeBlocking(StoreUpdateCommand.of(store, SetName.of(newName))); Assertions.assertThat(updatedStore.getName()).isEqualTo(newName); return updatedStore; });
See the test code.
Store
Modifier and Type | Method and Description |
---|---|
static StoreUpdateCommand |
of(Versioned<Store> versioned,
List<? extends UpdateAction<Store>> updateActions)
Creates a command to update a Store selected by its ID using several update actions.
|
static StoreUpdateCommand |
of(Versioned<Store> versioned,
UpdateAction<Store> updateAction,
UpdateAction<Store>... updateActions)
Creates a command to update a Store selected by its ID using one update action.
|
plusUpdateActions, withAdditionalHttpQueryParameters, withUpdateActions, withVersion, withVersion
getUpdateActions
canDeserialize, deserialize, httpRequestIntent
plusExpansionPaths, withExpansionPaths
plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths
expansionPaths
static StoreUpdateCommand of(Versioned<Store> versioned, List<? extends UpdateAction<Store>> updateActions)
versioned
- the object to update (so directly a Store
) or just the version/ID information of itupdateActions
- the updates@SafeVarargs static StoreUpdateCommand of(Versioned<Store> versioned, UpdateAction<Store> updateAction, UpdateAction<Store>... updateActions)
versioned
- the object to update (so directly a Store
) or just the version/ID information of itupdateAction
- the update to performupdateActions
- additional updates to perform