Class CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder
- All Implemented Interfaces:
Builder<CartApplyDeltaToLineItemShippingDetailsTargetsAction>
Example to create an instance using the builder pattern
CartApplyDeltaToLineItemShippingDetailsTargetsAction cartApplyDeltaToLineItemShippingDetailsTargetsAction = CartApplyDeltaToLineItemShippingDetailsTargetsAction.builder()
.plusTargetsDelta(targetsDeltaBuilder -> targetsDeltaBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionUsing positive or negative quantities increases or decreases the number of items shipped to an address.build()
builds CartApplyDeltaToLineItemShippingDetailsTargetsAction with checking for non-null required valuesbuilds CartApplyDeltaToLineItemShippingDetailsTargetsAction without checking for non-null required valuesid
of the LineItem to update.key
of the LineItem to update.Using positive or negative quantities increases or decreases the number of items shipped to an address.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 CartApplyDeltaToLineItemShippingDetailsTargetsActionBuildercreate builder for CartApplyDeltaToLineItemShippingDetailsTargetsAction instanceplusTargetsDelta
(ItemShippingTarget... targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.Using positive or negative quantities increases or decreases the number of items shipped to an address.Using positive or negative quantities increases or decreases the number of items shipped to an address.targetsDelta
(ItemShippingTarget... targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.targetsDelta
(List<ItemShippingTarget> targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.Using positive or negative quantities increases or decreases the number of items shipped to an address.
-
Constructor Details
-
CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder
public CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder()
-
-
Method Details
-
lineItemId
public CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder lineItemId(@Nullable String lineItemId) id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
public CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder lineItemKey(@Nullable String lineItemKey) key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
targetsDelta
public CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder targetsDelta(ItemShippingTarget... targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
targetsDelta
- value to be set- Returns:
- Builder
-
targetsDelta
public CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder targetsDelta(List<ItemShippingTarget> targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
targetsDelta
- value to be set- Returns:
- Builder
-
plusTargetsDelta
public CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder plusTargetsDelta(ItemShippingTarget... targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
targetsDelta
- value to be set- Returns:
- Builder
-
plusTargetsDelta
public CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder plusTargetsDelta(Function<ItemShippingTargetBuilder, ItemShippingTargetBuilder> builder) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
builder
- function to build the targetsDelta value- Returns:
- Builder
-
withTargetsDelta
public CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder withTargetsDelta(Function<ItemShippingTargetBuilder, ItemShippingTargetBuilder> builder) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
builder
- function to build the targetsDelta value- Returns:
- Builder
-
addTargetsDelta
public CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder addTargetsDelta(Function<ItemShippingTargetBuilder, ItemShippingTarget> builder) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
builder
- function to build the targetsDelta value- Returns:
- Builder
-
setTargetsDelta
public CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder setTargetsDelta(Function<ItemShippingTargetBuilder, ItemShippingTarget> builder) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
builder
- function to build the targetsDelta value- 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
-
getTargetsDelta
Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Returns:
- targetsDelta
-
build
builds CartApplyDeltaToLineItemShippingDetailsTargetsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartApplyDeltaToLineItemShippingDetailsTargetsAction>
- Returns:
- CartApplyDeltaToLineItemShippingDetailsTargetsAction
-
buildUnchecked
builds CartApplyDeltaToLineItemShippingDetailsTargetsAction without checking for non-null required values- Returns:
- CartApplyDeltaToLineItemShippingDetailsTargetsAction
-
of
factory method for an instance of CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder- Returns:
- builder
-
of
public static CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder of(CartApplyDeltaToLineItemShippingDetailsTargetsAction template) create builder for CartApplyDeltaToLineItemShippingDetailsTargetsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-