Class OrderRemoveDeliveryActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderRemoveDeliveryActionBuilder
- All Implemented Interfaces:
Builder<OrderRemoveDeliveryAction>
public class OrderRemoveDeliveryActionBuilder
extends Object
implements Builder<OrderRemoveDeliveryAction>
OrderRemoveDeliveryActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderRemoveDeliveryAction orderRemoveDeliveryAction = OrderRemoveDeliveryAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderRemoveDeliveryAction with checking for non-null required valuesbuilds OrderRemoveDeliveryAction without checking for non-null required valuesdeliveryId
(String deliveryId) id
of an existing Delivery.deliveryKey
(String deliveryKey) key
of an existing Delivery.id
of an existing Delivery.key
of an existing Delivery.of()
factory method for an instance of OrderRemoveDeliveryActionBuilderof
(OrderRemoveDeliveryAction template) create builder for OrderRemoveDeliveryAction instance
-
Constructor Details
-
OrderRemoveDeliveryActionBuilder
public OrderRemoveDeliveryActionBuilder()
-
-
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
-
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
-
build
builds OrderRemoveDeliveryAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderRemoveDeliveryAction>
- Returns:
- OrderRemoveDeliveryAction
-
buildUnchecked
builds OrderRemoveDeliveryAction without checking for non-null required values- Returns:
- OrderRemoveDeliveryAction
-
of
factory method for an instance of OrderRemoveDeliveryActionBuilder- Returns:
- builder
-
of
create builder for OrderRemoveDeliveryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-