Interface CartUpdateItemShippingAddressAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
Updates an address in itemShippingAddresses
by keeping the Address key
.
Example to create an instance using the builder pattern
CartUpdateItemShippingAddressAction cartUpdateItemShippingAddressAction = CartUpdateItemShippingAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartUpdateItemShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartUpdateItemShippingAddressActionbuilder
(CartUpdateItemShippingAddressAction template) create builder for CartUpdateItemShippingAddressAction instancedeepCopy
(CartUpdateItemShippingAddressAction template) factory method to create a deep copy of CartUpdateItemShippingAddressAction@NotNull @Valid BaseAddress
The new Address with the samekey
as the Address it will replace.of()
factory methodof
(CartUpdateItemShippingAddressAction template) factory method to create a shallow copy CartUpdateItemShippingAddressActionvoid
setAddress
(BaseAddress address) The new Address with the samekey
as the Address it will replace.static com.fasterxml.jackson.core.type.TypeReference<CartUpdateItemShippingAddressAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
UPDATE_ITEM_SHIPPING_ADDRESS
discriminator value for CartUpdateItemShippingAddressAction- See Also:
-
-
Method Details
-
getAddress
The new Address with the same
key
as the Address it will replace.- Returns:
- address
-
setAddress
The new Address with the same
key
as the Address it will replace.- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of CartUpdateItemShippingAddressAction
-
of
factory method to create a shallow copy CartUpdateItemShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartUpdateItemShippingAddressAction deepCopy(@Nullable CartUpdateItemShippingAddressAction template) factory method to create a deep copy of CartUpdateItemShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartUpdateItemShippingAddressAction- Returns:
- builder
-
builder
static CartUpdateItemShippingAddressActionBuilder builder(CartUpdateItemShippingAddressAction template) create builder for CartUpdateItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartUpdateItemShippingAddressAction
default <T> T withCartUpdateItemShippingAddressAction(Function<CartUpdateItemShippingAddressAction, 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<CartUpdateItemShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-