Interface VariantSetAssetKeyAction
- All Superinterfaces:
VariantUpdateAction
Sets the key of an existing Asset on a Variant.
Example to create an instance using the builder pattern
VariantSetAssetKeyAction variantSetAssetKeyAction = VariantSetAssetKeyAction.builder()
.assetId("{assetId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantSetAssetKeyAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantSetAssetKeyActionbuilder(VariantSetAssetKeyAction template) create builder for VariantSetAssetKeyAction instancecopyDeep()static VariantSetAssetKeyActiondeepCopy(VariantSetAssetKeyAction template) factory method to create a deep copy of VariantSetAssetKeyAction@NotNull StringTheidof the Asset to update.Value to set.Iftrue, only the staged Asset is updated.static VariantSetAssetKeyActionof()factory methodstatic VariantSetAssetKeyActionof(VariantSetAssetKeyAction template) factory method to create a shallow copy VariantSetAssetKeyActionvoidsetAssetId(String assetId) Theidof the Asset to update.voidsetAssetKey(String assetKey) Value to set.voidIftrue, only the staged Asset is updated.static tools.jackson.core.type.TypeReference<VariantSetAssetKeyAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.variant.VariantUpdateAction
getAction, withVariantUpdateAction
-
Field Details
-
SET_ASSET_KEY
discriminator value for VariantSetAssetKeyAction- See Also:
-
-
Method Details
-
getStaged
Boolean getStaged()If
true, only the staged Asset is updated. Iffalse, both the current and staged Asset is updated.- Returns:
- staged
-
getAssetId
The
idof the Asset to update.- Returns:
- assetId
-
getAssetKey
String getAssetKey()Value to set. If empty, any existing value will be removed.
- Returns:
- assetKey
-
setStaged
If
true, only the staged Asset is updated. Iffalse, both the current and staged Asset is updated.- Parameters:
staged- value to be set
-
setAssetId
The
idof the Asset to update.- 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 VariantSetAssetKeyAction
-
of
factory method to create a shallow copy VariantSetAssetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantSetAssetKeyAction copyDeep()- Specified by:
copyDeepin interfaceVariantUpdateAction
-
deepCopy
factory method to create a deep copy of VariantSetAssetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantSetAssetKeyAction- Returns:
- builder
-
builder
create builder for VariantSetAssetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantSetAssetKeyAction
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
-