Class OrderAddItemShippingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderAddItemShippingAddressActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<OrderAddItemShippingAddressAction>
public class OrderAddItemShippingAddressActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<OrderAddItemShippingAddressAction>
OrderAddItemShippingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderAddItemShippingAddressAction orderAddItemShippingAddressAction = OrderAddItemShippingAddressAction.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 OrderAddItemShippingAddressAction with checking for non-null required valuesbuilds OrderAddItemShippingAddressAction without checking for non-null required valuesAddress to append toitemShippingAddresses
.of()
factory method for an instance of OrderAddItemShippingAddressActionBuilderof
(OrderAddItemShippingAddressAction template) create builder for OrderAddItemShippingAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Address to append toitemShippingAddresses
.
-
Constructor Details
-
OrderAddItemShippingAddressActionBuilder
public OrderAddItemShippingAddressActionBuilder()
-
-
Method Details
-
address
public OrderAddItemShippingAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Address to append to
itemShippingAddresses
. The new Address must have akey
that is unique across this Order.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public OrderAddItemShippingAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Address to append to
itemShippingAddresses
. The new Address must have akey
that is unique across this Order.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Address to append to
itemShippingAddresses
. The new Address must have akey
that is unique across this Order.- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
Address to append to
itemShippingAddresses
. The new Address must have akey
that is unique across this Order.- Returns:
- address
-
build
builds OrderAddItemShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<OrderAddItemShippingAddressAction>
- Returns:
- OrderAddItemShippingAddressAction
-
buildUnchecked
builds OrderAddItemShippingAddressAction without checking for non-null required values- Returns:
- OrderAddItemShippingAddressAction
-
of
factory method for an instance of OrderAddItemShippingAddressActionBuilder- Returns:
- builder
-
of
public static OrderAddItemShippingAddressActionBuilder of(OrderAddItemShippingAddressAction template) create builder for OrderAddItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-