Package com.commercetools.api.models.me
Interface MyCartSetCustomerEmailAction
- All Superinterfaces:
MyCartUpdateAction
,ResourceUpdateAction<MyCartUpdateAction>
MyCartSetCustomerEmailAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartSetCustomerEmailAction myCartSetCustomerEmailAction = MyCartSetCustomerEmailAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCartSetCustomerEmailAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCartSetCustomerEmailActionbuilder
(MyCartSetCustomerEmailAction template) create builder for MyCartSetCustomerEmailAction instancestatic MyCartSetCustomerEmailAction
deepCopy
(MyCartSetCustomerEmailAction template) factory method to create a deep copy of MyCartSetCustomerEmailActiongetEmail()
Value to set.static MyCartSetCustomerEmailAction
of()
factory methodstatic MyCartSetCustomerEmailAction
of
(MyCartSetCustomerEmailAction template) factory method to create a shallow copy MyCartSetCustomerEmailActionvoid
Value to set.static com.fasterxml.jackson.core.type.TypeReference<MyCartSetCustomerEmailAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CUSTOMER_EMAIL
discriminator value for MyCartSetCustomerEmailAction- See Also:
-
-
Method Details
-
getEmail
String getEmail()Value to set. If empty, any existing value is removed.
- Returns:
-
setEmail
Value to set. If empty, any existing value is removed.
- Parameters:
email
- value to be set
-
of
factory method- Returns:
- instance of MyCartSetCustomerEmailAction
-
of
factory method to create a shallow copy MyCartSetCustomerEmailAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyCartSetCustomerEmailAction deepCopy(@Nullable MyCartSetCustomerEmailAction template) factory method to create a deep copy of MyCartSetCustomerEmailAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartSetCustomerEmailAction- Returns:
- builder
-
builder
create builder for MyCartSetCustomerEmailAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartSetCustomerEmailAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-