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