Class BusinessUnitSetStoresActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitSetStoresActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitSetStoresAction>
public class BusinessUnitSetStoresActionBuilder
extends Object
implements Builder<BusinessUnitSetStoresAction>
BusinessUnitSetStoresActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitSetStoresAction businessUnitSetStoresAction = BusinessUnitSetStoresAction.builder()
.plusStores(storesBuilder -> storesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionStores to set.build()
builds BusinessUnitSetStoresAction with checking for non-null required valuesbuilds BusinessUnitSetStoresAction without checking for non-null required valuesStores to set.of()
factory method for an instance of BusinessUnitSetStoresActionBuilderof
(BusinessUnitSetStoresAction template) create builder for BusinessUnitSetStoresAction instanceplusStores
(StoreResourceIdentifier... stores) Stores to set.Stores to set.Stores to set.stores
(StoreResourceIdentifier... stores) Stores to set.stores
(List<StoreResourceIdentifier> stores) Stores to set.Stores to set.
-
Constructor Details
-
BusinessUnitSetStoresActionBuilder
public BusinessUnitSetStoresActionBuilder()
-
-
Method Details
-
stores
Stores to set. Overrides the current list of Stores.
- Parameters:
stores
- value to be set- Returns:
- Builder
-
stores
Stores to set. Overrides the current list of Stores.
- Parameters:
stores
- value to be set- Returns:
- Builder
-
plusStores
Stores to set. Overrides the current list of Stores.
- Parameters:
stores
- value to be set- Returns:
- Builder
-
plusStores
public BusinessUnitSetStoresActionBuilder plusStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) Stores to set. Overrides the current list of Stores.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
withStores
public BusinessUnitSetStoresActionBuilder withStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) Stores to set. Overrides the current list of Stores.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
addStores
public BusinessUnitSetStoresActionBuilder addStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) Stores to set. Overrides the current list of Stores.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
setStores
public BusinessUnitSetStoresActionBuilder setStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) Stores to set. Overrides the current list of Stores.
- Parameters:
builder
- function to build the stores value- Returns:
- Builder
-
getStores
Stores to set. Overrides the current list of Stores.
- Returns:
- stores
-
build
builds BusinessUnitSetStoresAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitSetStoresAction>
- Returns:
- BusinessUnitSetStoresAction
-
buildUnchecked
builds BusinessUnitSetStoresAction without checking for non-null required values- Returns:
- BusinessUnitSetStoresAction
-
of
factory method for an instance of BusinessUnitSetStoresActionBuilder- Returns:
- builder
-
of
create builder for BusinessUnitSetStoresAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-