Package com.commercetools.api.models.me
Interface MyCustomerRemoveAddressAction
- All Superinterfaces:
MyCustomerUpdateAction
,ResourceUpdateAction<MyCustomerUpdateAction>
Removing an address of the Customer produces the CustomerAddressRemoved Message.
Either addressId
or addressKey
is required.
Example to create an instance using the builder pattern
MyCustomerRemoveAddressAction myCustomerRemoveAddressAction = MyCustomerRemoveAddressAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCustomerRemoveAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCustomerRemoveAddressActionbuilder
(MyCustomerRemoveAddressAction template) create builder for MyCustomerRemoveAddressAction instancedeepCopy
(MyCustomerRemoveAddressAction template) factory method to create a deep copy of MyCustomerRemoveAddressActionid
of the Address to remove.key
of the Address to remove.of()
factory methodof
(MyCustomerRemoveAddressAction template) factory method to create a shallow copy MyCustomerRemoveAddressActionvoid
setAddressId
(String addressId) id
of the Address to remove.void
setAddressKey
(String addressKey) key
of the Address to remove.static com.fasterxml.jackson.core.type.TypeReference<MyCustomerRemoveAddressAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCustomerUpdateAction
getAction, withMyCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_ADDRESS
discriminator value for MyCustomerRemoveAddressAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()id
of the Address to remove.- Returns:
- addressId
-
getAddressKey
String getAddressKey()key
of the Address to remove.- Returns:
- addressKey
-
setAddressId
id
of the Address to remove.- Parameters:
addressId
- value to be set
-
setAddressKey
key
of the Address to remove.- Parameters:
addressKey
- value to be set
-
of
factory method- Returns:
- instance of MyCustomerRemoveAddressAction
-
of
factory method to create a shallow copy MyCustomerRemoveAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyCustomerRemoveAddressAction deepCopy(@Nullable MyCustomerRemoveAddressAction template) factory method to create a deep copy of MyCustomerRemoveAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerRemoveAddressAction- Returns:
- builder
-
builder
create builder for MyCustomerRemoveAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerRemoveAddressAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-