Class ImageWidgetDefinition

java.lang.Object
com.datadog.api.client.v1.model.ImageWidgetDefinition

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ImageWidgetDefinition extends Object
The image widget allows you to embed an image on your dashboard. An image can be a PNG, JPG, or animated GIF.
  • Field Details

  • Constructor Details

  • Method Details

    • hasBackground

      public ImageWidgetDefinition hasBackground(Boolean hasBackground)
    • getHasBackground

      @Nullable public Boolean getHasBackground()
      Whether to display a background or not.
      Returns:
      hasBackground
    • setHasBackground

      public void setHasBackground(Boolean hasBackground)
    • hasBorder

      public ImageWidgetDefinition hasBorder(Boolean hasBorder)
    • getHasBorder

      @Nullable public Boolean getHasBorder()
      Whether to display a border or not.
      Returns:
      hasBorder
    • setHasBorder

      public void setHasBorder(Boolean hasBorder)
    • horizontalAlign

      public ImageWidgetDefinition horizontalAlign(WidgetHorizontalAlign horizontalAlign)
    • getHorizontalAlign

      @Nullable public WidgetHorizontalAlign getHorizontalAlign()
      Horizontal alignment.
      Returns:
      horizontalAlign
    • setHorizontalAlign

      public void setHorizontalAlign(WidgetHorizontalAlign horizontalAlign)
    • margin

      public ImageWidgetDefinition margin(WidgetMargin margin)
    • getMargin

      @Nullable public WidgetMargin getMargin()
      Size of the margins around the image. Note: small and large values are deprecated.
      Returns:
      margin
    • setMargin

      public void setMargin(WidgetMargin margin)
    • sizing

      public ImageWidgetDefinition sizing(WidgetImageSizing sizing)
    • getSizing

      @Nullable public WidgetImageSizing getSizing()
      How to size the image on the widget. The values are based on the image object-fit CSS properties. Note: zoom, fit and center values are deprecated.
      Returns:
      sizing
    • setSizing

      public void setSizing(WidgetImageSizing sizing)
    • type

    • getType

      public ImageWidgetDefinitionType getType()
      Type of the image widget.
      Returns:
      type
    • setType

      public void setType(ImageWidgetDefinitionType type)
    • url

      public ImageWidgetDefinition url(String url)
    • getUrl

      public String getUrl()
      URL of the image.
      Returns:
      url
    • setUrl

      public void setUrl(String url)
    • urlDarkTheme

      public ImageWidgetDefinition urlDarkTheme(String urlDarkTheme)
    • getUrlDarkTheme

      @Nullable public String getUrlDarkTheme()
      URL of the image in dark mode.
      Returns:
      urlDarkTheme
    • setUrlDarkTheme

      public void setUrlDarkTheme(String urlDarkTheme)
    • verticalAlign

      public ImageWidgetDefinition verticalAlign(WidgetVerticalAlign verticalAlign)
    • getVerticalAlign

      @Nullable public WidgetVerticalAlign getVerticalAlign()
      Vertical alignment.
      Returns:
      verticalAlign
    • setVerticalAlign

      public void setVerticalAlign(WidgetVerticalAlign verticalAlign)
    • putAdditionalProperty

      public ImageWidgetDefinition putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      ImageWidgetDefinition
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this ImageWidgetDefinition object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object