Class CartSetShippingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartSetShippingAddressActionBuilder
- All Implemented Interfaces:
Builder<CartSetShippingAddressAction>
public class CartSetShippingAddressActionBuilder
extends Object
implements Builder<CartSetShippingAddressAction>
CartSetShippingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetShippingAddressAction cartSetShippingAddressAction = CartSetShippingAddressAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Value to set.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set.build()
builds CartSetShippingAddressAction with checking for non-null required valuesbuilds CartSetShippingAddressAction without checking for non-null required valuesValue to set.of()
factory method for an instance of CartSetShippingAddressActionBuilderof
(CartSetShippingAddressAction template) create builder for CartSetShippingAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Value to set.
-
Constructor Details
-
CartSetShippingAddressActionBuilder
public CartSetShippingAddressActionBuilder()
-
-
Method Details
-
address
public CartSetShippingAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set. If not set, the shipping address is unset, and the
taxedPrice
andtaxRate
are unset in all Line Items of the Cart.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public CartSetShippingAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Value to set. If not set, the shipping address is unset, and the
taxedPrice
andtaxRate
are unset in all Line Items of the Cart.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Value to set. If not set, the shipping address is unset, and the
taxedPrice
andtaxRate
are unset in all Line Items of the Cart.- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
Value to set. If not set, the shipping address is unset, and the
taxedPrice
andtaxRate
are unset in all Line Items of the Cart.- Returns:
- address
-
build
builds CartSetShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartSetShippingAddressAction>
- Returns:
- CartSetShippingAddressAction
-
buildUnchecked
builds CartSetShippingAddressAction without checking for non-null required values- Returns:
- CartSetShippingAddressAction
-
of
factory method for an instance of CartSetShippingAddressActionBuilder- Returns:
- builder
-
of
create builder for CartSetShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-