Class StagedOrderSetLineItemShippingDetailsActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetLineItemShippingDetailsActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetLineItemShippingDetailsAction>
public class StagedOrderSetLineItemShippingDetailsActionBuilder
extends Object
implements Builder<StagedOrderSetLineItemShippingDetailsAction>
StagedOrderSetLineItemShippingDetailsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetLineItemShippingDetailsAction stagedOrderSetLineItemShippingDetailsAction = StagedOrderSetLineItemShippingDetailsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetLineItemShippingDetailsAction with checking for non-null required valuesbuilds StagedOrderSetLineItemShippingDetailsAction 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 StagedOrderSetLineItemShippingDetailsActionBuildercreate builder for StagedOrderSetLineItemShippingDetailsAction instanceshippingDetails
(ItemShippingDetailsDraft shippingDetails) Value to set.Value to set.Value to set.
-
Constructor Details
-
StagedOrderSetLineItemShippingDetailsActionBuilder
public StagedOrderSetLineItemShippingDetailsActionBuilder()
-
-
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 StagedOrderSetLineItemShippingDetailsActionBuilder 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 StagedOrderSetLineItemShippingDetailsActionBuilder 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 StagedOrderSetLineItemShippingDetailsActionBuilder 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 StagedOrderSetLineItemShippingDetailsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetLineItemShippingDetailsAction>
- Returns:
- StagedOrderSetLineItemShippingDetailsAction
-
buildUnchecked
builds StagedOrderSetLineItemShippingDetailsAction without checking for non-null required values- Returns:
- StagedOrderSetLineItemShippingDetailsAction
-
of
factory method for an instance of StagedOrderSetLineItemShippingDetailsActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetLineItemShippingDetailsActionBuilder of(StagedOrderSetLineItemShippingDetailsAction template) create builder for StagedOrderSetLineItemShippingDetailsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-