Interface CategorySetAssetDescriptionAction
- All Superinterfaces:
CategoryUpdateAction,ResourceUpdateAction<CategoryUpdateAction>
CategorySetAssetDescriptionAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategorySetAssetDescriptionAction categorySetAssetDescriptionAction = CategorySetAssetDescriptionAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CategorySetAssetDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CategorySetAssetDescriptionActionbuilder(CategorySetAssetDescriptionAction template) create builder for CategorySetAssetDescriptionAction instancecopyDeep()deepCopy(CategorySetAssetDescriptionAction template) factory method to create a deep copy of CategorySetAssetDescriptionActionNew value to set.New value to set.@Valid LocalizedStringValue to set.of()factory methodof(CategorySetAssetDescriptionAction template) factory method to create a shallow copy CategorySetAssetDescriptionActionvoidsetAssetId(String assetId) New value to set.voidsetAssetKey(String assetKey) New value to set.voidsetDescription(LocalizedString description) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CategorySetAssetDescriptionAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.category.CategoryUpdateAction
getAction, withCategoryUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_ASSET_DESCRIPTION
discriminator value for CategorySetAssetDescriptionAction- See Also:
-
-
Method Details
-
getAssetId
String getAssetId()New value to set. Either
assetIdorassetKeyis required.- Returns:
- assetId
-
getAssetKey
String getAssetKey()New value to set. Either
assetIdorassetKeyis required.- Returns:
- assetKey
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
setAssetId
New value to set. Either
assetIdorassetKeyis required.- Parameters:
assetId- value to be set
-
setAssetKey
New value to set. Either
assetIdorassetKeyis required.- Parameters:
assetKey- value to be set
-
setDescription
Value to set. If empty, any existing value will be removed.
- Parameters:
description- value to be set
-
of
factory method- Returns:
- instance of CategorySetAssetDescriptionAction
-
of
factory method to create a shallow copy CategorySetAssetDescriptionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CategorySetAssetDescriptionAction copyDeep()- Specified by:
copyDeepin interfaceCategoryUpdateAction
-
deepCopy
@Nullable static CategorySetAssetDescriptionAction deepCopy(@Nullable CategorySetAssetDescriptionAction template) factory method to create a deep copy of CategorySetAssetDescriptionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategorySetAssetDescriptionAction- Returns:
- builder
-
builder
create builder for CategorySetAssetDescriptionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCategorySetAssetDescriptionAction
default <T> T withCategorySetAssetDescriptionAction(Function<CategorySetAssetDescriptionAction, 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<CategorySetAssetDescriptionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-