Class BusinessUnitSetStoreModeActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitSetStoreModeAction>
Example to create an instance using the builder pattern
BusinessUnitSetStoreModeAction businessUnitSetStoreModeAction = BusinessUnitSetStoreModeAction.builder()
.storeMode(BusinessUnitStoreMode.EXPLICIT)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet the Stores the Business Unit is associated with.build()
builds BusinessUnitSetStoreModeAction with checking for non-null required valuesbuilds BusinessUnitSetStoreModeAction without checking for non-null required valuesSet toExplicit
to specify Stores for the Business Unit.Set the Stores the Business Unit is associated with.of()
factory method for an instance of BusinessUnitSetStoreModeActionBuilderof
(BusinessUnitSetStoreModeAction template) create builder for BusinessUnitSetStoreModeAction instanceplusStores
(StoreResourceIdentifier... stores) Set the Stores the Business Unit is associated with.Set the Stores the Business Unit is associated with.Set the Stores the Business Unit is associated with.storeMode
(BusinessUnitStoreMode storeMode) Set toExplicit
to specify Stores for the Business Unit.stores
(StoreResourceIdentifier... stores) Set the Stores the Business Unit is associated with.stores
(List<StoreResourceIdentifier> stores) Set the Stores the Business Unit is associated with.Set the Stores the Business Unit is associated with.
-
Constructor Details
-
BusinessUnitSetStoreModeActionBuilder
public BusinessUnitSetStoreModeActionBuilder()
-
-
Method Details
-
storeMode
Set to
Explicit
to specify Stores for the Business Unit. Set toFromParent
to inherit Stores from a parent.- Parameters:
storeMode
- value to be set- Returns:
- Builder
-
stores
Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Parameters:
stores
- value to be set- Returns:
- Builder
-
stores
Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Parameters:
stores
- value to be set- Returns:
- Builder
-
plusStores
public BusinessUnitSetStoreModeActionBuilder plusStores(@Nullable StoreResourceIdentifier... stores) Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Parameters:
stores
- value to be set- Returns:
- Builder
-
plusStores
public BusinessUnitSetStoreModeActionBuilder plusStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
withStores
public BusinessUnitSetStoreModeActionBuilder withStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
addStores
public BusinessUnitSetStoreModeActionBuilder addStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
setStores
public BusinessUnitSetStoreModeActionBuilder setStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
getStoreMode
Set to
Explicit
to specify Stores for the Business Unit. Set toFromParent
to inherit Stores from a parent.- Returns:
- storeMode
-
getStores
Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Returns:
- stores
-
build
builds BusinessUnitSetStoreModeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitSetStoreModeAction>
- Returns:
- BusinessUnitSetStoreModeAction
-
buildUnchecked
builds BusinessUnitSetStoreModeAction without checking for non-null required values- Returns:
- BusinessUnitSetStoreModeAction
-
of
factory method for an instance of BusinessUnitSetStoreModeActionBuilder- Returns:
- builder
-
of
create builder for BusinessUnitSetStoreModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-