Interface CategorySetAssetCustomTypeAction
- All Superinterfaces:
CategoryUpdateAction
,ResourceUpdateAction<CategoryUpdateAction>
CategorySetAssetCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategorySetAssetCustomTypeAction categorySetAssetCustomTypeAction = CategorySetAssetCustomTypeAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CategorySetAssetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CategorySetAssetCustomTypeActionbuilder
(CategorySetAssetCustomTypeAction template) create builder for CategorySetAssetCustomTypeAction instancedeepCopy
(CategorySetAssetCustomTypeAction template) factory method to create a deep copy of CategorySetAssetCustomTypeActionNew value to set.New value to set.@Valid FieldContainer
Sets the Custom Fields fields for the Asset.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends the Asset with Custom Fields.of()
factory methodof
(CategorySetAssetCustomTypeAction template) factory method to create a shallow copy CategorySetAssetCustomTypeActionvoid
setAssetId
(String assetId) New value to set.void
setAssetKey
(String assetKey) New value to set.void
setFields
(FieldContainer fields) Sets the Custom Fields fields for the Asset.void
Defines the Type that extends the Asset with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<CategorySetAssetCustomTypeAction>
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_CUSTOM_TYPE
discriminator value for CategorySetAssetCustomTypeAction- 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
-
getType
Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Asset.
- Returns:
- fields
-
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
-
setType
Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Parameters:
type
- value to be set
-
setFields
Sets the Custom Fields fields for the Asset.
- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of CategorySetAssetCustomTypeAction
-
of
factory method to create a shallow copy CategorySetAssetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CategorySetAssetCustomTypeAction deepCopy(@Nullable CategorySetAssetCustomTypeAction template) factory method to create a deep copy of CategorySetAssetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategorySetAssetCustomTypeAction- Returns:
- builder
-
builder
create builder for CategorySetAssetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCategorySetAssetCustomTypeAction
default <T> T withCategorySetAssetCustomTypeAction(Function<CategorySetAssetCustomTypeAction, 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<CategorySetAssetCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-