Class OrderSetLineItemShippingDetailsActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetLineItemShippingDetailsActionBuilder
- All Implemented Interfaces:
Builder<OrderSetLineItemShippingDetailsAction>
public class OrderSetLineItemShippingDetailsActionBuilder
extends Object
implements Builder<OrderSetLineItemShippingDetailsAction>
OrderSetLineItemShippingDetailsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetLineItemShippingDetailsAction orderSetLineItemShippingDetailsAction = OrderSetLineItemShippingDetailsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetLineItemShippingDetailsAction with checking for non-null required valuesbuilds OrderSetLineItemShippingDetailsAction without checking for non-null required valuesid
of the LineItem to update.key
of the LineItem to update.Value to set.lineItemId
(String lineItemId) id
of the LineItem to update.lineItemKey
(String lineItemKey) key
of the LineItem to update.of()
factory method for an instance of OrderSetLineItemShippingDetailsActionBuilderof
(OrderSetLineItemShippingDetailsAction template) create builder for OrderSetLineItemShippingDetailsAction instanceshippingDetails
(ItemShippingDetailsDraft shippingDetails) Value to set.Value to set.Value to set.
-
Constructor Details
-
OrderSetLineItemShippingDetailsActionBuilder
public OrderSetLineItemShippingDetailsActionBuilder()
-
-
Method Details
-
lineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
shippingDetails
public OrderSetLineItemShippingDetailsActionBuilder shippingDetails(Function<ItemShippingDetailsDraftBuilder, ItemShippingDetailsDraftBuilder> builder) Value to set. If empty, the existing value is removed.
- Parameters:
builder
- function to build the shippingDetails value- Returns:
- Builder
-
withShippingDetails
public OrderSetLineItemShippingDetailsActionBuilder withShippingDetails(Function<ItemShippingDetailsDraftBuilder, ItemShippingDetailsDraft> builder) Value to set. If empty, the existing value is removed.
- Parameters:
builder
- function to build the shippingDetails value- Returns:
- Builder
-
shippingDetails
public OrderSetLineItemShippingDetailsActionBuilder shippingDetails(@Nullable ItemShippingDetailsDraft shippingDetails) Value to set. If empty, the existing value is removed.
- Parameters:
shippingDetails
- value to be set- Returns:
- Builder
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getShippingDetails
Value to set. If empty, the existing value is removed.
- Returns:
- shippingDetails
-
build
builds OrderSetLineItemShippingDetailsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetLineItemShippingDetailsAction>
- Returns:
- OrderSetLineItemShippingDetailsAction
-
buildUnchecked
builds OrderSetLineItemShippingDetailsAction without checking for non-null required values- Returns:
- OrderSetLineItemShippingDetailsAction
-
of
factory method for an instance of OrderSetLineItemShippingDetailsActionBuilder- Returns:
- builder
-
of
public static OrderSetLineItemShippingDetailsActionBuilder of(OrderSetLineItemShippingDetailsAction template) create builder for OrderSetLineItemShippingDetailsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-