Package com.commercetools.api.models.me
Interface MyBusinessUnitChangeAddressAction
- All Superinterfaces:
MyBusinessUnitUpdateAction
Changing the address on a Business Unit generates the BusinessUnitAddressChanged Message.
Example to create an instance using the builder pattern
MyBusinessUnitChangeAddressAction myBusinessUnitChangeAddressAction = MyBusinessUnitChangeAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyBusinessUnitChangeAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyBusinessUnitChangeAddressActionbuilder(MyBusinessUnitChangeAddressAction template) create builder for MyBusinessUnitChangeAddressAction instancecopyDeep()deepCopy(MyBusinessUnitChangeAddressAction template) factory method to create a deep copy of MyBusinessUnitChangeAddressAction@NotNull @Valid BaseAddressNew address to set.ID of the address to change.Key of the address to change.of()factory methodof(MyBusinessUnitChangeAddressAction template) factory method to create a shallow copy MyBusinessUnitChangeAddressActionvoidsetAddress(BaseAddress address) New address to set.voidsetAddressId(String addressId) ID of the address to change.voidsetAddressKey(String addressKey) Key of the address to change.static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitChangeAddressAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyBusinessUnitUpdateAction
getAction, withMyBusinessUnitUpdateAction
-
Field Details
-
CHANGE_ADDRESS
discriminator value for MyBusinessUnitChangeAddressAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()ID of the address to change. Either
addressIdoraddressKeyis required.- Returns:
- addressId
-
getAddressKey
String getAddressKey()Key of the address to change. Either
addressIdoraddressKeyis required.- Returns:
- addressKey
-
getAddress
New address to set.
- Returns:
- address
-
setAddressId
ID of the address to change. Either
addressIdoraddressKeyis required.- Parameters:
addressId- value to be set
-
setAddressKey
Key of the address to change. Either
addressIdoraddressKeyis required.- Parameters:
addressKey- value to be set
-
setAddress
New address to set.
- Parameters:
address- value to be set
-
of
factory method- Returns:
- instance of MyBusinessUnitChangeAddressAction
-
of
factory method to create a shallow copy MyBusinessUnitChangeAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyBusinessUnitChangeAddressAction copyDeep()- Specified by:
copyDeepin interfaceMyBusinessUnitUpdateAction
-
deepCopy
@Nullable static MyBusinessUnitChangeAddressAction deepCopy(@Nullable MyBusinessUnitChangeAddressAction template) factory method to create a deep copy of MyBusinessUnitChangeAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitChangeAddressAction- Returns:
- builder
-
builder
create builder for MyBusinessUnitChangeAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitChangeAddressAction
default <T> T withMyBusinessUnitChangeAddressAction(Function<MyBusinessUnitChangeAddressAction, 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<MyBusinessUnitChangeAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-