Interface BusinessUnitAddStoreAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Adding a Store to a Business Unit generates a BusinessUnitStoreAdded Message. Only applicable when storeMode
is Explicit
.
Example to create an instance using the builder pattern
BusinessUnitAddStoreAction businessUnitAddStoreAction = BusinessUnitAddStoreAction.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitAddStoreActionbuilder
(BusinessUnitAddStoreAction template) create builder for BusinessUnitAddStoreAction instancestatic BusinessUnitAddStoreAction
deepCopy
(BusinessUnitAddStoreAction template) factory method to create a deep copy of BusinessUnitAddStoreAction@NotNull @Valid StoreResourceIdentifier
getStore()
Store to add.static BusinessUnitAddStoreAction
of()
factory methodstatic BusinessUnitAddStoreAction
of
(BusinessUnitAddStoreAction template) factory method to create a shallow copy BusinessUnitAddStoreActionvoid
setStore
(StoreResourceIdentifier store) Store to add.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitAddStoreAction>
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_STORE
discriminator value for BusinessUnitAddStoreAction- See Also:
-
-
Method Details
-
getStore
Store to add.
- Returns:
- store
-
setStore
Store to add.
- Parameters:
store
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitAddStoreAction
-
of
factory method to create a shallow copy BusinessUnitAddStoreAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of BusinessUnitAddStoreAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitAddStoreAction- Returns:
- builder
-
builder
create builder for BusinessUnitAddStoreAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitAddStoreAction
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
-