public final class ChangeName extends UpdateActionImpl<Zone>
See also ZoneUpdateCommand.
ZoneFixtures.withUpdateableZone(client(), zone -> { final String newName = randomString(); assertThat(zone.getName()).isNotEqualTo(newName); final ZoneUpdateCommand command = ZoneUpdateCommand.of(zone, ChangeName.of(newName)); final Zone updatedZone = client().executeBlocking(command); assertThat(updatedZone.getName()).isEqualTo(newName); return updatedZone; }, CountryCode.AM);
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getName() |
static ChangeName |
of(String name) |
getAction
public static ChangeName of(String name)
public String getName()