Class WidgetLayout

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class WidgetLayout extends Object
The layout for a widget on a free or new dashboard layout dashboard.
  • Field Details

  • Constructor Details

    • WidgetLayout

      public WidgetLayout()
    • WidgetLayout

      public WidgetLayout(Long height, Long width, Long x, Long y)
  • Method Details

    • height

      public WidgetLayout height(Long height)
    • getHeight

      public Long getHeight()
      The height of the widget. Should be a non-negative integer. minimum: 0
      Returns:
      height
    • setHeight

      public void setHeight(Long height)
    • isColumnBreak

      public WidgetLayout isColumnBreak(Boolean isColumnBreak)
    • getIsColumnBreak

      @Nullable public Boolean getIsColumnBreak()
      Whether the widget should be the first one on the second column in high density or not. Note: Only for the new dashboard layout and only one widget in the dashboard should have this property set to true.
      Returns:
      isColumnBreak
    • setIsColumnBreak

      public void setIsColumnBreak(Boolean isColumnBreak)
    • width

      public WidgetLayout width(Long width)
    • getWidth

      public Long getWidth()
      The width of the widget. Should be a non-negative integer. minimum: 0
      Returns:
      width
    • setWidth

      public void setWidth(Long width)
    • x

      public WidgetLayout x(Long x)
    • getX

      public Long getX()
      The position of the widget on the x (horizontal) axis. Should be a non-negative integer. minimum: 0
      Returns:
      x
    • setX

      public void setX(Long x)
    • y

      public WidgetLayout y(Long y)
    • getY

      public Long getY()
      The position of the widget on the y (vertical) axis. Should be a non-negative integer. minimum: 0
      Returns:
      y
    • setY

      public void setY(Long y)
    • putAdditionalProperty

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