Package com.commercetools.api.models.me
Interface MyCustomerSetFirstNameAction
- All Superinterfaces:
MyCustomerUpdateAction,ResourceUpdateAction<MyCustomerUpdateAction>
Setting the first name of the Customer produces the CustomerFirstNameSet Message.
Example to create an instance using the builder pattern
MyCustomerSetFirstNameAction myCustomerSetFirstNameAction = MyCustomerSetFirstNameAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCustomerSetFirstNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCustomerSetFirstNameActionbuilder(MyCustomerSetFirstNameAction template) create builder for MyCustomerSetFirstNameAction instancecopyDeep()static MyCustomerSetFirstNameActiondeepCopy(MyCustomerSetFirstNameAction template) factory method to create a deep copy of MyCustomerSetFirstNameActionValue to set.static MyCustomerSetFirstNameActionof()factory methodstatic MyCustomerSetFirstNameActionof(MyCustomerSetFirstNameAction template) factory method to create a shallow copy MyCustomerSetFirstNameActionvoidsetFirstName(String firstName) Value to set.static com.fasterxml.jackson.core.type.TypeReference<MyCustomerSetFirstNameAction>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_FIRST_NAME
discriminator value for MyCustomerSetFirstNameAction- See Also:
-
-
Method Details
-
getFirstName
String getFirstName()Value to set. If empty, any existing value is removed.
- Returns:
- firstName
-
setFirstName
Value to set. If empty, any existing value is removed.
- Parameters:
firstName- value to be set
-
of
factory method- Returns:
- instance of MyCustomerSetFirstNameAction
-
of
factory method to create a shallow copy MyCustomerSetFirstNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCustomerSetFirstNameAction copyDeep()- Specified by:
copyDeepin interfaceMyCustomerUpdateAction
-
deepCopy
@Nullable static MyCustomerSetFirstNameAction deepCopy(@Nullable MyCustomerSetFirstNameAction template) factory method to create a deep copy of MyCustomerSetFirstNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerSetFirstNameAction- Returns:
- builder
-
builder
create builder for MyCustomerSetFirstNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerSetFirstNameAction
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
-