Interface CategorySetAssetKeyAction
- All Superinterfaces:
CategoryUpdateAction
,ResourceUpdateAction<CategoryUpdateAction>
- All Known Implementing Classes:
CategorySetAssetKeyActionImpl
Set or remove the key
of an Asset.
Example to create an instance using the builder pattern
CategorySetAssetKeyAction categorySetAssetKeyAction = CategorySetAssetKeyAction.builder()
.assetId("{assetId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CategorySetAssetKeyAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CategorySetAssetKeyActionbuilder
(CategorySetAssetKeyAction template) create builder for CategorySetAssetKeyAction instancestatic CategorySetAssetKeyAction
deepCopy
(CategorySetAssetKeyAction template) factory method to create a deep copy of CategorySetAssetKeyAction@NotNull String
Value to set.Value to set.static CategorySetAssetKeyAction
of()
factory methodstatic CategorySetAssetKeyAction
of
(CategorySetAssetKeyAction template) factory method to create a shallow copy CategorySetAssetKeyActionvoid
setAssetId
(String assetId) Value to set.void
setAssetKey
(String assetKey) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CategorySetAssetKeyAction>
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_KEY
discriminator value for CategorySetAssetKeyAction- See Also:
-
-
Method Details
-
getAssetId
Value to set.
- Returns:
- assetId
-
getAssetKey
String getAssetKey()Value to set. If empty, any existing value will be removed.
- Returns:
- assetKey
-
setAssetId
Value to set.
- Parameters:
assetId
- value to be set
-
setAssetKey
Value to set. If empty, any existing value will be removed.
- Parameters:
assetKey
- value to be set
-
of
factory method- Returns:
- instance of CategorySetAssetKeyAction
-
of
factory method to create a shallow copy CategorySetAssetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CategorySetAssetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategorySetAssetKeyAction- Returns:
- builder
-
builder
create builder for CategorySetAssetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCategorySetAssetKeyAction
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
-