Interface ShoppingListSetAnonymousIdAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>
,ShoppingListUpdateAction
If the Shopping List is already associated with a Customer, an InvalidOperation error is returned.
Example to create an instance using the builder pattern
ShoppingListSetAnonymousIdAction shoppingListSetAnonymousIdAction = ShoppingListSetAnonymousIdAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShoppingListSetAnonymousIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShoppingListSetAnonymousIdActionbuilder
(ShoppingListSetAnonymousIdAction template) create builder for ShoppingListSetAnonymousIdAction instancedeepCopy
(ShoppingListSetAnonymousIdAction template) factory method to create a deep copy of ShoppingListSetAnonymousIdActionValue to set.of()
factory methodof
(ShoppingListSetAnonymousIdAction template) factory method to create a shallow copy ShoppingListSetAnonymousIdActionvoid
setAnonymousId
(String anonymousId) Value to set.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListSetAnonymousIdAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListUpdateAction
getAction, withShoppingListUpdateAction
-
Field Details
-
SET_ANONYMOUS_ID
discriminator value for ShoppingListSetAnonymousIdAction- See Also:
-
-
Method Details
-
getAnonymousId
String getAnonymousId()Value to set. If empty, any existing value will be removed.
- Returns:
- anonymousId
-
setAnonymousId
Value to set. If empty, any existing value will be removed.
- Parameters:
anonymousId
- value to be set
-
of
factory method- Returns:
- instance of ShoppingListSetAnonymousIdAction
-
of
factory method to create a shallow copy ShoppingListSetAnonymousIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShoppingListSetAnonymousIdAction deepCopy(@Nullable ShoppingListSetAnonymousIdAction template) factory method to create a deep copy of ShoppingListSetAnonymousIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListSetAnonymousIdAction- Returns:
- builder
-
builder
create builder for ShoppingListSetAnonymousIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListSetAnonymousIdAction
default <T> T withShoppingListSetAnonymousIdAction(Function<ShoppingListSetAnonymousIdAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ShoppingListSetAnonymousIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-