Interface CartSetItemShippingAddressCustomTypeAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
CartSetItemShippingAddressCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetItemShippingAddressCustomTypeAction cartSetItemShippingAddressCustomTypeAction = CartSetItemShippingAddressCustomTypeAction.builder()
.addressKey("{addressKey}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetItemShippingAddressCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetItemShippingAddressCustomTypeActioncreate builder for CartSetItemShippingAddressCustomTypeAction instancecopyDeep()
factory method to create a deep copy of CartSetItemShippingAddressCustomTypeAction@NotNull String
@Valid FieldContainer
Sets the Custom Fields fields for theitemShippingAddress
.@Valid TypeResourceIdentifier
getType()
of()
factory methodof
(CartSetItemShippingAddressCustomTypeAction template) factory method to create a shallow copy CartSetItemShippingAddressCustomTypeActionvoid
setAddressKey
(String addressKey) void
setFields
(FieldContainer fields) Sets the Custom Fields fields for theitemShippingAddress
.void
static com.fasterxml.jackson.core.type.TypeReference<CartSetItemShippingAddressCustomTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartSetItemShippingAddressCustomTypeAction
(Function<CartSetItemShippingAddressCustomTypeAction, T> helper) 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
-
SET_ITEM_SHIPPING_ADDRESS_CUSTOM_TYPE
discriminator value for CartSetItemShippingAddressCustomTypeAction- See Also:
-
-
Method Details
-
getAddressKey
key
of the Address initemShippingAddress
.- Returns:
- addressKey
-
getType
Defines the Type that extends the
itemShippingAddress
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theitemShippingAddress
.- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
itemShippingAddress
.- Returns:
- fields
-
setAddressKey
key
of the Address initemShippingAddress
.- Parameters:
addressKey
- value to be set
-
setType
Defines the Type that extends the
itemShippingAddress
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theitemShippingAddress
.- Parameters:
type
- value to be set
-
setFields
Sets the Custom Fields fields for the
itemShippingAddress
.- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of CartSetItemShippingAddressCustomTypeAction
-
of
static CartSetItemShippingAddressCustomTypeAction of(CartSetItemShippingAddressCustomTypeAction template) factory method to create a shallow copy CartSetItemShippingAddressCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
CartSetItemShippingAddressCustomTypeAction copyDeep()- Specified by:
copyDeep
in interfaceCartUpdateAction
-
deepCopy
@Nullable static CartSetItemShippingAddressCustomTypeAction deepCopy(@Nullable CartSetItemShippingAddressCustomTypeAction template) factory method to create a deep copy of CartSetItemShippingAddressCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetItemShippingAddressCustomTypeAction- Returns:
- builder
-
builder
static CartSetItemShippingAddressCustomTypeActionBuilder builder(CartSetItemShippingAddressCustomTypeAction template) create builder for CartSetItemShippingAddressCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetItemShippingAddressCustomTypeAction
default <T> T withCartSetItemShippingAddressCustomTypeAction(Function<CartSetItemShippingAddressCustomTypeAction, 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<CartSetItemShippingAddressCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-