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