Interface BusinessUnitChangeAddressAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Changing the address on a Business Unit generates the BusinessUnitAddressChanged Message.
Example to create an instance using the builder pattern
BusinessUnitChangeAddressAction businessUnitChangeAddressAction = BusinessUnitChangeAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitChangeAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitChangeAddressActionbuilder
(BusinessUnitChangeAddressAction template) create builder for BusinessUnitChangeAddressAction instancedeepCopy
(BusinessUnitChangeAddressAction template) factory method to create a deep copy of BusinessUnitChangeAddressAction@NotNull @Valid BaseAddress
New address to set.ID of the address to change.Key of the address to change.of()
factory methodof
(BusinessUnitChangeAddressAction template) factory method to create a shallow copy BusinessUnitChangeAddressActionvoid
setAddress
(BaseAddress address) New address to set.void
setAddressId
(String addressId) ID of the address to change.void
setAddressKey
(String addressKey) Key of the address to change.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitChangeAddressAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
getAction, withBusinessUnitUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_ADDRESS
discriminator value for BusinessUnitChangeAddressAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()ID of the address to change. Either
addressId
oraddressKey
is required.- Returns:
- addressId
-
getAddressKey
String getAddressKey()Key of the address to change. Either
addressId
oraddressKey
is required.- Returns:
- addressKey
-
getAddress
New address to set.
- Returns:
- address
-
setAddressId
ID of the address to change. Either
addressId
oraddressKey
is required.- Parameters:
addressId
- value to be set
-
setAddressKey
Key of the address to change. Either
addressId
oraddressKey
is required.- Parameters:
addressKey
- value to be set
-
setAddress
New address to set.
- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitChangeAddressAction
-
of
factory method to create a shallow copy BusinessUnitChangeAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitChangeAddressAction deepCopy(@Nullable BusinessUnitChangeAddressAction template) factory method to create a deep copy of BusinessUnitChangeAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitChangeAddressAction- Returns:
- builder
-
builder
create builder for BusinessUnitChangeAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitChangeAddressAction
default <T> T withBusinessUnitChangeAddressAction(Function<BusinessUnitChangeAddressAction, 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<BusinessUnitChangeAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-