public final class SetDescription extends UpdateActionImpl<Type>
See also TypeUpdateCommand.
withUpdateableType(client(), type -> { final LocalizedString newDescription = randomSlug(); final Type updatedType = client().executeBlocking(TypeUpdateCommand.of(type, SetDescription.of(newDescription))); assertThat(updatedType.getDescription()).isEqualTo(newDescription); return updatedType; });
See the test code.
Modifier and Type | Method and Description |
---|---|
LocalizedString |
getDescription() |
static SetDescription |
of(LocalizedString description) |
getAction
public static SetDescription of(@Nullable LocalizedString description)
@Nullable public LocalizedString getDescription()