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