Class CartUpdateItemShippingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartUpdateItemShippingAddressActionBuilder
- All Implemented Interfaces:
Builder<CartUpdateItemShippingAddressAction>
public class CartUpdateItemShippingAddressActionBuilder
extends Object
implements Builder<CartUpdateItemShippingAddressAction>
CartUpdateItemShippingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartUpdateItemShippingAddressAction cartUpdateItemShippingAddressAction = CartUpdateItemShippingAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) The new Address with the samekey
as the Address it will replace.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) The new Address with the samekey
as the Address it will replace.build()
builds CartUpdateItemShippingAddressAction with checking for non-null required valuesbuilds CartUpdateItemShippingAddressAction without checking for non-null required valuesThe new Address with the samekey
as the Address it will replace.of()
factory method for an instance of CartUpdateItemShippingAddressActionBuilderof
(CartUpdateItemShippingAddressAction template) create builder for CartUpdateItemShippingAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) The new Address with the samekey
as the Address it will replace.
-
Constructor Details
-
CartUpdateItemShippingAddressActionBuilder
public CartUpdateItemShippingAddressActionBuilder()
-
-
Method Details
-
address
public CartUpdateItemShippingAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) The new Address with the same
key
as the Address it will replace.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public CartUpdateItemShippingAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) The new Address with the same
key
as the Address it will replace.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
The new Address with the same
key
as the Address it will replace.- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
The new Address with the same
key
as the Address it will replace.- Returns:
- address
-
build
builds CartUpdateItemShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartUpdateItemShippingAddressAction>
- Returns:
- CartUpdateItemShippingAddressAction
-
buildUnchecked
builds CartUpdateItemShippingAddressAction without checking for non-null required values- Returns:
- CartUpdateItemShippingAddressAction
-
of
factory method for an instance of CartUpdateItemShippingAddressActionBuilder- Returns:
- builder
-
of
public static CartUpdateItemShippingAddressActionBuilder of(CartUpdateItemShippingAddressAction template) create builder for CartUpdateItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-