Interface CustomerSetLastNameAction
- All Superinterfaces:
CustomerUpdateAction,ResourceUpdateAction<CustomerUpdateAction>
Setting the last name of the Customer produces the CustomerLastNameSet Message.
Example to create an instance using the builder pattern
CustomerSetLastNameAction customerSetLastNameAction = CustomerSetLastNameAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerSetLastNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerSetLastNameActionbuilder(CustomerSetLastNameAction template) create builder for CustomerSetLastNameAction instancecopyDeep()static CustomerSetLastNameActiondeepCopy(CustomerSetLastNameAction template) factory method to create a deep copy of CustomerSetLastNameActionValue to set.static CustomerSetLastNameActionof()factory methodstatic CustomerSetLastNameActionof(CustomerSetLastNameAction template) factory method to create a shallow copy CustomerSetLastNameActionvoidsetLastName(String lastName) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetLastNameAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_LAST_NAME
discriminator value for CustomerSetLastNameAction- See Also:
-
-
Method Details
-
getLastName
String getLastName()Value to set. If empty, any existing value is removed.
- Returns:
- lastName
-
setLastName
Value to set. If empty, any existing value is removed.
- Parameters:
lastName- value to be set
-
of
factory method- Returns:
- instance of CustomerSetLastNameAction
-
of
factory method to create a shallow copy CustomerSetLastNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerSetLastNameAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
deepCopy
factory method to create a deep copy of CustomerSetLastNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetLastNameAction- Returns:
- builder
-
builder
create builder for CustomerSetLastNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetLastNameAction
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
-