Class AssetCustomTypeAdapter
- java.lang.Object
-
- com.commercetools.sync.commons.models.AssetCustomTypeAdapter
-
- All Implemented Interfaces:
Custom
public final class AssetCustomTypeAdapter extends java.lang.Object implements Custom
Adapt Asset withCustom
interface to be used onCustomUpdateActionUtils
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.commercetools.api.models.type.CustomFields
getCustom()
Get custom fields of theAsset
java.lang.String
getId()
Get Id of theAsset
java.lang.String
getKey()
Get Key of theAsset
java.lang.String
getTypeId()
Get typeId of theAsset
see: https://docs.commercetools.com/api/types#referencetypestatic AssetCustomTypeAdapter
of(com.commercetools.api.models.common.Asset asset)
Build an adapter to be used for preparing custom type actions of with the givenAsset
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Get Id of theAsset
-
getTypeId
public java.lang.String getTypeId()
Get typeId of theAsset
see: https://docs.commercetools.com/api/types#referencetype
-
getCustom
@Nullable public com.commercetools.api.models.type.CustomFields getCustom()
Get custom fields of theAsset
-
getKey
public java.lang.String getKey()
Get Key of theAsset
- Returns:
- the
Asset.getKey()
-
of
public static AssetCustomTypeAdapter of(com.commercetools.api.models.common.Asset asset)
Build an adapter to be used for preparing custom type actions of with the givenAsset
- Parameters:
asset
- theAsset
- Returns:
- the
AssetCustomTypeAdapter
-
-