Interface BusinessUnitAddAddressAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Adding an address to a Business Unit generates a BusinessUnitAddressAdded Message.
Example to create an instance using the builder pattern
BusinessUnitAddAddressAction businessUnitAddAddressAction = BusinessUnitAddAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitAddAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitAddAddressActionbuilder
(BusinessUnitAddAddressAction template) create builder for BusinessUnitAddAddressAction instancestatic BusinessUnitAddAddressAction
deepCopy
(BusinessUnitAddAddressAction template) factory method to create a deep copy of BusinessUnitAddAddressAction@NotNull @Valid BaseAddress
Address to add to the addresses of the Business Unit.static BusinessUnitAddAddressAction
of()
factory methodstatic BusinessUnitAddAddressAction
of
(BusinessUnitAddAddressAction template) factory method to create a shallow copy BusinessUnitAddAddressActionvoid
setAddress
(BaseAddress address) Address to add to the addresses of the Business Unit.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitAddAddressAction>
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
-
ADD_ADDRESS
discriminator value for BusinessUnitAddAddressAction- See Also:
-
-
Method Details
-
getAddress
Address to add to the addresses of the Business Unit.
- Returns:
- address
-
setAddress
Address to add to the addresses of the Business Unit.
- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitAddAddressAction
-
of
factory method to create a shallow copy BusinessUnitAddAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitAddAddressAction deepCopy(@Nullable BusinessUnitAddAddressAction template) factory method to create a deep copy of BusinessUnitAddAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitAddAddressAction- Returns:
- builder
-
builder
create builder for BusinessUnitAddAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitAddAddressAction
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
-