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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitRemoveAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitRemoveAddressActionbuilder(BusinessUnitRemoveAddressAction template) create builder for BusinessUnitRemoveAddressAction instancecopyDeep()deepCopy(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 BusinessUnitRemoveAddressActionvoidsetAddressId(String addressId) ID of the address to be removed.voidsetAddressKey(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
getAction, withBusinessUnitUpdateActionMethods 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
addressIdoraddressKeyis required.- Returns:
- addressId
-
getAddressKey
String getAddressKey()Key of the address to be removed. Either
addressIdoraddressKeyis required.- Returns:
- addressKey
-
setAddressId
ID of the address to be removed. Either
addressIdoraddressKeyis required.- Parameters:
addressId- value to be set
-
setAddressKey
Key of the address to be removed. Either
addressIdoraddressKeyis 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
-
copyDeep
BusinessUnitRemoveAddressAction copyDeep()- Specified by:
copyDeepin interfaceBusinessUnitUpdateAction
-
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
-