Interface CustomerSetCompanyNameAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
Setting a company name produces the CustomerCompanyNameSet Message.
Example to create an instance using the builder pattern
CustomerSetCompanyNameAction customerSetCompanyNameAction = CustomerSetCompanyNameAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerSetCompanyNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerSetCompanyNameActionbuilder
(CustomerSetCompanyNameAction template) create builder for CustomerSetCompanyNameAction instancestatic CustomerSetCompanyNameAction
deepCopy
(CustomerSetCompanyNameAction template) factory method to create a deep copy of CustomerSetCompanyNameActionValue to set.static CustomerSetCompanyNameAction
of()
factory methodstatic CustomerSetCompanyNameAction
of
(CustomerSetCompanyNameAction template) factory method to create a shallow copy CustomerSetCompanyNameActionvoid
setCompanyName
(String companyName) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetCompanyNameAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_COMPANY_NAME
discriminator value for CustomerSetCompanyNameAction- See Also:
-
-
Method Details
-
getCompanyName
String getCompanyName()Value to set. If empty, any existing value is removed.
- Returns:
- companyName
-
setCompanyName
Value to set. If empty, any existing value is removed.
- Parameters:
companyName
- value to be set
-
of
factory method- Returns:
- instance of CustomerSetCompanyNameAction
-
of
factory method to create a shallow copy CustomerSetCompanyNameAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerSetCompanyNameAction deepCopy(@Nullable CustomerSetCompanyNameAction template) factory method to create a deep copy of CustomerSetCompanyNameAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetCompanyNameAction- Returns:
- builder
-
builder
create builder for CustomerSetCompanyNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetCompanyNameAction
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
-