Package com.commercetools.api.models.me
Class MyCartSetBusinessUnitActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyCartSetBusinessUnitActionBuilder
- All Implemented Interfaces:
Builder<MyCartSetBusinessUnitAction>
public class MyCartSetBusinessUnitActionBuilder
extends Object
implements Builder<MyCartSetBusinessUnitAction>
MyCartSetBusinessUnitActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartSetBusinessUnitAction myCartSetBusinessUnitAction = MyCartSetBusinessUnitAction.builder()
.businessUnit(businessUnitBuilder -> businessUnitBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyCartSetBusinessUnitAction with checking for non-null required valuesbuilds MyCartSetBusinessUnitAction without checking for non-null required valuesbusinessUnit
(BusinessUnitResourceIdentifier businessUnit) New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.businessUnit
(Function<BusinessUnitResourceIdentifierBuilder, BusinessUnitResourceIdentifierBuilder> builder) New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.of()
factory method for an instance of MyCartSetBusinessUnitActionBuilderof
(MyCartSetBusinessUnitAction template) create builder for MyCartSetBusinessUnitAction instancewithBusinessUnit
(Function<BusinessUnitResourceIdentifierBuilder, BusinessUnitResourceIdentifier> builder) New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.
-
Constructor Details
-
MyCartSetBusinessUnitActionBuilder
public MyCartSetBusinessUnitActionBuilder()
-
-
Method Details
-
businessUnit
public MyCartSetBusinessUnitActionBuilder businessUnit(Function<BusinessUnitResourceIdentifierBuilder, BusinessUnitResourceIdentifierBuilder> builder) New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart. Additionally, the authenticated user must be an Associate in the Business Unit.
- Parameters:
builder
- function to build the businessUnit value- Returns:
- Builder
-
withBusinessUnit
public MyCartSetBusinessUnitActionBuilder withBusinessUnit(Function<BusinessUnitResourceIdentifierBuilder, BusinessUnitResourceIdentifier> builder) New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart. Additionally, the authenticated user must be an Associate in the Business Unit.
- Parameters:
builder
- function to build the businessUnit value- Returns:
- Builder
-
businessUnit
New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart. Additionally, the authenticated user must be an Associate in the Business Unit.
- Parameters:
businessUnit
- value to be set- Returns:
- Builder
-
getBusinessUnit
New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart. Additionally, the authenticated user must be an Associate in the Business Unit.
- Returns:
- businessUnit
-
build
builds MyCartSetBusinessUnitAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCartSetBusinessUnitAction>
- Returns:
- MyCartSetBusinessUnitAction
-
buildUnchecked
builds MyCartSetBusinessUnitAction without checking for non-null required values- Returns:
- MyCartSetBusinessUnitAction
-
of
factory method for an instance of MyCartSetBusinessUnitActionBuilder- Returns:
- builder
-
of
create builder for MyCartSetBusinessUnitAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-