Interface StagedOrderUpdateItemShippingAddressAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderUpdateItemShippingAddressActionImpl
StagedOrderUpdateItemShippingAddressAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderUpdateItemShippingAddressAction stagedOrderUpdateItemShippingAddressAction = StagedOrderUpdateItemShippingAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderUpdateItemShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderUpdateItemShippingAddressActioncreate builder for StagedOrderUpdateItemShippingAddressAction instancefactory method to create a deep copy of StagedOrderUpdateItemShippingAddressAction@NotNull @Valid BaseAddress
Polymorphic base type that represents a postal address and contact details.of()
factory methodof
(StagedOrderUpdateItemShippingAddressAction template) factory method to create a shallow copy StagedOrderUpdateItemShippingAddressActionvoid
setAddress
(BaseAddress address) Polymorphic base type that represents a postal address and contact details.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderUpdateItemShippingAddressAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderUpdateItemShippingAddressAction
(Function<StagedOrderUpdateItemShippingAddressAction, 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
-
UPDATE_ITEM_SHIPPING_ADDRESS
discriminator value for StagedOrderUpdateItemShippingAddressAction- See Also:
-
-
Method Details
-
getAddress
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Returns:
- address
-
setAddress
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderUpdateItemShippingAddressAction
-
of
static StagedOrderUpdateItemShippingAddressAction of(StagedOrderUpdateItemShippingAddressAction template) factory method to create a shallow copy StagedOrderUpdateItemShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderUpdateItemShippingAddressAction deepCopy(@Nullable StagedOrderUpdateItemShippingAddressAction template) factory method to create a deep copy of StagedOrderUpdateItemShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderUpdateItemShippingAddressAction- Returns:
- builder
-
builder
static StagedOrderUpdateItemShippingAddressActionBuilder builder(StagedOrderUpdateItemShippingAddressAction template) create builder for StagedOrderUpdateItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderUpdateItemShippingAddressAction
default <T> T withStagedOrderUpdateItemShippingAddressAction(Function<StagedOrderUpdateItemShippingAddressAction, 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<StagedOrderUpdateItemShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-