Interface CartSetBusinessUnitAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
Updates the Business Unit on the Cart. The Cart must have an existing Business Unit assigned already.
Example to create an instance using the builder pattern
CartSetBusinessUnitAction cartSetBusinessUnitAction = CartSetBusinessUnitAction.builder()
.businessUnit(businessUnitBuilder -> businessUnitBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartSetBusinessUnitAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartSetBusinessUnitActionbuilder(CartSetBusinessUnitAction template) create builder for CartSetBusinessUnitAction instancecopyDeep()static CartSetBusinessUnitActiondeepCopy(CartSetBusinessUnitAction template) factory method to create a deep copy of CartSetBusinessUnitAction@NotNull @Valid BusinessUnitResourceIdentifierNew Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.static CartSetBusinessUnitActionof()factory methodstatic CartSetBusinessUnitActionof(CartSetBusinessUnitAction template) factory method to create a shallow copy CartSetBusinessUnitActionvoidsetBusinessUnit(BusinessUnitResourceIdentifier businessUnit) New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.static com.fasterxml.jackson.core.type.TypeReference<CartSetBusinessUnitAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_BUSINESS_UNIT
discriminator value for CartSetBusinessUnitAction- See Also:
-
-
Method Details
-
getBusinessUnit
New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.
- Returns:
- businessUnit
-
setBusinessUnit
New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.
- Parameters:
businessUnit- value to be set
-
of
factory method- Returns:
- instance of CartSetBusinessUnitAction
-
of
factory method to create a shallow copy CartSetBusinessUnitAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartSetBusinessUnitAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
factory method to create a deep copy of CartSetBusinessUnitAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetBusinessUnitAction- Returns:
- builder
-
builder
create builder for CartSetBusinessUnitAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetBusinessUnitAction
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
-