Interface StagedOrderSetShippingAddressCustomFieldAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
StagedOrderSetShippingAddressCustomFieldAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetShippingAddressCustomFieldAction stagedOrderSetShippingAddressCustomFieldAction = StagedOrderSetShippingAddressCustomFieldAction.builder()
.name("{name}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetShippingAddressCustomFieldAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetShippingAddressCustomFieldActioncreate builder for StagedOrderSetShippingAddressCustomFieldAction instancefactory method to create a deep copy of StagedOrderSetShippingAddressCustomFieldAction@NotNull String
getName()
Name of the Custom Field.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.of()
factory methodfactory method to create a shallow copy StagedOrderSetShippingAddressCustomFieldActionvoid
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<StagedOrderSetShippingAddressCustomFieldAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderSetShippingAddressCustomFieldAction
(Function<StagedOrderSetShippingAddressCustomFieldAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_SHIPPING_ADDRESS_CUSTOM_FIELD
discriminator value for StagedOrderSetShippingAddressCustomFieldAction- See Also:
-
-
Method Details
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
Object 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
-
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 StagedOrderSetShippingAddressCustomFieldAction
-
of
static StagedOrderSetShippingAddressCustomFieldAction of(StagedOrderSetShippingAddressCustomFieldAction template) factory method to create a shallow copy StagedOrderSetShippingAddressCustomFieldAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetShippingAddressCustomFieldAction deepCopy(@Nullable StagedOrderSetShippingAddressCustomFieldAction template) factory method to create a deep copy of StagedOrderSetShippingAddressCustomFieldAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetShippingAddressCustomFieldAction- Returns:
- builder
-
builder
static StagedOrderSetShippingAddressCustomFieldActionBuilder builder(StagedOrderSetShippingAddressCustomFieldAction template) create builder for StagedOrderSetShippingAddressCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetShippingAddressCustomFieldAction
default <T> T withStagedOrderSetShippingAddressCustomFieldAction(Function<StagedOrderSetShippingAddressCustomFieldAction, 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<StagedOrderSetShippingAddressCustomFieldAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-