Class OrderSetDeliveryAddressActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetDeliveryAddressActionBuilder
- All Implemented Interfaces:
Builder<OrderSetDeliveryAddressAction>
public class OrderSetDeliveryAddressActionBuilder
extends Object
implements Builder<OrderSetDeliveryAddressAction>
OrderSetDeliveryAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetDeliveryAddressAction orderSetDeliveryAddressAction = OrderSetDeliveryAddressAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Value to set.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set.build()
builds OrderSetDeliveryAddressAction with checking for non-null required valuesbuilds OrderSetDeliveryAddressAction without checking for non-null required valuesdeliveryId
(String deliveryId) id
of an existing Delivery.deliveryKey
(String deliveryKey) key
of an existing Delivery.Value to set.id
of an existing Delivery.key
of an existing Delivery.of()
factory method for an instance of OrderSetDeliveryAddressActionBuilderof
(OrderSetDeliveryAddressAction template) create builder for OrderSetDeliveryAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Value to set.
-
Constructor Details
-
OrderSetDeliveryAddressActionBuilder
public OrderSetDeliveryAddressActionBuilder()
-
-
Method Details
-
deliveryId
id
of an existing Delivery.Either
deliveryId
ordeliveryKey
must be provided.- Parameters:
deliveryId
- value to be set- Returns:
- Builder
-
deliveryKey
key
of an existing Delivery.Either
deliveryId
ordeliveryKey
must be provided.- Parameters:
deliveryKey
- value to be set- Returns:
- Builder
-
address
public OrderSetDeliveryAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public OrderSetDeliveryAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Value to set. If empty, any existing value is removed.
- Parameters:
address
- value to be set- Returns:
- Builder
-
getDeliveryId
id
of an existing Delivery.Either
deliveryId
ordeliveryKey
must be provided.- Returns:
- deliveryId
-
getDeliveryKey
key
of an existing Delivery.Either
deliveryId
ordeliveryKey
must be provided.- Returns:
- deliveryKey
-
getAddress
Value to set. If empty, any existing value is removed.
- Returns:
- address
-
build
builds OrderSetDeliveryAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetDeliveryAddressAction>
- Returns:
- OrderSetDeliveryAddressAction
-
buildUnchecked
builds OrderSetDeliveryAddressAction without checking for non-null required values- Returns:
- OrderSetDeliveryAddressAction
-
of
factory method for an instance of OrderSetDeliveryAddressActionBuilder- Returns:
- builder
-
of
create builder for OrderSetDeliveryAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-