Class AssetSourceImpl

java.lang.Object
com.commercetools.api.models.common.AssetSourceImpl
All Implemented Interfaces:
AssetSource, WithKey, io.vrap.rmf.base.client.ModelBase

public class AssetSourceImpl extends Object implements AssetSource, io.vrap.rmf.base.client.ModelBase

Representation of an Asset in a specific format, for example a video in a certain encoding, or an image in a certain resolution.

  • 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
     
    Indicates the type of content, for example application/pdf.
    Width and height of the AssetSource.
    User-defined identifier of the AssetSource.
    URI of the AssetSource.
    int
     
    void
    setContentType(String contentType)
    Indicates the type of content, for example application/pdf.
    void
    Width and height of the AssetSource.
    void
    User-defined identifier of the AssetSource.
    void
    URI of the AssetSource.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.commercetools.api.models.common.AssetSource

    withAssetSource

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

    reflectionString, reflectionString
  • Constructor Details

    • AssetSourceImpl

      public AssetSourceImpl()
      create empty instance
  • Method Details

    • getUri

      public String getUri()

      URI of the AssetSource.

      Specified by:
      getUri in interface AssetSource
      Returns:
      uri
    • getKey

      public String getKey()

      User-defined identifier of the AssetSource. Must be unique per Asset.

      Specified by:
      getKey in interface AssetSource
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getDimensions

      public AssetDimensions getDimensions()

      Width and height of the AssetSource.

      Specified by:
      getDimensions in interface AssetSource
      Returns:
      dimensions
    • getContentType

      public String getContentType()

      Indicates the type of content, for example application/pdf.

      Specified by:
      getContentType in interface AssetSource
      Returns:
      contentType
    • setUri

      public void setUri(String uri)
      Description copied from interface: AssetSource

      URI of the AssetSource.

      Specified by:
      setUri in interface AssetSource
      Parameters:
      uri - value to be set
    • setKey

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

      User-defined identifier of the AssetSource. Must be unique per Asset.

      Specified by:
      setKey in interface AssetSource
      Parameters:
      key - value to be set
    • setDimensions

      public void setDimensions(AssetDimensions dimensions)
      Description copied from interface: AssetSource

      Width and height of the AssetSource.

      Specified by:
      setDimensions in interface AssetSource
      Parameters:
      dimensions - value to be set
    • setContentType

      public void setContentType(String contentType)
      Description copied from interface: AssetSource

      Indicates the type of content, for example application/pdf.

      Specified by:
      setContentType in interface AssetSource
      Parameters:
      contentType - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object