Class CartRemoveItemShippingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartRemoveItemShippingAddressActionBuilder
- All Implemented Interfaces:
Builder<CartRemoveItemShippingAddressAction>
public class CartRemoveItemShippingAddressActionBuilder
extends Object
implements Builder<CartRemoveItemShippingAddressAction>
CartRemoveItemShippingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartRemoveItemShippingAddressAction cartRemoveItemShippingAddressAction = CartRemoveItemShippingAddressAction.builder()
.addressKey("{addressKey}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddressKey
(String addressKey) key
of the Address to remove fromitemShippingAddresses
.build()
builds CartRemoveItemShippingAddressAction with checking for non-null required valuesbuilds CartRemoveItemShippingAddressAction without checking for non-null required valueskey
of the Address to remove fromitemShippingAddresses
.of()
factory method for an instance of CartRemoveItemShippingAddressActionBuilderof
(CartRemoveItemShippingAddressAction template) create builder for CartRemoveItemShippingAddressAction instance
-
Constructor Details
-
CartRemoveItemShippingAddressActionBuilder
public CartRemoveItemShippingAddressActionBuilder()
-
-
Method Details
-
addressKey
key
of the Address to remove fromitemShippingAddresses
.- Parameters:
addressKey
- value to be set- Returns:
- Builder
-
getAddressKey
key
of the Address to remove fromitemShippingAddresses
.- Returns:
- addressKey
-
build
builds CartRemoveItemShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartRemoveItemShippingAddressAction>
- Returns:
- CartRemoveItemShippingAddressAction
-
buildUnchecked
builds CartRemoveItemShippingAddressAction without checking for non-null required values- Returns:
- CartRemoveItemShippingAddressAction
-
of
factory method for an instance of CartRemoveItemShippingAddressActionBuilder- Returns:
- builder
-
of
public static CartRemoveItemShippingAddressActionBuilder of(CartRemoveItemShippingAddressAction template) create builder for CartRemoveItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-