public final class SetDescription extends UpdateActionImpl<Zone>
See also ZoneUpdateCommand.
ZoneFixtures.withUpdateableZone(client(), zone -> { final String newDescription = randomString(); assertThat(zone.getDescription()).isNotEqualTo(newDescription); final ZoneUpdateCommand command = ZoneUpdateCommand.of(zone, SetDescription.of(newDescription)); final Zone updatedZone = client().executeBlocking(command); assertThat(updatedZone.getDescription()).isEqualTo(newDescription); return updatedZone; }, CountryCode.AN);
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
static SetDescription |
of(String description) |
getAction
public static SetDescription of(@Nullable String description)