Interface BusinessUnitRemoveBillingAddressIdAction
- All Superinterfaces:
BusinessUnitUpdateAction,ResourceUpdateAction<BusinessUnitUpdateAction>
Removing a billing address from a Business Unit generates a BusinessUnitBillingAddressRemoved Message.
Example to create an instance using the builder pattern
BusinessUnitRemoveBillingAddressIdAction businessUnitRemoveBillingAddressIdAction = BusinessUnitRemoveBillingAddressIdAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitRemoveBillingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitRemoveBillingAddressIdActioncreate builder for BusinessUnitRemoveBillingAddressIdAction instancecopyDeep()factory method to create a deep copy of BusinessUnitRemoveBillingAddressIdActionID of the address to be removed frombillingAddressIds.Key of the address to be removed frombillingAddressIds.of()factory methodof(BusinessUnitRemoveBillingAddressIdAction template) factory method to create a shallow copy BusinessUnitRemoveBillingAddressIdActionvoidsetAddressId(String addressId) ID of the address to be removed frombillingAddressIds.voidsetAddressKey(String addressKey) Key of the address to be removed frombillingAddressIds.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitRemoveBillingAddressIdAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithBusinessUnitRemoveBillingAddressIdAction(Function<BusinessUnitRemoveBillingAddressIdAction, T> helper) accessor 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_BILLING_ADDRESS_ID
discriminator value for BusinessUnitRemoveBillingAddressIdAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()ID of the address to be removed from
billingAddressIds. EitheraddressIdoraddressKeyis required.- Returns:
- addressId
-
getAddressKey
String getAddressKey()Key of the address to be removed from
billingAddressIds. EitheraddressIdoraddressKeyis required.- Returns:
- addressKey
-
setAddressId
ID of the address to be removed from
billingAddressIds. EitheraddressIdoraddressKeyis required.- Parameters:
addressId- value to be set
-
setAddressKey
Key of the address to be removed from
billingAddressIds. EitheraddressIdoraddressKeyis required.- Parameters:
addressKey- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitRemoveBillingAddressIdAction
-
of
static BusinessUnitRemoveBillingAddressIdAction of(BusinessUnitRemoveBillingAddressIdAction template) factory method to create a shallow copy BusinessUnitRemoveBillingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitRemoveBillingAddressIdAction copyDeep()- Specified by:
copyDeepin interfaceBusinessUnitUpdateAction
-
deepCopy
@Nullable static BusinessUnitRemoveBillingAddressIdAction deepCopy(@Nullable BusinessUnitRemoveBillingAddressIdAction template) factory method to create a deep copy of BusinessUnitRemoveBillingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitRemoveBillingAddressIdAction- Returns:
- builder
-
builder
static BusinessUnitRemoveBillingAddressIdActionBuilder builder(BusinessUnitRemoveBillingAddressIdAction template) create builder for BusinessUnitRemoveBillingAddressIdAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitRemoveBillingAddressIdAction
default <T> T withBusinessUnitRemoveBillingAddressIdAction(Function<BusinessUnitRemoveBillingAddressIdAction, 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<BusinessUnitRemoveBillingAddressIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-