Package com.commercetools.api.models.me
Interface MyCartUpdateItemShippingAddressAction
- All Superinterfaces:
MyCartUpdateAction,ResourceUpdateAction<MyCartUpdateAction>
Updates an address in itemShippingAddresses by keeping the Address key.
Example to create an instance using the builder pattern
MyCartUpdateItemShippingAddressAction myCartUpdateItemShippingAddressAction = MyCartUpdateItemShippingAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCartUpdateItemShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCartUpdateItemShippingAddressActionbuilder(MyCartUpdateItemShippingAddressAction template) create builder for MyCartUpdateItemShippingAddressAction instancecopyDeep()factory method to create a deep copy of MyCartUpdateItemShippingAddressAction@NotNull @Valid BaseAddressThe new Address with the samekeyas the Address it will replace.of()factory methodof(MyCartUpdateItemShippingAddressAction template) factory method to create a shallow copy MyCartUpdateItemShippingAddressActionvoidsetAddress(BaseAddress address) The new Address with the samekeyas the Address it will replace.static com.fasterxml.jackson.core.type.TypeReference<MyCartUpdateItemShippingAddressAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
UPDATE_ITEM_SHIPPING_ADDRESS
discriminator value for MyCartUpdateItemShippingAddressAction- See Also:
-
-
Method Details
-
getAddress
The new Address with the same
keyas the Address it will replace.- Returns:
- address
-
setAddress
The new Address with the same
keyas the Address it will replace.- Parameters:
address- value to be set
-
of
factory method- Returns:
- instance of MyCartUpdateItemShippingAddressAction
-
of
factory method to create a shallow copy MyCartUpdateItemShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCartUpdateItemShippingAddressAction copyDeep()- Specified by:
copyDeepin interfaceMyCartUpdateAction
-
deepCopy
@Nullable static MyCartUpdateItemShippingAddressAction deepCopy(@Nullable MyCartUpdateItemShippingAddressAction template) factory method to create a deep copy of MyCartUpdateItemShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartUpdateItemShippingAddressAction- Returns:
- builder
-
builder
static MyCartUpdateItemShippingAddressActionBuilder builder(MyCartUpdateItemShippingAddressAction template) create builder for MyCartUpdateItemShippingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartUpdateItemShippingAddressAction
default <T> T withMyCartUpdateItemShippingAddressAction(Function<MyCartUpdateItemShippingAddressAction, 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<MyCartUpdateItemShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-