@Generated(value="io.sphere.sdk.annotations.processors.generators.UpdateActionsGenerator", comments="Generated from: io.sphere.sdk.shippingmethods.ShippingMethod") public final class ChangeName extends UpdateActionImpl<ShippingMethod>
name property of a ShippingMethod.
withUpdateableShippingMethod(client(), shippingMethod -> { final String newName = randomString(); assertThat(shippingMethod.getName()).isNotEqualTo(newName); final ShippingMethodUpdateCommand cmd = ShippingMethodUpdateCommand.of(shippingMethod, ChangeName.of(newName)); final ShippingMethod updatedShippingMethod = client().executeBlocking(cmd); assertThat(updatedShippingMethod.getName()).isEqualTo(newName); return updatedShippingMethod; });See the test code.
ShippingMethod.getName()| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
static ChangeName |
of(String name)
Creates a new update action from the given parameters.
|
getActionpublic String getName()
public static ChangeName of(String name)
name - the name property ShippingMethod.getName().ChangeName update action.