Class ShoppingListSetStoreActionBuilder
java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListSetStoreActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListSetStoreAction>
public class ShoppingListSetStoreActionBuilder
extends Object
implements Builder<ShoppingListSetStoreAction>
ShoppingListSetStoreActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListSetStoreAction shoppingListSetStoreAction = ShoppingListSetStoreAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ShoppingListSetStoreAction with checking for non-null required valuesbuilds ShoppingListSetStoreAction without checking for non-null required valuesgetStore()The Store the ShoppingList should be assigned to.of()factory method for an instance of ShoppingListSetStoreActionBuilderof(ShoppingListSetStoreAction template) create builder for ShoppingListSetStoreAction instancestore(StoreResourceIdentifier store) The Store the ShoppingList should be assigned to.The Store the ShoppingList should be assigned to.The Store the ShoppingList should be assigned to.
-
Constructor Details
-
ShoppingListSetStoreActionBuilder
public ShoppingListSetStoreActionBuilder()
-
-
Method Details
-
store
public ShoppingListSetStoreActionBuilder store(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) The Store the ShoppingList should be assigned to. If empty, any existing value will be removed.
- Parameters:
builder- function to build the store value- Returns:
- Builder
-
withStore
public ShoppingListSetStoreActionBuilder withStore(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) The Store the ShoppingList should be assigned to. If empty, any existing value will be removed.
- Parameters:
builder- function to build the store value- Returns:
- Builder
-
store
The Store the ShoppingList should be assigned to. If empty, any existing value will be removed.
- Parameters:
store- value to be set- Returns:
- Builder
-
getStore
The Store the ShoppingList should be assigned to. If empty, any existing value will be removed.
- Returns:
- store
-
build
builds ShoppingListSetStoreAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ShoppingListSetStoreAction>- Returns:
- ShoppingListSetStoreAction
-
buildUnchecked
builds ShoppingListSetStoreAction without checking for non-null required values- Returns:
- ShoppingListSetStoreAction
-
of
factory method for an instance of ShoppingListSetStoreActionBuilder- Returns:
- builder
-
of
create builder for ShoppingListSetStoreAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-