Class CategorySetStoresActionBuilder
- All Implemented Interfaces:
Builder<CategorySetStoresAction>
Example to create an instance using the builder pattern
CategorySetStoresAction categorySetStoresAction = CategorySetStoresAction.builder()
.plusStores(storesBuilder -> storesBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionValue to set.build()builds CategorySetStoresAction with checking for non-null required valuesbuilds CategorySetStoresAction without checking for non-null required valuesValue to set.of()factory method for an instance of CategorySetStoresActionBuilderof(CategorySetStoresAction template) create builder for CategorySetStoresAction instanceplusStores(StoreResourceIdentifier... stores) Value to set.Value to set.Value to set.stores(StoreResourceIdentifier... stores) Value to set.stores(List<StoreResourceIdentifier> stores) Value to set.Value to set.
-
Constructor Details
-
CategorySetStoresActionBuilder
public CategorySetStoresActionBuilder()
-
-
Method Details
-
stores
Value to set. It replaces the entire set of Stores assigned to the Category.
If the
storesfield contains a Store that you do not have permission for, an InvalidInput error is returned.- Parameters:
stores- value to be set- Returns:
- Builder
-
stores
Value to set. It replaces the entire set of Stores assigned to the Category.
If the
storesfield contains a Store that you do not have permission for, an InvalidInput error is returned.- Parameters:
stores- value to be set- Returns:
- Builder
-
plusStores
Value to set. It replaces the entire set of Stores assigned to the Category.
If the
storesfield contains a Store that you do not have permission for, an InvalidInput error is returned.- Parameters:
stores- value to be set- Returns:
- Builder
-
plusStores
public CategorySetStoresActionBuilder plusStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) Value to set. It replaces the entire set of Stores assigned to the Category.
If the
storesfield contains a Store that you do not have permission for, an InvalidInput error is returned.- Parameters:
builder- function to build the stores value- Returns:
- Builder
-
withStores
public CategorySetStoresActionBuilder withStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) Value to set. It replaces the entire set of Stores assigned to the Category.
If the
storesfield contains a Store that you do not have permission for, an InvalidInput error is returned.- Parameters:
builder- function to build the stores value- Returns:
- Builder
-
addStores
public CategorySetStoresActionBuilder addStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) Value to set. It replaces the entire set of Stores assigned to the Category.
If the
storesfield contains a Store that you do not have permission for, an InvalidInput error is returned.- Parameters:
builder- function to build the stores value- Returns:
- Builder
-
setStores
public CategorySetStoresActionBuilder setStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) Value to set. It replaces the entire set of Stores assigned to the Category.
If the
storesfield contains a Store that you do not have permission for, an InvalidInput error is returned.- Parameters:
builder- function to build the stores value- Returns:
- Builder
-
getStores
Value to set. It replaces the entire set of Stores assigned to the Category.
If the
storesfield contains a Store that you do not have permission for, an InvalidInput error is returned.- Returns:
- stores
-
build
builds CategorySetStoresAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CategorySetStoresAction>- Returns:
- CategorySetStoresAction
-
buildUnchecked
builds CategorySetStoresAction without checking for non-null required values- Returns:
- CategorySetStoresAction
-
of
factory method for an instance of CategorySetStoresActionBuilder- Returns:
- builder
-
of
create builder for CategorySetStoresAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-