@Generated(value="io.sphere.sdk.annotations.processors.generators.UpdateActionsGenerator", comments="Generated from: io.sphere.sdk.shippingmethods.ShippingMethod") public final class SetPredicate extends UpdateActionImpl<ShippingMethod>
predicate
property of a ShippingMethod
.
withUpdateableShippingMethod(client(), shippingMethod -> { final String predicate = "1=1"; final ShippingMethod updatedShippingMethod = client().executeBlocking(ShippingMethodUpdateCommand.of(shippingMethod, SetPredicate.of(predicate))); assertThat(updatedShippingMethod.getPredicate()).isEqualTo(predicate); return updatedShippingMethod; });
See the test code.
ShippingMethod.getPredicate()
Modifier and Type | Method and Description |
---|---|
String |
getPredicate() |
static SetPredicate |
of(String predicate)
Creates a new update action from the given parameters.
|
static SetPredicate |
ofUnset()
Creates a new update action to unset the
predicate property. |
getAction
public static SetPredicate of(@Nullable String predicate)
predicate
- the predicate
property ShippingMethod.getPredicate()
.SetPredicate
update action.public static SetPredicate ofUnset()
predicate
property.SetPredicate
update action.