Interface ProductTypeChangeInputHintAction
- All Superinterfaces:
ProductTypeUpdateAction
,ResourceUpdateAction<ProductTypeUpdateAction>
- All Known Implementing Classes:
ProductTypeChangeInputHintActionImpl
Updates the inputHint
of an AttributeDefinition.
Example to create an instance using the builder pattern
ProductTypeChangeInputHintAction productTypeChangeInputHintAction = ProductTypeChangeInputHintAction.builder()
.attributeName("{attributeName}")
.newValue(TextInputHint.SINGLE_LINE)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTypeChangeInputHintAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTypeChangeInputHintActionbuilder
(ProductTypeChangeInputHintAction template) create builder for ProductTypeChangeInputHintAction instancedeepCopy
(ProductTypeChangeInputHintAction template) factory method to create a deep copy of ProductTypeChangeInputHintAction@NotNull String
Name of the AttributeDefinition to update.@NotNull TextInputHint
SingleLine
orMultiLine
of()
factory methodof
(ProductTypeChangeInputHintAction template) factory method to create a shallow copy ProductTypeChangeInputHintActionvoid
setAttributeName
(String attributeName) Name of the AttributeDefinition to update.void
setNewValue
(TextInputHint newValue) SingleLine
orMultiLine
static com.fasterxml.jackson.core.type.TypeReference<ProductTypeChangeInputHintAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_type.ProductTypeUpdateAction
getAction, withProductTypeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_INPUT_HINT
discriminator value for ProductTypeChangeInputHintAction- See Also:
-
-
Method Details
-
getAttributeName
Name of the AttributeDefinition to update.
- Returns:
- attributeName
-
getNewValue
SingleLine
orMultiLine
- Returns:
- newValue
-
setAttributeName
Name of the AttributeDefinition to update.
- Parameters:
attributeName
- value to be set
-
setNewValue
SingleLine
orMultiLine
- Parameters:
newValue
- value to be set
-
of
factory method- Returns:
- instance of ProductTypeChangeInputHintAction
-
of
factory method to create a shallow copy ProductTypeChangeInputHintAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTypeChangeInputHintAction deepCopy(@Nullable ProductTypeChangeInputHintAction template) factory method to create a deep copy of ProductTypeChangeInputHintAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeChangeInputHintAction- Returns:
- builder
-
builder
create builder for ProductTypeChangeInputHintAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeChangeInputHintAction
default <T> T withProductTypeChangeInputHintAction(Function<ProductTypeChangeInputHintAction, 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<ProductTypeChangeInputHintAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-