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 Stringdiscriminator 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 FieldContainerSets the Custom Fields fields for theitemShippingAddress.@Valid TypeResourceIdentifiergetType()of()factory methodof(CartSetItemShippingAddressCustomTypeAction template) factory method to create a shallow copy CartSetItemShippingAddressCustomTypeActionvoidsetAddressKey(String addressKey) voidsetFields(FieldContainer fields) Sets the Custom Fields fields for theitemShippingAddress.voidstatic com.fasterxml.jackson.core.type.TypeReference<CartSetItemShippingAddressCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartSetItemShippingAddressCustomTypeAction(Function<CartSetItemShippingAddressCustomTypeAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods 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
keyof the Address initemShippingAddress.- Returns:
- addressKey
-
getType
Defines the Type that extends the
itemShippingAddresswith 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
keyof the Address initemShippingAddress.- Parameters:
addressKey- value to be set
-
setType
Defines the Type that extends the
itemShippingAddresswith 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:
copyDeepin 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
-