Interface BusinessUnitRemoveShippingAddressIdAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Removing a shipping address from a Business Unit generates a BusinessUnitShippingAddressRemoved Message.
Example to create an instance using the builder pattern
BusinessUnitRemoveShippingAddressIdAction businessUnitRemoveShippingAddressIdAction = BusinessUnitRemoveShippingAddressIdAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitRemoveShippingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitRemoveShippingAddressIdActioncreate builder for BusinessUnitRemoveShippingAddressIdAction instancefactory method to create a deep copy of BusinessUnitRemoveShippingAddressIdActionID of the address to be removed fromshippingAddressIds
.Key of the address to be removed fromshippingAddressIds
.of()
factory methodof
(BusinessUnitRemoveShippingAddressIdAction template) factory method to create a shallow copy BusinessUnitRemoveShippingAddressIdActionvoid
setAddressId
(String addressId) ID of the address to be removed fromshippingAddressIds
.void
setAddressKey
(String addressKey) Key of the address to be removed fromshippingAddressIds
.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitRemoveShippingAddressIdAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitRemoveShippingAddressIdAction
(Function<BusinessUnitRemoveShippingAddressIdAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
getAction, withBusinessUnitUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_SHIPPING_ADDRESS_ID
discriminator value for BusinessUnitRemoveShippingAddressIdAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()ID of the address to be removed from
shippingAddressIds
. EitheraddressId
oraddressKey
is required.- Returns:
- addressId
-
getAddressKey
String getAddressKey()Key of the address to be removed from
shippingAddressIds
. EitheraddressId
oraddressKey
is required.- Returns:
- addressKey
-
setAddressId
ID of the address to be removed from
shippingAddressIds
. EitheraddressId
oraddressKey
is required.- Parameters:
addressId
- value to be set
-
setAddressKey
Key of the address to be removed from
shippingAddressIds
. EitheraddressId
oraddressKey
is required.- Parameters:
addressKey
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitRemoveShippingAddressIdAction
-
of
static BusinessUnitRemoveShippingAddressIdAction of(BusinessUnitRemoveShippingAddressIdAction template) factory method to create a shallow copy BusinessUnitRemoveShippingAddressIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitRemoveShippingAddressIdAction deepCopy(@Nullable BusinessUnitRemoveShippingAddressIdAction template) factory method to create a deep copy of BusinessUnitRemoveShippingAddressIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitRemoveShippingAddressIdAction- Returns:
- builder
-
builder
static BusinessUnitRemoveShippingAddressIdActionBuilder builder(BusinessUnitRemoveShippingAddressIdAction template) create builder for BusinessUnitRemoveShippingAddressIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitRemoveShippingAddressIdAction
default <T> T withBusinessUnitRemoveShippingAddressIdAction(Function<BusinessUnitRemoveShippingAddressIdAction, 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<BusinessUnitRemoveShippingAddressIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-