Package com.commercetools.api.models.me
Class MyCartSetLineItemShippingDetailsActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyCartSetLineItemShippingDetailsActionBuilder
- All Implemented Interfaces:
Builder<MyCartSetLineItemShippingDetailsAction>
public class MyCartSetLineItemShippingDetailsActionBuilder
extends Object
implements Builder<MyCartSetLineItemShippingDetailsAction>
MyCartSetLineItemShippingDetailsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartSetLineItemShippingDetailsAction myCartSetLineItemShippingDetailsAction = MyCartSetLineItemShippingDetailsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyCartSetLineItemShippingDetailsAction with checking for non-null required valuesbuilds MyCartSetLineItemShippingDetailsAction without checking for non-null required valuesid
of the LineItem to update.key
of the LineItem to update.Value to set.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 MyCartSetLineItemShippingDetailsActionBuilderof
(MyCartSetLineItemShippingDetailsAction template) create builder for MyCartSetLineItemShippingDetailsAction instanceshippingDetails
(ItemShippingDetailsDraft shippingDetails) Value to set.Value to set.Value to set.
-
Constructor Details
-
MyCartSetLineItemShippingDetailsActionBuilder
public MyCartSetLineItemShippingDetailsActionBuilder()
-
-
Method Details
-
lineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
shippingDetails
public MyCartSetLineItemShippingDetailsActionBuilder shippingDetails(Function<ItemShippingDetailsDraftBuilder, ItemShippingDetailsDraftBuilder> builder) Value to set. If empty, the existing value is removed.
- Parameters:
builder
- function to build the shippingDetails value- Returns:
- Builder
-
withShippingDetails
public MyCartSetLineItemShippingDetailsActionBuilder withShippingDetails(Function<ItemShippingDetailsDraftBuilder, ItemShippingDetailsDraft> builder) Value to set. If empty, the existing value is removed.
- Parameters:
builder
- function to build the shippingDetails value- Returns:
- Builder
-
shippingDetails
public MyCartSetLineItemShippingDetailsActionBuilder shippingDetails(@Nullable ItemShippingDetailsDraft shippingDetails) Value to set. If empty, the existing value is removed.
- Parameters:
shippingDetails
- value to be set- 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
-
getShippingDetails
Value to set. If empty, the existing value is removed.
- Returns:
- shippingDetails
-
build
builds MyCartSetLineItemShippingDetailsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCartSetLineItemShippingDetailsAction>
- Returns:
- MyCartSetLineItemShippingDetailsAction
-
buildUnchecked
builds MyCartSetLineItemShippingDetailsAction without checking for non-null required values- Returns:
- MyCartSetLineItemShippingDetailsAction
-
of
factory method for an instance of MyCartSetLineItemShippingDetailsActionBuilder- Returns:
- builder
-
of
public static MyCartSetLineItemShippingDetailsActionBuilder of(MyCartSetLineItemShippingDetailsAction template) create builder for MyCartSetLineItemShippingDetailsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-