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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CategorySetAssetDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CategorySetAssetDescriptionActionbuilder
(CategorySetAssetDescriptionAction template) create builder for CategorySetAssetDescriptionAction instancedeepCopy
(CategorySetAssetDescriptionAction template) factory method to create a deep copy of CategorySetAssetDescriptionActionNew value to set.New value to set.@Valid LocalizedString
Value to set.of()
factory methodof
(CategorySetAssetDescriptionAction template) factory method to create a shallow copy CategorySetAssetDescriptionActionvoid
setAssetId
(String assetId) New value to set.void
setAssetKey
(String assetKey) New value to set.void
setDescription
(LocalizedString description) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CategorySetAssetDescriptionAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.category.CategoryUpdateAction
getAction, withCategoryUpdateAction
Methods 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
assetId
orassetKey
is required.- Returns:
- assetId
-
getAssetKey
String getAssetKey()New value to set. Either
assetId
orassetKey
is required.- Returns:
- assetKey
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
setAssetId
New value to set. Either
assetId
orassetKey
is required.- Parameters:
assetId
- value to be set
-
setAssetKey
New value to set. Either
assetId
orassetKey
is 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
-
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
-