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 withCustominterface to be used onCustomUpdateActionUtils
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.commercetools.api.models.type.CustomFieldsgetCustom()Get custom fields of theAssetjava.lang.StringgetId()Get Id of theAssetjava.lang.StringgetKey()Get Key of theAssetjava.lang.StringgetTypeId()Get typeId of theAssetsee: https://docs.commercetools.com/api/types#referencetypestatic AssetCustomTypeAdapterof(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 theAssetsee: 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
-
-