Class WidgetConditionalFormat

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class WidgetConditionalFormat extends Object
Define a conditional format for the widget.
  • Field Details

  • Constructor Details

    • WidgetConditionalFormat

      public WidgetConditionalFormat()
    • WidgetConditionalFormat

      public WidgetConditionalFormat(WidgetComparator comparator, WidgetPalette palette, Double value)
  • Method Details

    • comparator

      public WidgetConditionalFormat comparator(WidgetComparator comparator)
    • getComparator

      public WidgetComparator getComparator()
      Comparator to apply.
      Returns:
      comparator
    • setComparator

      public void setComparator(WidgetComparator comparator)
    • customBgColor

      public WidgetConditionalFormat customBgColor(String customBgColor)
    • getCustomBgColor

      @Nullable public String getCustomBgColor()
      Color palette to apply to the background, same values available as palette.
      Returns:
      customBgColor
    • setCustomBgColor

      public void setCustomBgColor(String customBgColor)
    • customFgColor

      public WidgetConditionalFormat customFgColor(String customFgColor)
    • getCustomFgColor

      @Nullable public String getCustomFgColor()
      Color palette to apply to the foreground, same values available as palette.
      Returns:
      customFgColor
    • setCustomFgColor

      public void setCustomFgColor(String customFgColor)
    • hideValue

      public WidgetConditionalFormat hideValue(Boolean hideValue)
    • getHideValue

      @Nullable public Boolean getHideValue()
      True hides values.
      Returns:
      hideValue
    • setHideValue

      public void setHideValue(Boolean hideValue)
    • imageUrl

      public WidgetConditionalFormat imageUrl(String imageUrl)
    • getImageUrl

      @Nullable public String getImageUrl()
      Displays an image as the background.
      Returns:
      imageUrl
    • setImageUrl

      public void setImageUrl(String imageUrl)
    • metric

      public WidgetConditionalFormat metric(String metric)
    • getMetric

      @Nullable public String getMetric()
      Metric from the request to correlate this conditional format with.
      Returns:
      metric
    • setMetric

      public void setMetric(String metric)
    • palette

      public WidgetConditionalFormat palette(WidgetPalette palette)
    • getPalette

      public WidgetPalette getPalette()
      Color palette to apply.
      Returns:
      palette
    • setPalette

      public void setPalette(WidgetPalette palette)
    • timeframe

      public WidgetConditionalFormat timeframe(String timeframe)
    • getTimeframe

      @Nullable public String getTimeframe()
      Defines the displayed timeframe.
      Returns:
      timeframe
    • setTimeframe

      public void setTimeframe(String timeframe)
    • value

      public WidgetConditionalFormat value(Double value)
    • getValue

      public Double getValue()
      Value for the comparator.
      Returns:
      value
    • setValue

      public void setValue(Double value)
    • putAdditionalProperty

      public WidgetConditionalFormat 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:
      WidgetConditionalFormat
    • 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 WidgetConditionalFormat 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