Class AssetImpl

java.lang.Object
com.commercetools.api.models.common.AssetImpl
All Implemented Interfaces:
Asset, Customizable<Asset>, WithKey, io.vrap.rmf.base.client.ModelBase

public class AssetImpl extends Object implements Asset, io.vrap.rmf.base.client.ModelBase
Asset
  • Constructor Details

    • AssetImpl

      public AssetImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Asset.

      Specified by:
      getId in interface Asset
      Returns:
      id
    • getSources

      public List<AssetSource> getSources()
      Specified by:
      getSources in interface Asset
      Returns:
      sources
    • getName

      public LocalizedString getName()

      Name of the Asset.

      Specified by:
      getName in interface Asset
      Returns:
      name
    • getDescription

      public LocalizedString getDescription()

      Description of the Asset.

      Specified by:
      getDescription in interface Asset
      Returns:
      description
    • getTags

      public List<String> getTags()

      Keywords for categorizing and organizing Assets.

      Specified by:
      getTags in interface Asset
      Returns:
      tags
    • getCustom

      public CustomFields getCustom()

      Custom Fields defined for the Asset.

      Specified by:
      getCustom in interface Asset
      Specified by:
      getCustom in interface Customizable<Asset>
      Returns:
      custom
    • getKey

      public String getKey()

      User-defined identifier of the Asset. It is unique per Category or ProductVariant.

      Specified by:
      getKey in interface Asset
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • setId

      public void setId(String id)
      Description copied from interface: Asset

      Unique identifier of the Asset.

      Specified by:
      setId in interface Asset
      Parameters:
      id - value to be set
    • setSources

      public void setSources(AssetSource... sources)
      Description copied from interface: Asset
      set sources
      Specified by:
      setSources in interface Asset
      Parameters:
      sources - values to be set
    • setSources

      public void setSources(List<AssetSource> sources)
      Description copied from interface: Asset
      set sources
      Specified by:
      setSources in interface Asset
      Parameters:
      sources - values to be set
    • setName

      public void setName(LocalizedString name)
      Description copied from interface: Asset

      Name of the Asset.

      Specified by:
      setName in interface Asset
      Parameters:
      name - value to be set
    • setDescription

      public void setDescription(LocalizedString description)
      Description copied from interface: Asset

      Description of the Asset.

      Specified by:
      setDescription in interface Asset
      Parameters:
      description - value to be set
    • setTags

      public void setTags(String... tags)
      Description copied from interface: Asset

      Keywords for categorizing and organizing Assets.

      Specified by:
      setTags in interface Asset
      Parameters:
      tags - values to be set
    • setTags

      public void setTags(List<String> tags)
      Description copied from interface: Asset

      Keywords for categorizing and organizing Assets.

      Specified by:
      setTags in interface Asset
      Parameters:
      tags - values to be set
    • setCustom

      public void setCustom(CustomFields custom)
      Description copied from interface: Asset

      Custom Fields defined for the Asset.

      Specified by:
      setCustom in interface Asset
      Specified by:
      setCustom in interface Customizable<Asset>
      Parameters:
      custom - value to be set
    • setKey

      public void setKey(String key)
      Description copied from interface: Asset

      User-defined identifier of the Asset. It is unique per Category or ProductVariant.

      Specified by:
      setKey in interface Asset
      Parameters:
      key - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object