Package com.commercetools.api.models.me
Class MyCartAddItemShippingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyCartAddItemShippingAddressActionBuilder
- All Implemented Interfaces:
Builder<MyCartAddItemShippingAddressAction>
public class MyCartAddItemShippingAddressActionBuilder
extends Object
implements Builder<MyCartAddItemShippingAddressAction>
MyCartAddItemShippingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartAddItemShippingAddressAction myCartAddItemShippingAddressAction = MyCartAddItemShippingAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Address to append toitemShippingAddresses
.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Address to append toitemShippingAddresses
.build()
builds MyCartAddItemShippingAddressAction with checking for non-null required valuesbuilds MyCartAddItemShippingAddressAction without checking for non-null required valuesAddress to append toitemShippingAddresses
.of()
factory method for an instance of MyCartAddItemShippingAddressActionBuilderof
(MyCartAddItemShippingAddressAction template) create builder for MyCartAddItemShippingAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Address to append toitemShippingAddresses
.
-
Constructor Details
-
MyCartAddItemShippingAddressActionBuilder
public MyCartAddItemShippingAddressActionBuilder()
-
-
Method Details
-
address
public MyCartAddItemShippingAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Address to append to
itemShippingAddresses
.The new address must have a key that is unique accross this Cart.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public MyCartAddItemShippingAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Address to append to
itemShippingAddresses
.The new address must have a key that is unique accross this Cart.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Address to append to
itemShippingAddresses
.The new address must have a key that is unique accross this Cart.
- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
Address to append to
itemShippingAddresses
.The new address must have a key that is unique accross this Cart.
- Returns:
- address
-
build
builds MyCartAddItemShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCartAddItemShippingAddressAction>
- Returns:
- MyCartAddItemShippingAddressAction
-
buildUnchecked
builds MyCartAddItemShippingAddressAction without checking for non-null required values- Returns:
- MyCartAddItemShippingAddressAction
-
of
factory method for an instance of MyCartAddItemShippingAddressActionBuilder- Returns:
- builder
-
of
public static MyCartAddItemShippingAddressActionBuilder of(MyCartAddItemShippingAddressAction template) create builder for MyCartAddItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-