Class CartRemoveShippingMethodActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartRemoveShippingMethodActionBuilder
- All Implemented Interfaces:
Builder<CartRemoveShippingMethodAction>
public class CartRemoveShippingMethodActionBuilder
extends Object
implements Builder<CartRemoveShippingMethodAction>
CartRemoveShippingMethodActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartRemoveShippingMethodAction cartRemoveShippingMethodAction = CartRemoveShippingMethodAction.builder()
.shippingKey("{shippingKey}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartRemoveShippingMethodAction with checking for non-null required valuesbuilds CartRemoveShippingMethodAction without checking for non-null required valuesUser-defined unique identifier of the Shipping Method to remove from the Cart.of()
factory method for an instance of CartRemoveShippingMethodActionBuilderof
(CartRemoveShippingMethodAction template) create builder for CartRemoveShippingMethodAction instanceshippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method to remove from the Cart.
-
Constructor Details
-
CartRemoveShippingMethodActionBuilder
public CartRemoveShippingMethodActionBuilder()
-
-
Method Details
-
shippingKey
User-defined unique identifier of the Shipping Method to remove from the Cart.
- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
getShippingKey
User-defined unique identifier of the Shipping Method to remove from the Cart.
- Returns:
- shippingKey
-
build
builds CartRemoveShippingMethodAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartRemoveShippingMethodAction>
- Returns:
- CartRemoveShippingMethodAction
-
buildUnchecked
builds CartRemoveShippingMethodAction without checking for non-null required values- Returns:
- CartRemoveShippingMethodAction
-
of
factory method for an instance of CartRemoveShippingMethodActionBuilder- Returns:
- builder
-
of
create builder for CartRemoveShippingMethodAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-