Interface CustomerSetFirstNameAction
- All Superinterfaces:
CustomerUpdateAction,ResourceUpdateAction<CustomerUpdateAction>
Setting the first name of the Customer produces the CustomerFirstNameSet Message.
Example to create an instance using the builder pattern
CustomerSetFirstNameAction customerSetFirstNameAction = CustomerSetFirstNameAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerSetFirstNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerSetFirstNameActionbuilder(CustomerSetFirstNameAction template) create builder for CustomerSetFirstNameAction instancecopyDeep()static CustomerSetFirstNameActiondeepCopy(CustomerSetFirstNameAction template) factory method to create a deep copy of CustomerSetFirstNameActionValue to set.static CustomerSetFirstNameActionof()factory methodstatic CustomerSetFirstNameActionof(CustomerSetFirstNameAction template) factory method to create a shallow copy CustomerSetFirstNameActionvoidsetFirstName(String firstName) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetFirstNameAction>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_FIRST_NAME
discriminator value for CustomerSetFirstNameAction- 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 CustomerSetFirstNameAction
-
of
factory method to create a shallow copy CustomerSetFirstNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerSetFirstNameAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
deepCopy
factory method to create a deep copy of CustomerSetFirstNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetFirstNameAction- Returns:
- builder
-
builder
create builder for CustomerSetFirstNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetFirstNameAction
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
-