Class MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder
- All Implemented Interfaces:
Builder<MyCartApplyDeltaToLineItemShippingDetailsTargetsAction>
Example to create an instance using the builder pattern
MyCartApplyDeltaToLineItemShippingDetailsTargetsAction myCartApplyDeltaToLineItemShippingDetailsTargetsAction = MyCartApplyDeltaToLineItemShippingDetailsTargetsAction.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 MyCartApplyDeltaToLineItemShippingDetailsTargetsAction with checking for non-null required valuesbuilds MyCartApplyDeltaToLineItemShippingDetailsTargetsAction 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 MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuildercreate builder for MyCartApplyDeltaToLineItemShippingDetailsTargetsAction 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
-
MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder
public MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder()
-
-
Method Details
-
lineItemId
public MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder lineItemId(@Nullable String lineItemId) id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
public MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder lineItemKey(@Nullable String lineItemKey) key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
targetsDelta
public MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder 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 MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder 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 MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder 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 MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder 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 MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder 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 MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder 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 MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder 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 MyCartApplyDeltaToLineItemShippingDetailsTargetsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCartApplyDeltaToLineItemShippingDetailsTargetsAction>
- Returns:
- MyCartApplyDeltaToLineItemShippingDetailsTargetsAction
-
buildUnchecked
builds MyCartApplyDeltaToLineItemShippingDetailsTargetsAction without checking for non-null required values- Returns:
- MyCartApplyDeltaToLineItemShippingDetailsTargetsAction
-
of
factory method for an instance of MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder- Returns:
- builder
-
of
public static MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder of(MyCartApplyDeltaToLineItemShippingDetailsTargetsAction template) create builder for MyCartApplyDeltaToLineItemShippingDetailsTargetsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-