@Generated(value="io.sphere.sdk.annotations.processors.generators.UpdateActionsGenerator", comments="Generated from: io.sphere.sdk.shippingmethods.ShippingMethod") @Deprecated public final class SetDescription extends UpdateActionImpl<ShippingMethod>
description property of a ShippingMethod.
withUpdateableShippingMethod(client(), shippingMethod -> { final String newDescription = randomString(); assertThat(shippingMethod.getDescription()).isNotEqualTo(newDescription); final ShippingMethodUpdateCommand cmd = ShippingMethodUpdateCommand.of(shippingMethod, SetDescription.of(newDescription)); final ShippingMethod updatedShippingMethod = client().executeBlocking(cmd); assertThat(updatedShippingMethod.getDescription()).isEqualTo(newDescription); return updatedShippingMethod; });See the test code.
ShippingMethod.getDescription()| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Deprecated.
This method will be removed with the next major SDK update.
|
static SetDescription |
of(String description)
Deprecated.
Creates a new update action from the given parameters.
|
static SetDescription |
ofUnset()
Deprecated.
Creates a new update action to unset the
description property. |
getAction@Nullable @Deprecated public String getDescription()
public static SetDescription of(@Nullable String description)
description - the description property ShippingMethod.getDescription().SetDescription update action.public static SetDescription ofUnset()
description property.SetDescription update action.