Package com.commercetools.api.models.me
Interface MyBusinessUnitRemoveAddressAction
- All Superinterfaces:
MyBusinessUnitUpdateAction
Removing the address from a Business Unit generates the BusinessUnitAddressRemoved Message.
Example to create an instance using the builder pattern
MyBusinessUnitRemoveAddressAction myBusinessUnitRemoveAddressAction = MyBusinessUnitRemoveAddressAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyBusinessUnitRemoveAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyBusinessUnitRemoveAddressActionbuilder(MyBusinessUnitRemoveAddressAction template) create builder for MyBusinessUnitRemoveAddressAction instancecopyDeep()deepCopy(MyBusinessUnitRemoveAddressAction template) factory method to create a deep copy of MyBusinessUnitRemoveAddressActionID of the address to be removed.Key of the address to be removed.of()factory methodof(MyBusinessUnitRemoveAddressAction template) factory method to create a shallow copy MyBusinessUnitRemoveAddressActionvoidsetAddressId(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<MyBusinessUnitRemoveAddressAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyBusinessUnitUpdateAction
getAction, withMyBusinessUnitUpdateAction
-
Field Details
-
REMOVE_ADDRESS
discriminator value for MyBusinessUnitRemoveAddressAction- 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 MyBusinessUnitRemoveAddressAction
-
of
factory method to create a shallow copy MyBusinessUnitRemoveAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyBusinessUnitRemoveAddressAction copyDeep()- Specified by:
copyDeepin interfaceMyBusinessUnitUpdateAction
-
deepCopy
@Nullable static MyBusinessUnitRemoveAddressAction deepCopy(@Nullable MyBusinessUnitRemoveAddressAction template) factory method to create a deep copy of MyBusinessUnitRemoveAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitRemoveAddressAction- Returns:
- builder
-
builder
create builder for MyBusinessUnitRemoveAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitRemoveAddressAction
default <T> T withMyBusinessUnitRemoveAddressAction(Function<MyBusinessUnitRemoveAddressAction, 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<MyBusinessUnitRemoveAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-