Package com.commercetools.api.models.me
Interface MyCartSetLineItemShippingDetailsAction
- All Superinterfaces:
MyCartUpdateAction,ResourceUpdateAction<MyCartUpdateAction>
MyCartSetLineItemShippingDetailsAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartSetLineItemShippingDetailsAction myCartSetLineItemShippingDetailsAction = MyCartSetLineItemShippingDetailsAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCartSetLineItemShippingDetailsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCartSetLineItemShippingDetailsActioncreate builder for MyCartSetLineItemShippingDetailsAction instancecopyDeep()factory method to create a deep copy of MyCartSetLineItemShippingDetailsActionidof the LineItem to update.keyof the LineItem to update.@Valid ItemShippingDetailsDraftValue to set.of()factory methodof(MyCartSetLineItemShippingDetailsAction template) factory method to create a shallow copy MyCartSetLineItemShippingDetailsActionvoidsetLineItemId(String lineItemId) idof the LineItem to update.voidsetLineItemKey(String lineItemKey) keyof the LineItem to update.voidsetShippingDetails(ItemShippingDetailsDraft shippingDetails) Value to set.static com.fasterxml.jackson.core.type.TypeReference<MyCartSetLineItemShippingDetailsAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyCartSetLineItemShippingDetailsAction(Function<MyCartSetLineItemShippingDetailsAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_LINE_ITEM_SHIPPING_DETAILS
discriminator value for MyCartSetLineItemShippingDetailsAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getShippingDetails
Value to set. If empty, the existing value is removed.
- Returns:
- shippingDetails
-
setLineItemId
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set
-
setLineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemKey- value to be set
-
setShippingDetails
Value to set. If empty, the existing value is removed.
- Parameters:
shippingDetails- value to be set
-
of
factory method- Returns:
- instance of MyCartSetLineItemShippingDetailsAction
-
of
factory method to create a shallow copy MyCartSetLineItemShippingDetailsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCartSetLineItemShippingDetailsAction copyDeep()- Specified by:
copyDeepin interfaceMyCartUpdateAction
-
deepCopy
@Nullable static MyCartSetLineItemShippingDetailsAction deepCopy(@Nullable MyCartSetLineItemShippingDetailsAction template) factory method to create a deep copy of MyCartSetLineItemShippingDetailsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartSetLineItemShippingDetailsAction- Returns:
- builder
-
builder
static MyCartSetLineItemShippingDetailsActionBuilder builder(MyCartSetLineItemShippingDetailsAction template) create builder for MyCartSetLineItemShippingDetailsAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartSetLineItemShippingDetailsAction
default <T> T withMyCartSetLineItemShippingDetailsAction(Function<MyCartSetLineItemShippingDetailsAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<MyCartSetLineItemShippingDetailsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-