Package com.commercetools.api.models.me
Interface MyCustomerSetLastNameAction
- All Superinterfaces:
MyCustomerUpdateAction,ResourceUpdateAction<MyCustomerUpdateAction>
Setting the last name of the Customer produces the CustomerLastNameSet Message.
Example to create an instance using the builder pattern
MyCustomerSetLastNameAction myCustomerSetLastNameAction = MyCustomerSetLastNameAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCustomerSetLastNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCustomerSetLastNameActionbuilder(MyCustomerSetLastNameAction template) create builder for MyCustomerSetLastNameAction instancecopyDeep()static MyCustomerSetLastNameActiondeepCopy(MyCustomerSetLastNameAction template) factory method to create a deep copy of MyCustomerSetLastNameActionValue to set.static MyCustomerSetLastNameActionof()factory methodstatic MyCustomerSetLastNameActionof(MyCustomerSetLastNameAction template) factory method to create a shallow copy MyCustomerSetLastNameActionvoidsetLastName(String lastName) Value to set.static com.fasterxml.jackson.core.type.TypeReference<MyCustomerSetLastNameAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCustomerUpdateAction
getAction, withMyCustomerUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_LAST_NAME
discriminator value for MyCustomerSetLastNameAction- 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 MyCustomerSetLastNameAction
-
of
factory method to create a shallow copy MyCustomerSetLastNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCustomerSetLastNameAction copyDeep()- Specified by:
copyDeepin interfaceMyCustomerUpdateAction
-
deepCopy
@Nullable static MyCustomerSetLastNameAction deepCopy(@Nullable MyCustomerSetLastNameAction template) factory method to create a deep copy of MyCustomerSetLastNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerSetLastNameAction- Returns:
- builder
-
builder
create builder for MyCustomerSetLastNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerSetLastNameAction
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
-