Interface CartSetDeliveryAddressCustomFieldAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
- All Known Implementing Classes:
CartSetDeliveryAddressCustomFieldActionImpl
CartSetDeliveryAddressCustomFieldAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetDeliveryAddressCustomFieldAction cartSetDeliveryAddressCustomFieldAction = CartSetDeliveryAddressCustomFieldAction.builder()
.deliveryId("{deliveryId}")
.name("{name}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetDeliveryAddressCustomFieldAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetDeliveryAddressCustomFieldActioncreate builder for CartSetDeliveryAddressCustomFieldAction instancefactory method to create a deep copy of CartSetDeliveryAddressCustomFieldAction@NotNull String
id
of the Delivery.@NotNull String
getName()
Name of the Custom Field.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.of()
factory methodof
(CartSetDeliveryAddressCustomFieldAction template) factory method to create a shallow copy CartSetDeliveryAddressCustomFieldActionvoid
setDeliveryId
(String deliveryId) id
of the Delivery.void
Name of the Custom Field.void
Ifvalue
is absent ornull
, this field will be removed if it exists.static com.fasterxml.jackson.core.type.TypeReference<CartSetDeliveryAddressCustomFieldAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartSetDeliveryAddressCustomFieldAction
(Function<CartSetDeliveryAddressCustomFieldAction, 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_DELIVERY_ADDRESS_CUSTOM_FIELD
discriminator value for CartSetDeliveryAddressCustomFieldAction- See Also:
-
-
Method Details
-
getDeliveryId
id
of the Delivery.- Returns:
- deliveryId
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Returns:
- value
-
setDeliveryId
id
of the Delivery.- Parameters:
deliveryId
- value to be set
-
setName
Name of the Custom Field.
- Parameters:
name
- value to be set
-
setValue
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of CartSetDeliveryAddressCustomFieldAction
-
of
factory method to create a shallow copy CartSetDeliveryAddressCustomFieldAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartSetDeliveryAddressCustomFieldAction deepCopy(@Nullable CartSetDeliveryAddressCustomFieldAction template) factory method to create a deep copy of CartSetDeliveryAddressCustomFieldAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetDeliveryAddressCustomFieldAction- Returns:
- builder
-
builder
static CartSetDeliveryAddressCustomFieldActionBuilder builder(CartSetDeliveryAddressCustomFieldAction template) create builder for CartSetDeliveryAddressCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetDeliveryAddressCustomFieldAction
default <T> T withCartSetDeliveryAddressCustomFieldAction(Function<CartSetDeliveryAddressCustomFieldAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CartSetDeliveryAddressCustomFieldAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-