Class ImageComponent

java.lang.Object
com.intercom.api.types.ImageComponent

public final class ImageComponent extends Object
  • Method Details

    • getId

      public Optional<String> getId()
      Returns:
      A unique identifier for the component.
    • getUrl

      public String getUrl()
      Returns:
      The URL where the image is located.
    • getAlign

      public Optional<ImageComponent.Align> getAlign()
      Returns:
      Aligns the image inside the component. Default is left.
    • getWidth

      public int getWidth()
      Returns:
      The exact width of the image in pixels.
    • getHeight

      public int getHeight()
      Returns:
      The exact height of the image in pixels.
    • getRounded

      public Optional<Boolean> getRounded()
      Returns:
      Rounds the corners of the image. Default is false.
    • getBottomMargin

      public Optional<String> getBottomMargin()
      Returns:
      Disables a component's margin-bottom of 10px.
    • getAction

      public Optional<UrlActionComponent> getAction()
      Returns:
      This can be a URL Action only.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static ImageComponent.UrlStage builder()