Class StagedOrderSetCustomLineItemShippingDetailsActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetCustomLineItemShippingDetailsActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetCustomLineItemShippingDetailsAction>
public class StagedOrderSetCustomLineItemShippingDetailsActionBuilder
extends Object
implements Builder<StagedOrderSetCustomLineItemShippingDetailsAction>
StagedOrderSetCustomLineItemShippingDetailsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemShippingDetailsAction stagedOrderSetCustomLineItemShippingDetailsAction = StagedOrderSetCustomLineItemShippingDetailsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetCustomLineItemShippingDetailsAction with checking for non-null required valuesbuilds StagedOrderSetCustomLineItemShippingDetailsAction 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 StagedOrderSetCustomLineItemShippingDetailsActionBuildercreate builder for StagedOrderSetCustomLineItemShippingDetailsAction instanceshippingDetails
(ItemShippingDetailsDraft shippingDetails) Value to set.Value to set.Value to set.
-
Constructor Details
-
StagedOrderSetCustomLineItemShippingDetailsActionBuilder
public StagedOrderSetCustomLineItemShippingDetailsActionBuilder()
-
-
Method Details
-
customLineItemId
public StagedOrderSetCustomLineItemShippingDetailsActionBuilder customLineItemId(@Nullable String customLineItemId) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderSetCustomLineItemShippingDetailsActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set- Returns:
- Builder
-
shippingDetails
public StagedOrderSetCustomLineItemShippingDetailsActionBuilder 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 StagedOrderSetCustomLineItemShippingDetailsActionBuilder 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 StagedOrderSetCustomLineItemShippingDetailsActionBuilder 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 StagedOrderSetCustomLineItemShippingDetailsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetCustomLineItemShippingDetailsAction>
- Returns:
- StagedOrderSetCustomLineItemShippingDetailsAction
-
buildUnchecked
builds StagedOrderSetCustomLineItemShippingDetailsAction without checking for non-null required values- Returns:
- StagedOrderSetCustomLineItemShippingDetailsAction
-
of
factory method for an instance of StagedOrderSetCustomLineItemShippingDetailsActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetCustomLineItemShippingDetailsActionBuilder of(StagedOrderSetCustomLineItemShippingDetailsAction template) create builder for StagedOrderSetCustomLineItemShippingDetailsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-