Class NoteWidgetDefinition

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class NoteWidgetDefinition extends Object
The notes and links widget is similar to free text widget, but allows for more formatting options.
  • Field Details

  • Constructor Details

    • NoteWidgetDefinition

      public NoteWidgetDefinition()
    • NoteWidgetDefinition

      public NoteWidgetDefinition(String content, NoteWidgetDefinitionType type)
  • Method Details

    • backgroundColor

      public NoteWidgetDefinition backgroundColor(String backgroundColor)
    • getBackgroundColor

      @Nullable public String getBackgroundColor()
      Background color of the note.
      Returns:
      backgroundColor
    • setBackgroundColor

      public void setBackgroundColor(String backgroundColor)
    • content

      public NoteWidgetDefinition content(String content)
    • getContent

      public String getContent()
      Content of the note.
      Returns:
      content
    • setContent

      public void setContent(String content)
    • fontSize

      public NoteWidgetDefinition fontSize(String fontSize)
    • getFontSize

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

      public void setFontSize(String fontSize)
    • hasPadding

      public NoteWidgetDefinition hasPadding(Boolean hasPadding)
    • getHasPadding

      @Nullable public Boolean getHasPadding()
      Whether to add padding or not.
      Returns:
      hasPadding
    • setHasPadding

      public void setHasPadding(Boolean hasPadding)
    • showTick

      public NoteWidgetDefinition showTick(Boolean showTick)
    • getShowTick

      @Nullable public Boolean getShowTick()
      Whether to show a tick or not.
      Returns:
      showTick
    • setShowTick

      public void setShowTick(Boolean showTick)
    • textAlign

      public NoteWidgetDefinition textAlign(WidgetTextAlign textAlign)
    • getTextAlign

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

      public void setTextAlign(WidgetTextAlign textAlign)
    • tickEdge

      public NoteWidgetDefinition tickEdge(WidgetTickEdge tickEdge)
    • getTickEdge

      @Nullable public WidgetTickEdge getTickEdge()
      Define how you want to align the text on the widget.
      Returns:
      tickEdge
    • setTickEdge

      public void setTickEdge(WidgetTickEdge tickEdge)
    • tickPos

      public NoteWidgetDefinition tickPos(String tickPos)
    • getTickPos

      @Nullable public String getTickPos()
      Where to position the tick on an edge.
      Returns:
      tickPos
    • setTickPos

      public void setTickPos(String tickPos)
    • type

    • getType

      public NoteWidgetDefinitionType getType()
      Type of the note widget.
      Returns:
      type
    • setType

      public void setType(NoteWidgetDefinitionType type)
    • verticalAlign

      public NoteWidgetDefinition verticalAlign(WidgetVerticalAlign verticalAlign)
    • getVerticalAlign

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

      public void setVerticalAlign(WidgetVerticalAlign verticalAlign)
    • putAdditionalProperty

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