Package com.commercetools.api.models.me
Interface MyBusinessUnitRemoveShippingAddressIdAction
- All Superinterfaces:
MyBusinessUnitUpdateAction
Removing a shipping address from a Business Unit generates a BusinessUnitShippingAddressRemoved Message.
Example to create an instance using the builder pattern
MyBusinessUnitRemoveShippingAddressIdAction myBusinessUnitRemoveShippingAddressIdAction = MyBusinessUnitRemoveShippingAddressIdAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyBusinessUnitRemoveShippingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyBusinessUnitRemoveShippingAddressIdActioncreate builder for MyBusinessUnitRemoveShippingAddressIdAction instancefactory method to create a deep copy of MyBusinessUnitRemoveShippingAddressIdActionID of the shipping address to be removed.Key of the shipping address to be removed.of()
factory methodfactory method to create a shallow copy MyBusinessUnitRemoveShippingAddressIdActionvoid
setAddressId
(String addressId) ID of the shipping address to be removed.void
setAddressKey
(String addressKey) Key of the shipping address to be removed.static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitRemoveShippingAddressIdAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyBusinessUnitRemoveShippingAddressIdAction
(Function<MyBusinessUnitRemoveShippingAddressIdAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyBusinessUnitUpdateAction
getAction, withMyBusinessUnitUpdateAction
-
Field Details
-
REMOVE_SHIPPING_ADDRESS_ID
discriminator value for MyBusinessUnitRemoveShippingAddressIdAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()ID of the shipping address to be removed. Either
addressId
oraddressKey
is required.- Returns:
- addressId
-
getAddressKey
String getAddressKey()Key of the shipping address to be removed. Either
addressId
oraddressKey
is required.- Returns:
- addressKey
-
setAddressId
ID of the shipping address to be removed. Either
addressId
oraddressKey
is required.- Parameters:
addressId
- value to be set
-
setAddressKey
Key of the shipping address to be removed. Either
addressId
oraddressKey
is required.- Parameters:
addressKey
- value to be set
-
of
factory method- Returns:
- instance of MyBusinessUnitRemoveShippingAddressIdAction
-
of
static MyBusinessUnitRemoveShippingAddressIdAction of(MyBusinessUnitRemoveShippingAddressIdAction template) factory method to create a shallow copy MyBusinessUnitRemoveShippingAddressIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyBusinessUnitRemoveShippingAddressIdAction deepCopy(@Nullable MyBusinessUnitRemoveShippingAddressIdAction template) factory method to create a deep copy of MyBusinessUnitRemoveShippingAddressIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitRemoveShippingAddressIdAction- Returns:
- builder
-
builder
static MyBusinessUnitRemoveShippingAddressIdActionBuilder builder(MyBusinessUnitRemoveShippingAddressIdAction template) create builder for MyBusinessUnitRemoveShippingAddressIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitRemoveShippingAddressIdAction
default <T> T withMyBusinessUnitRemoveShippingAddressIdAction(Function<MyBusinessUnitRemoveShippingAddressIdAction, 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<MyBusinessUnitRemoveShippingAddressIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-