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
Constructors -
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 valuesidof the LineItem to update.keyof the LineItem to update.Using positive or negative quantities increases or decreases the number of items shipped to an address.lineItemId(String lineItemId) idof the LineItem to update.lineItemKey(String lineItemKey) keyof 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) idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set- Returns:
- Builder
-
lineItemKey
public CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder lineItemKey(@Nullable String lineItemKey) keyof the LineItem to update. EitherlineItemIdorlineItemKeyis 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
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis 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:
buildin 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
-