Class ShippingMethodSetPredicateActionBuilder
java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodSetPredicateActionBuilder
- All Implemented Interfaces:
Builder<ShippingMethodSetPredicateAction>
public class ShippingMethodSetPredicateActionBuilder
extends Object
implements Builder<ShippingMethodSetPredicateAction>
ShippingMethodSetPredicateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodSetPredicateAction shippingMethodSetPredicateAction = ShippingMethodSetPredicateAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingMethodSetPredicateAction with checking for non-null required valuesbuilds ShippingMethodSetPredicateAction without checking for non-null required valuesA valid Cart predicate.of()
factory method for an instance of ShippingMethodSetPredicateActionBuilderof
(ShippingMethodSetPredicateAction template) create builder for ShippingMethodSetPredicateAction instanceA valid Cart predicate.
-
Constructor Details
-
ShippingMethodSetPredicateActionBuilder
public ShippingMethodSetPredicateActionBuilder()
-
-
Method Details
-
predicate
A valid Cart predicate. If
predicate
is absent ornull
, it is removed if it exists.- Parameters:
predicate
- value to be set- Returns:
- Builder
-
getPredicate
A valid Cart predicate. If
predicate
is absent ornull
, it is removed if it exists.- Returns:
- predicate
-
build
builds ShippingMethodSetPredicateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingMethodSetPredicateAction>
- Returns:
- ShippingMethodSetPredicateAction
-
buildUnchecked
builds ShippingMethodSetPredicateAction without checking for non-null required values- Returns:
- ShippingMethodSetPredicateAction
-
of
factory method for an instance of ShippingMethodSetPredicateActionBuilder- Returns:
- builder
-
of
create builder for ShippingMethodSetPredicateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-