Class StagedOrderSetDeliveryAddressActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetDeliveryAddressActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetDeliveryAddressAction>
public class StagedOrderSetDeliveryAddressActionBuilder
extends Object
implements Builder<StagedOrderSetDeliveryAddressAction>
StagedOrderSetDeliveryAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetDeliveryAddressAction stagedOrderSetDeliveryAddressAction = StagedOrderSetDeliveryAddressAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Value to set.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set.build()
builds StagedOrderSetDeliveryAddressAction with checking for non-null required valuesbuilds StagedOrderSetDeliveryAddressAction 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 StagedOrderSetDeliveryAddressActionBuilderof
(StagedOrderSetDeliveryAddressAction template) create builder for StagedOrderSetDeliveryAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Value to set.
-
Constructor Details
-
StagedOrderSetDeliveryAddressActionBuilder
public StagedOrderSetDeliveryAddressActionBuilder()
-
-
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 StagedOrderSetDeliveryAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public StagedOrderSetDeliveryAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Value to set. If empty, any existing value will be 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 will be removed.
- Returns:
- address
-
build
builds StagedOrderSetDeliveryAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetDeliveryAddressAction>
- Returns:
- StagedOrderSetDeliveryAddressAction
-
buildUnchecked
builds StagedOrderSetDeliveryAddressAction without checking for non-null required values- Returns:
- StagedOrderSetDeliveryAddressAction
-
of
factory method for an instance of StagedOrderSetDeliveryAddressActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetDeliveryAddressActionBuilder of(StagedOrderSetDeliveryAddressAction template) create builder for StagedOrderSetDeliveryAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-