Package com.commercetools.api.models.me
Interface MyCustomerSetCompanyNameAction
- All Superinterfaces:
MyCustomerUpdateAction
,ResourceUpdateAction<MyCustomerUpdateAction>
Setting the companyName
field on the Customer produces the CustomerCompanyNameSet Message.
Example to create an instance using the builder pattern
MyCustomerSetCompanyNameAction myCustomerSetCompanyNameAction = MyCustomerSetCompanyNameAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCustomerSetCompanyNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCustomerSetCompanyNameActionbuilder
(MyCustomerSetCompanyNameAction template) create builder for MyCustomerSetCompanyNameAction instancedeepCopy
(MyCustomerSetCompanyNameAction template) factory method to create a deep copy of MyCustomerSetCompanyNameActionValue to set.of()
factory methodof
(MyCustomerSetCompanyNameAction template) factory method to create a shallow copy MyCustomerSetCompanyNameActionvoid
setCompanyName
(String companyName) Value to set.static com.fasterxml.jackson.core.type.TypeReference<MyCustomerSetCompanyNameAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCustomerUpdateAction
getAction, withMyCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_COMPANY_NAME
discriminator value for MyCustomerSetCompanyNameAction- 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 MyCustomerSetCompanyNameAction
-
of
factory method to create a shallow copy MyCustomerSetCompanyNameAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyCustomerSetCompanyNameAction deepCopy(@Nullable MyCustomerSetCompanyNameAction template) factory method to create a deep copy of MyCustomerSetCompanyNameAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerSetCompanyNameAction- Returns:
- builder
-
builder
create builder for MyCustomerSetCompanyNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerSetCompanyNameAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<MyCustomerSetCompanyNameAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-