Interface BusinessUnitRemoveAddressAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Removing the address from a Business Unit generates the BusinessUnitAddressRemoved Message.
Example to create an instance using the builder pattern
BusinessUnitRemoveAddressAction businessUnitRemoveAddressAction = BusinessUnitRemoveAddressAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitRemoveAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitRemoveAddressActionbuilder
(BusinessUnitRemoveAddressAction template) create builder for BusinessUnitRemoveAddressAction instancedeepCopy
(BusinessUnitRemoveAddressAction template) factory method to create a deep copy of BusinessUnitRemoveAddressActionID of the address to be removed.Key of the address to be removed.of()
factory methodof
(BusinessUnitRemoveAddressAction template) factory method to create a shallow copy BusinessUnitRemoveAddressActionvoid
setAddressId
(String addressId) ID of the address to be removed.void
setAddressKey
(String addressKey) Key of the address to be removed.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitRemoveAddressAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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_ADDRESS
discriminator value for BusinessUnitRemoveAddressAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()ID of the address to be removed. Either
addressId
oraddressKey
is required.- Returns:
- addressId
-
getAddressKey
String getAddressKey()Key of the address to be removed. Either
addressId
oraddressKey
is required.- Returns:
- addressKey
-
setAddressId
ID of the address to be removed. Either
addressId
oraddressKey
is required.- Parameters:
addressId
- value to be set
-
setAddressKey
Key of the address to be removed. Either
addressId
oraddressKey
is required.- Parameters:
addressKey
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitRemoveAddressAction
-
of
factory method to create a shallow copy BusinessUnitRemoveAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitRemoveAddressAction deepCopy(@Nullable BusinessUnitRemoveAddressAction template) factory method to create a deep copy of BusinessUnitRemoveAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitRemoveAddressAction- Returns:
- builder
-
builder
create builder for BusinessUnitRemoveAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitRemoveAddressAction
default <T> T withBusinessUnitRemoveAddressAction(Function<BusinessUnitRemoveAddressAction, 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<BusinessUnitRemoveAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-