Interface ShoppingListSetCustomerAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>
,ShoppingListUpdateAction
ShoppingListSetCustomerAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListSetCustomerAction shoppingListSetCustomerAction = ShoppingListSetCustomerAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShoppingListSetCustomerAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShoppingListSetCustomerActionbuilder
(ShoppingListSetCustomerAction template) create builder for ShoppingListSetCustomerAction instancedeepCopy
(ShoppingListSetCustomerAction template) factory method to create a deep copy of ShoppingListSetCustomerAction@Valid CustomerResourceIdentifier
The Customer the ShoppingList should be associated to.of()
factory methodof
(ShoppingListSetCustomerAction template) factory method to create a shallow copy ShoppingListSetCustomerActionofUnset()
void
setCustomer
(CustomerResourceIdentifier customer) The Customer the ShoppingList should be associated to.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListSetCustomerAction>
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_CUSTOMER
discriminator value for ShoppingListSetCustomerAction- See Also:
-
-
Method Details
-
getCustomer
The Customer the ShoppingList should be associated to. If empty, any existing value will be removed.
- Returns:
- customer
-
setCustomer
The Customer the ShoppingList should be associated to. If empty, any existing value will be removed.
- Parameters:
customer
- value to be set
-
of
factory method- Returns:
- instance of ShoppingListSetCustomerAction
-
of
factory method to create a shallow copy ShoppingListSetCustomerAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShoppingListSetCustomerAction deepCopy(@Nullable ShoppingListSetCustomerAction template) factory method to create a deep copy of ShoppingListSetCustomerAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListSetCustomerAction- Returns:
- builder
-
builder
create builder for ShoppingListSetCustomerAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListSetCustomerAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-