public final class SetKey extends UpdateActionImpl<Product>
Product
, for ProductVariant
s use SetProductVariantKey
.
See also ProductUpdateCommand.
final String key = randomKey(); withProduct(client(), (Product product) -> { final Product updatedProduct = client().executeBlocking(ProductUpdateCommand.of(product, SetKey.of(key))); assertThat(updatedProduct.getKey()).isEqualTo(key); });
See the test code.
ProductLike.getKey()
,
ProductProjection.getKey()
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
static SetKey |
of(String key) |
getAction