Interface CustomerRemoveAddressAction
- All Superinterfaces:
CustomerUpdateAction,ResourceUpdateAction<CustomerUpdateAction>
Removing an address from the Customer produces the CustomerAddressRemoved Message.
Either addressId or addressKey is required.
Example to create an instance using the builder pattern
CustomerRemoveAddressAction customerRemoveAddressAction = CustomerRemoveAddressAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerRemoveAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerRemoveAddressActionbuilder(CustomerRemoveAddressAction template) create builder for CustomerRemoveAddressAction instancecopyDeep()static CustomerRemoveAddressActiondeepCopy(CustomerRemoveAddressAction template) factory method to create a deep copy of CustomerRemoveAddressActionidof the Address to remove.keyof the Address to remove.static CustomerRemoveAddressActionof()factory methodstatic CustomerRemoveAddressActionof(CustomerRemoveAddressAction template) factory method to create a shallow copy CustomerRemoveAddressActionvoidsetAddressId(String addressId) idof the Address to remove.voidsetAddressKey(String addressKey) keyof the Address to remove.static com.fasterxml.jackson.core.type.TypeReference<CustomerRemoveAddressAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_ADDRESS
discriminator value for CustomerRemoveAddressAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()idof the Address to remove.- Returns:
- addressId
-
getAddressKey
String getAddressKey()keyof the Address to remove.- Returns:
- addressKey
-
setAddressId
idof the Address to remove.- Parameters:
addressId- value to be set
-
setAddressKey
keyof the Address to remove.- Parameters:
addressKey- value to be set
-
of
factory method- Returns:
- instance of CustomerRemoveAddressAction
-
of
factory method to create a shallow copy CustomerRemoveAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerRemoveAddressAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
deepCopy
@Nullable static CustomerRemoveAddressAction deepCopy(@Nullable CustomerRemoveAddressAction template) factory method to create a deep copy of CustomerRemoveAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerRemoveAddressAction- Returns:
- builder
-
builder
create builder for CustomerRemoveAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerRemoveAddressAction
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
-