Interface ProductSelectionChangeNameAction
- All Superinterfaces:
ProductSelectionUpdateAction,ResourceUpdateAction<ProductSelectionUpdateAction>
ProductSelectionChangeNameAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionChangeNameAction productSelectionChangeNameAction = ProductSelectionChangeNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSelectionChangeNameAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSelectionChangeNameActionbuilder(ProductSelectionChangeNameAction template) create builder for ProductSelectionChangeNameAction instancecopyDeep()deepCopy(ProductSelectionChangeNameAction template) factory method to create a deep copy of ProductSelectionChangeNameAction@NotNull @Valid LocalizedStringgetName()The new name to be set for the ProductSelection.of()factory methodof(ProductSelectionChangeNameAction template) factory method to create a shallow copy ProductSelectionChangeNameActionvoidsetName(LocalizedString name) The new name to be set for the ProductSelection.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionChangeNameAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product_selection.ProductSelectionUpdateAction
getAction, withProductSelectionUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_NAME
discriminator value for ProductSelectionChangeNameAction- See Also:
-
-
Method Details
-
getName
The new name to be set for the ProductSelection.
- Returns:
- name
-
setName
The new name to be set for the ProductSelection.
- Parameters:
name- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionChangeNameAction
-
of
factory method to create a shallow copy ProductSelectionChangeNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductSelectionChangeNameAction copyDeep()- Specified by:
copyDeepin interfaceProductSelectionUpdateAction
-
deepCopy
@Nullable static ProductSelectionChangeNameAction deepCopy(@Nullable ProductSelectionChangeNameAction template) factory method to create a deep copy of ProductSelectionChangeNameAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionChangeNameAction- Returns:
- builder
-
builder
create builder for ProductSelectionChangeNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionChangeNameAction
default <T> T withProductSelectionChangeNameAction(Function<ProductSelectionChangeNameAction, T> helper) 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<ProductSelectionChangeNameAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-