public final class SetKey extends UpdateActionImpl<Review>
See also ReviewUpdateCommand.
withUpdateableReview(client(), (Review review) -> { final String key = randomKey(); final Review updatedReview = client().executeBlocking(ReviewUpdateCommand.of(review, SetKey.of(key))); assertThat(updatedReview.getKey()).isEqualTo(key); return updatedReview; });
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
static SetKey |
of(String key) |
getAction