Class ShoppingListSetCustomerActionBuilder
java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListSetCustomerActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListSetCustomerAction>
public class ShoppingListSetCustomerActionBuilder
extends Object
implements Builder<ShoppingListSetCustomerAction>
ShoppingListSetCustomerActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListSetCustomerAction shoppingListSetCustomerAction = ShoppingListSetCustomerAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListSetCustomerAction with checking for non-null required valuesbuilds ShoppingListSetCustomerAction without checking for non-null required valuescustomer
(CustomerResourceIdentifier customer) The Customer the ShoppingList should be associated to.The Customer the ShoppingList should be associated to.The Customer the ShoppingList should be associated to.of()
factory method for an instance of ShoppingListSetCustomerActionBuilderof
(ShoppingListSetCustomerAction template) create builder for ShoppingListSetCustomerAction instanceThe Customer the ShoppingList should be associated to.
-
Constructor Details
-
ShoppingListSetCustomerActionBuilder
public ShoppingListSetCustomerActionBuilder()
-
-
Method Details
-
customer
public ShoppingListSetCustomerActionBuilder customer(Function<CustomerResourceIdentifierBuilder, CustomerResourceIdentifierBuilder> builder) The Customer the ShoppingList should be associated to. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
public ShoppingListSetCustomerActionBuilder withCustomer(Function<CustomerResourceIdentifierBuilder, CustomerResourceIdentifier> builder) The Customer the ShoppingList should be associated to. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
The Customer the ShoppingList should be associated to. If empty, any existing value will be removed.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
getCustomer
The Customer the ShoppingList should be associated to. If empty, any existing value will be removed.
- Returns:
- customer
-
build
builds ShoppingListSetCustomerAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListSetCustomerAction>
- Returns:
- ShoppingListSetCustomerAction
-
buildUnchecked
builds ShoppingListSetCustomerAction without checking for non-null required values- Returns:
- ShoppingListSetCustomerAction
-
of
factory method for an instance of ShoppingListSetCustomerActionBuilder- Returns:
- builder
-
of
create builder for ShoppingListSetCustomerAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-