Class ShoppingListSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListSetKeyActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListSetKeyAction>
public class ShoppingListSetKeyActionBuilder
extends Object
implements Builder<ShoppingListSetKeyAction>
ShoppingListSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListSetKeyAction shoppingListSetKeyAction = ShoppingListSetKeyAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListSetKeyAction with checking for non-null required valuesbuilds ShoppingListSetKeyAction without checking for non-null required valuesgetKey()
Value to set.Value to set.of()
factory method for an instance of ShoppingListSetKeyActionBuilderof
(ShoppingListSetKeyAction template) create builder for ShoppingListSetKeyAction instance
-
Constructor Details
-
ShoppingListSetKeyActionBuilder
public ShoppingListSetKeyActionBuilder()
-
-
Method Details
-
key
Value to set. If empty, any existing value will be removed.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Value to set. If empty, any existing value will be removed.
- Returns:
- key
-
build
builds ShoppingListSetKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListSetKeyAction>
- Returns:
- ShoppingListSetKeyAction
-
buildUnchecked
builds ShoppingListSetKeyAction without checking for non-null required values- Returns:
- ShoppingListSetKeyAction
-
of
factory method for an instance of ShoppingListSetKeyActionBuilder- Returns:
- builder
-
of
create builder for ShoppingListSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-