Class FreeTextWidgetDefinition

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class FreeTextWidgetDefinition extends Object
Free text is a widget that allows you to add headings to your dashboard. Commonly used to state the overall purpose of the dashboard.
  • Field Details

  • Constructor Details

  • Method Details

    • backgroundColor

      public FreeTextWidgetDefinition backgroundColor(String backgroundColor)
    • getBackgroundColor

      @Nullable public String getBackgroundColor()
      Background color of the widget. Supported values are white, blue, purple, pink, orange, yellow, green , gray, vivid_blue, vivid_purple, vivid_pink, vivid_orange, vivid_yellow, vivid_green , and transparent.
      Returns:
      backgroundColor
    • setBackgroundColor

      public void setBackgroundColor(String backgroundColor)
    • color

      public FreeTextWidgetDefinition color(String color)
    • getColor

      @Nullable public String getColor()
      Color of the text.
      Returns:
      color
    • setColor

      public void setColor(String color)
    • fontSize

      public FreeTextWidgetDefinition fontSize(String fontSize)
    • getFontSize

      @Nullable public String getFontSize()
      Size of the text.
      Returns:
      fontSize
    • setFontSize

      public void setFontSize(String fontSize)
    • text

      public FreeTextWidgetDefinition text(String text)
    • getText

      public String getText()
      Text to display.
      Returns:
      text
    • setText

      public void setText(String text)
    • textAlign

      public FreeTextWidgetDefinition textAlign(WidgetTextAlign textAlign)
    • getTextAlign

      @Nullable public WidgetTextAlign getTextAlign()
      How to align the text on the widget.
      Returns:
      textAlign
    • setTextAlign

      public void setTextAlign(WidgetTextAlign textAlign)
    • type

    • getType

      public FreeTextWidgetDefinitionType getType()
      Type of the free text widget.
      Returns:
      type
    • setType

      public void setType(FreeTextWidgetDefinitionType type)
    • putAdditionalProperty

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