Class ShippingMethodSetStoresActionBuilder
- All Implemented Interfaces:
Builder<ShippingMethodSetStoresAction>
Example to create an instance using the builder pattern
ShippingMethodSetStoresAction shippingMethodSetStoresAction = ShippingMethodSetStoresAction.builder()
.plusStores(storesBuilder -> storesBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResourceIdentifiers of the Stores to set.build()builds ShippingMethodSetStoresAction with checking for non-null required valuesbuilds ShippingMethodSetStoresAction without checking for non-null required valuesResourceIdentifiers of the Stores to set.of()factory method for an instance of ShippingMethodSetStoresActionBuilderof(ShippingMethodSetStoresAction template) create builder for ShippingMethodSetStoresAction instanceplusStores(StoreResourceIdentifier... stores) ResourceIdentifiers of the Stores to set.ResourceIdentifiers of the Stores to set.ResourceIdentifiers of the Stores to set.stores(StoreResourceIdentifier... stores) ResourceIdentifiers of the Stores to set.stores(List<StoreResourceIdentifier> stores) ResourceIdentifiers of the Stores to set.ResourceIdentifiers of the Stores to set.
-
Constructor Details
-
ShippingMethodSetStoresActionBuilder
public ShippingMethodSetStoresActionBuilder()
-
-
Method Details
-
stores
ResourceIdentifiers of the Stores to set. Overrides the current list of Stores. If empty, any existing values are removed.
- Parameters:
stores- value to be set- Returns:
- Builder
-
stores
ResourceIdentifiers of the Stores to set. Overrides the current list of Stores. If empty, any existing values are removed.
- Parameters:
stores- value to be set- Returns:
- Builder
-
plusStores
ResourceIdentifiers of the Stores to set. Overrides the current list of Stores. If empty, any existing values are removed.
- Parameters:
stores- value to be set- Returns:
- Builder
-
plusStores
public ShippingMethodSetStoresActionBuilder plusStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) ResourceIdentifiers of the Stores to set. Overrides the current list of Stores. If empty, any existing values are removed.
- Parameters:
builder- function to build the stores value- Returns:
- Builder
-
withStores
public ShippingMethodSetStoresActionBuilder withStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) ResourceIdentifiers of the Stores to set. Overrides the current list of Stores. If empty, any existing values are removed.
- Parameters:
builder- function to build the stores value- Returns:
- Builder
-
addStores
public ShippingMethodSetStoresActionBuilder addStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) ResourceIdentifiers of the Stores to set. Overrides the current list of Stores. If empty, any existing values are removed.
- Parameters:
builder- function to build the stores value- Returns:
- Builder
-
setStores
public ShippingMethodSetStoresActionBuilder setStores(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) ResourceIdentifiers of the Stores to set. Overrides the current list of Stores. If empty, any existing values are removed.
- Parameters:
builder- function to build the stores value- Returns:
- Builder
-
getStores
ResourceIdentifiers of the Stores to set. Overrides the current list of Stores. If empty, any existing values are removed.
- Returns:
- stores
-
build
builds ShippingMethodSetStoresAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ShippingMethodSetStoresAction>- Returns:
- ShippingMethodSetStoresAction
-
buildUnchecked
builds ShippingMethodSetStoresAction without checking for non-null required values- Returns:
- ShippingMethodSetStoresAction
-
of
factory method for an instance of ShippingMethodSetStoresActionBuilder- Returns:
- builder
-
of
create builder for ShippingMethodSetStoresAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-