Package com.commercetools.api.models.me
Interface MyBusinessUnitAddAddressAction
- All Superinterfaces:
MyBusinessUnitUpdateAction
Adding an address to a Business Unit generates a BusinessUnitAddressAdded Message.
Example to create an instance using the builder pattern
MyBusinessUnitAddAddressAction myBusinessUnitAddAddressAction = MyBusinessUnitAddAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyBusinessUnitAddAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyBusinessUnitAddAddressActionbuilder
(MyBusinessUnitAddAddressAction template) create builder for MyBusinessUnitAddAddressAction instancedeepCopy
(MyBusinessUnitAddAddressAction template) factory method to create a deep copy of MyBusinessUnitAddAddressAction@NotNull @Valid BaseAddress
The address to add toaddresses
.of()
factory methodof
(MyBusinessUnitAddAddressAction template) factory method to create a shallow copy MyBusinessUnitAddAddressActionvoid
setAddress
(BaseAddress address) The address to add toaddresses
.static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitAddAddressAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyBusinessUnitUpdateAction
getAction, withMyBusinessUnitUpdateAction
-
Field Details
-
ADD_ADDRESS
discriminator value for MyBusinessUnitAddAddressAction- See Also:
-
-
Method Details
-
getAddress
The address to add to
addresses
.- Returns:
- address
-
setAddress
The address to add to
addresses
.- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of MyBusinessUnitAddAddressAction
-
of
factory method to create a shallow copy MyBusinessUnitAddAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyBusinessUnitAddAddressAction deepCopy(@Nullable MyBusinessUnitAddAddressAction template) factory method to create a deep copy of MyBusinessUnitAddAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitAddAddressAction- Returns:
- builder
-
builder
create builder for MyBusinessUnitAddAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitAddAddressAction
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<MyBusinessUnitAddAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-