Class ImageImpl

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

public class ImageImpl extends Object implements Image, io.vrap.rmf.base.client.ModelBase
Image
  • 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
     
    Dimensions of the original image.
    Custom label for the image.
    URL of the image in its original size that must be unique within a single ProductVariant.
    int
     
    void
    Dimensions of the original image.
    void
    Custom label for the image.
    void
    URL of the image in its original size that must be unique within a single ProductVariant.

    Methods inherited from class java.lang.Object

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

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

    withImage

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

    reflectionString, reflectionString
  • Constructor Details

    • ImageImpl

      public ImageImpl()
      create empty instance
  • Method Details

    • getUrl

      public String getUrl()

      URL of the image in its original size that must be unique within a single ProductVariant. If the Project is hosted in the China (AWS, Ningxia) Region, verify that the URL is not blocked due to firewall restrictions.

      Specified by:
      getUrl in interface Image
      Returns:
      url
    • getDimensions

      Dimensions of the original image.

      Specified by:
      getDimensions in interface Image
      Returns:
      dimensions
    • getLabel

      public String getLabel()

      Custom label for the image.

      Specified by:
      getLabel in interface Image
      Returns:
      label
    • setUrl

      public void setUrl(String url)
      Description copied from interface: Image

      URL of the image in its original size that must be unique within a single ProductVariant. If the Project is hosted in the China (AWS, Ningxia) Region, verify that the URL is not blocked due to firewall restrictions.

      Specified by:
      setUrl in interface Image
      Parameters:
      url - value to be set
    • setDimensions

      public void setDimensions(ImageDimensions dimensions)
      Description copied from interface: Image

      Dimensions of the original image.

      Specified by:
      setDimensions in interface Image
      Parameters:
      dimensions - value to be set
    • setLabel

      public void setLabel(String label)
      Description copied from interface: Image

      Custom label for the image.

      Specified by:
      setLabel in interface Image
      Parameters:
      label - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object