Interface ProductChangeNameAction
- All Superinterfaces:
ProductUpdateAction,ResourceUpdateAction<ProductUpdateAction>
ProductChangeNameAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductChangeNameAction productChangeNameAction = ProductChangeNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductChangeNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductChangeNameActionbuilder(ProductChangeNameAction template) create builder for ProductChangeNameAction instancecopyDeep()static ProductChangeNameActiondeepCopy(ProductChangeNameAction template) factory method to create a deep copy of ProductChangeNameAction@NotNull @Valid LocalizedStringgetName()Value to set.Iftrue, only the stagednameis updated.static ProductChangeNameActionof()factory methodstatic ProductChangeNameActionof(ProductChangeNameAction template) factory method to create a shallow copy ProductChangeNameActionvoidsetName(LocalizedString name) Value to set.voidIftrue, only the stagednameis updated.static com.fasterxml.jackson.core.type.TypeReference<ProductChangeNameAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_NAME
discriminator value for ProductChangeNameAction- See Also:
-
-
Method Details
-
getName
Value to set. Must not be empty.
- Returns:
- name
-
getStaged
Boolean getStaged()If
true, only the stagednameis updated. Iffalse, both the current and stagednameare updated.- Returns:
- staged
-
setName
Value to set. Must not be empty.
- Parameters:
name- value to be set
-
setStaged
If
true, only the stagednameis updated. Iffalse, both the current and stagednameare updated.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of ProductChangeNameAction
-
of
factory method to create a shallow copy ProductChangeNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductChangeNameAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
deepCopy
factory method to create a deep copy of ProductChangeNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductChangeNameAction- Returns:
- builder
-
builder
create builder for ProductChangeNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductChangeNameAction
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
-