Class OrderSetCustomLineItemShippingDetailsActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetCustomLineItemShippingDetailsActionBuilder
- All Implemented Interfaces:
Builder<OrderSetCustomLineItemShippingDetailsAction>
public class OrderSetCustomLineItemShippingDetailsActionBuilder
extends Object
implements Builder<OrderSetCustomLineItemShippingDetailsAction>
OrderSetCustomLineItemShippingDetailsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetCustomLineItemShippingDetailsAction orderSetCustomLineItemShippingDetailsAction = OrderSetCustomLineItemShippingDetailsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetCustomLineItemShippingDetailsAction with checking for non-null required valuesbuilds OrderSetCustomLineItemShippingDetailsAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.customLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.id
of the CustomLineItem to update.key
of the CustomLineItem to update.Value to set.of()
factory method for an instance of OrderSetCustomLineItemShippingDetailsActionBuildercreate builder for OrderSetCustomLineItemShippingDetailsAction instanceshippingDetails
(ItemShippingDetailsDraft shippingDetails) Value to set.Value to set.Value to set.
-
Constructor Details
-
OrderSetCustomLineItemShippingDetailsActionBuilder
public OrderSetCustomLineItemShippingDetailsActionBuilder()
-
-
Method Details
-
customLineItemId
public OrderSetCustomLineItemShippingDetailsActionBuilder customLineItemId(@Nullable String customLineItemId) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public OrderSetCustomLineItemShippingDetailsActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set- Returns:
- Builder
-
shippingDetails
public OrderSetCustomLineItemShippingDetailsActionBuilder shippingDetails(Function<ItemShippingDetailsDraftBuilder, ItemShippingDetailsDraftBuilder> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the shippingDetails value- Returns:
- Builder
-
withShippingDetails
public OrderSetCustomLineItemShippingDetailsActionBuilder withShippingDetails(Function<ItemShippingDetailsDraftBuilder, ItemShippingDetailsDraft> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the shippingDetails value- Returns:
- Builder
-
shippingDetails
public OrderSetCustomLineItemShippingDetailsActionBuilder shippingDetails(@Nullable ItemShippingDetailsDraft shippingDetails) Value to set. If empty, any existing value is removed.
- Parameters:
shippingDetails
- value to be set- Returns:
- Builder
-
getCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
getShippingDetails
Value to set. If empty, any existing value is removed.
- Returns:
- shippingDetails
-
build
builds OrderSetCustomLineItemShippingDetailsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetCustomLineItemShippingDetailsAction>
- Returns:
- OrderSetCustomLineItemShippingDetailsAction
-
buildUnchecked
builds OrderSetCustomLineItemShippingDetailsAction without checking for non-null required values- Returns:
- OrderSetCustomLineItemShippingDetailsAction
-
of
factory method for an instance of OrderSetCustomLineItemShippingDetailsActionBuilder- Returns:
- builder
-
of
public static OrderSetCustomLineItemShippingDetailsActionBuilder of(OrderSetCustomLineItemShippingDetailsAction template) create builder for OrderSetCustomLineItemShippingDetailsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-