Interface ShoppingListSetBusinessUnitAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>
,ShoppingListUpdateAction
Updates the Business Unit on the Shopping List. The Shopping List must have an existing Business Unit assigned already.
Example to create an instance using the builder pattern
ShoppingListSetBusinessUnitAction shoppingListSetBusinessUnitAction = ShoppingListSetBusinessUnitAction.builder()
.businessUnit(businessUnitBuilder -> businessUnitBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ShoppingListSetBusinessUnitAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShoppingListSetBusinessUnitActionbuilder
(ShoppingListSetBusinessUnitAction template) create builder for ShoppingListSetBusinessUnitAction instancedeepCopy
(ShoppingListSetBusinessUnitAction template) factory method to create a deep copy of ShoppingListSetBusinessUnitAction@NotNull @Valid BusinessUnitResourceIdentifier
The Business Unit to assign to the Shopping List, which must have access to the Store that is set on the Shopping List.of()
factory methodof
(ShoppingListSetBusinessUnitAction template) factory method to create a shallow copy ShoppingListSetBusinessUnitActionvoid
setBusinessUnit
(BusinessUnitResourceIdentifier businessUnit) The Business Unit to assign to the Shopping List, which must have access to the Store that is set on the Shopping List.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListSetBusinessUnitAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListUpdateAction
getAction, withShoppingListUpdateAction
-
Field Details
-
SET_BUSINESS_UNIT
discriminator value for ShoppingListSetBusinessUnitAction- See Also:
-
-
Method Details
-
getBusinessUnit
The Business Unit to assign to the Shopping List, which must have access to the Store that is set on the Shopping List.
- Returns:
- businessUnit
-
setBusinessUnit
The Business Unit to assign to the Shopping List, which must have access to the Store that is set on the Shopping List.
- Parameters:
businessUnit
- value to be set
-
of
factory method- Returns:
- instance of ShoppingListSetBusinessUnitAction
-
of
factory method to create a shallow copy ShoppingListSetBusinessUnitAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShoppingListSetBusinessUnitAction deepCopy(@Nullable ShoppingListSetBusinessUnitAction template) factory method to create a deep copy of ShoppingListSetBusinessUnitAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListSetBusinessUnitAction- Returns:
- builder
-
builder
create builder for ShoppingListSetBusinessUnitAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListSetBusinessUnitAction
default <T> T withShoppingListSetBusinessUnitAction(Function<ShoppingListSetBusinessUnitAction, 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<ShoppingListSetBusinessUnitAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-