Interface ShippingMethodSetPredicateAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>
,ShippingMethodUpdateAction
ShippingMethodSetPredicateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodSetPredicateAction shippingMethodSetPredicateAction = ShippingMethodSetPredicateAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShippingMethodSetPredicateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShippingMethodSetPredicateActionbuilder
(ShippingMethodSetPredicateAction template) create builder for ShippingMethodSetPredicateAction instancedeepCopy
(ShippingMethodSetPredicateAction template) factory method to create a deep copy of ShippingMethodSetPredicateActionA valid Cart predicate.of()
factory methodof
(ShippingMethodSetPredicateAction template) factory method to create a shallow copy ShippingMethodSetPredicateActionvoid
setPredicate
(String predicate) A valid Cart predicate.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodSetPredicateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.shipping_method.ShippingMethodUpdateAction
getAction, withShippingMethodUpdateAction
-
Field Details
-
SET_PREDICATE
discriminator value for ShippingMethodSetPredicateAction- See Also:
-
-
Method Details
-
getPredicate
String getPredicate()A valid Cart predicate. If
predicate
is absent ornull
, it is removed if it exists.- Returns:
- predicate
-
setPredicate
A valid Cart predicate. If
predicate
is absent ornull
, it is removed if it exists.- Parameters:
predicate
- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodSetPredicateAction
-
of
factory method to create a shallow copy ShippingMethodSetPredicateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShippingMethodSetPredicateAction deepCopy(@Nullable ShippingMethodSetPredicateAction template) factory method to create a deep copy of ShippingMethodSetPredicateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodSetPredicateAction- Returns:
- builder
-
builder
create builder for ShippingMethodSetPredicateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodSetPredicateAction
default <T> T withShippingMethodSetPredicateAction(Function<ShippingMethodSetPredicateAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodSetPredicateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-