Package com.commercetools.api.models.me
Interface MyBusinessUnitChangeNameAction
- All Superinterfaces:
MyBusinessUnitUpdateAction
Updating the name on a Business Unit generates a BusinessUnitNameChanged Message.
Example to create an instance using the builder pattern
MyBusinessUnitChangeNameAction myBusinessUnitChangeNameAction = MyBusinessUnitChangeNameAction.builder()
.name("{name}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyBusinessUnitChangeNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyBusinessUnitChangeNameActionbuilder(MyBusinessUnitChangeNameAction template) create builder for MyBusinessUnitChangeNameAction instancecopyDeep()deepCopy(MyBusinessUnitChangeNameAction template) factory method to create a deep copy of MyBusinessUnitChangeNameAction@NotNull StringgetName()New name to set.of()factory methodof(MyBusinessUnitChangeNameAction template) factory method to create a shallow copy MyBusinessUnitChangeNameActionvoidNew name to set.static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitChangeNameAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyBusinessUnitUpdateAction
getAction, withMyBusinessUnitUpdateAction
-
Field Details
-
CHANGE_NAME
discriminator value for MyBusinessUnitChangeNameAction- See Also:
-
-
Method Details
-
getName
New name to set.
- Returns:
- name
-
setName
New name to set.
- Parameters:
name- value to be set
-
of
factory method- Returns:
- instance of MyBusinessUnitChangeNameAction
-
of
factory method to create a shallow copy MyBusinessUnitChangeNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyBusinessUnitChangeNameAction copyDeep()- Specified by:
copyDeepin interfaceMyBusinessUnitUpdateAction
-
deepCopy
@Nullable static MyBusinessUnitChangeNameAction deepCopy(@Nullable MyBusinessUnitChangeNameAction template) factory method to create a deep copy of MyBusinessUnitChangeNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitChangeNameAction- Returns:
- builder
-
builder
create builder for MyBusinessUnitChangeNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitChangeNameAction
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<MyBusinessUnitChangeNameAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-