java.lang.Object
com.commercetools.importapi.models.common.AssetImpl
All Implemented Interfaces:
Asset, io.vrap.rmf.base.client.ModelBase

public class AssetImpl extends Object implements Asset, io.vrap.rmf.base.client.ModelBase
Asset
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The representation to be sent to the server when creating a resource with custom fields.
    A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
    User-defined identifier for the asset.
    A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
     
     
    int
     
    void
    setCustom(Custom custom)
    The representation to be sent to the server when creating a resource with custom fields.
    void
    A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
    void
    User-defined identifier for the asset.
    void
    A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
    void
    setSources(AssetSource... sources)
    set sources
    void
    set sources
    void
    setTags(String... tags)
    set tags
    void
    set tags
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.commercetools.importapi.models.common.Asset

    withAsset

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString
  • Constructor Details

    • AssetImpl

      public AssetImpl()
      create empty instance
  • Method Details

    • getKey

      public String getKey()

      User-defined identifier for the asset. Asset keys are unique inside their container (a product variant or a category).

      Specified by:
      getKey in interface Asset
      Returns:
      key
    • getSources

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

      public LocalizedString getName()

      A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.

      {
          "de": "Hundefutter",
          "en": "dog food"
        }
        
      Specified by:
      getName in interface Asset
      Returns:
      name
    • getDescription

      public LocalizedString getDescription()

      A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.

      {
          "de": "Hundefutter",
          "en": "dog food"
        }
        
      Specified by:
      getDescription in interface Asset
      Returns:
      description
    • getTags

      public List<String> getTags()
      Specified by:
      getTags in interface Asset
      Returns:
      tags
    • getCustom

      public Custom getCustom()

      The representation to be sent to the server when creating a resource with custom fields.

      Specified by:
      getCustom in interface Asset
      Returns:
      custom
    • setKey

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

      User-defined identifier for the asset. Asset keys are unique inside their container (a product variant or a category).

      Specified by:
      setKey in interface Asset
      Parameters:
      key - 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

      A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.

      {
          "de": "Hundefutter",
          "en": "dog food"
        }
        
      Specified by:
      setName in interface Asset
      Parameters:
      name - value to be set
    • setDescription

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

      A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.

      {
          "de": "Hundefutter",
          "en": "dog food"
        }
        
      Specified by:
      setDescription in interface Asset
      Parameters:
      description - value to be set
    • setTags

      public void setTags(String... tags)
      Description copied from interface: Asset
      set tags
      Specified by:
      setTags in interface Asset
      Parameters:
      tags - values to be set
    • setTags

      public void setTags(List<String> tags)
      Description copied from interface: Asset
      set tags
      Specified by:
      setTags in interface Asset
      Parameters:
      tags - values to be set
    • setCustom

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

      The representation to be sent to the server when creating a resource with custom fields.

      Specified by:
      setCustom in interface Asset
      Parameters:
      custom - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object