Class WidgetAttributes

java.lang.Object
com.datadog.api.client.v2.model.WidgetAttributes

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class WidgetAttributes extends Object
Attributes of a widget resource.
  • Field Details

  • Constructor Details

  • Method Details

    • createdAt

      public WidgetAttributes createdAt(String createdAt)
    • getCreatedAt

      public String getCreatedAt()
      ISO 8601 timestamp of when the widget was created.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(String createdAt)
    • definition

      public WidgetAttributes definition(WidgetDefinition definition)
    • getDefinition

      public WidgetDefinition getDefinition()
      The definition of a widget, including its type and configuration.
      Returns:
      definition
    • setDefinition

      public void setDefinition(WidgetDefinition definition)
    • isFavorited

      public WidgetAttributes isFavorited(Boolean isFavorited)
    • getIsFavorited

      public Boolean getIsFavorited()
      Whether the current user has favorited this widget. Populated on get, batch_get, update, and search responses; create responses always return false because a widget can only be favorited after it exists. Favoriting itself is performed through the shared favorites API, not this service.
      Returns:
      isFavorited
    • setIsFavorited

      public void setIsFavorited(Boolean isFavorited)
    • modifiedAt

      public WidgetAttributes modifiedAt(String modifiedAt)
    • getModifiedAt

      public String getModifiedAt()
      ISO 8601 timestamp of when the widget was last modified.
      Returns:
      modifiedAt
    • setModifiedAt

      public void setModifiedAt(String modifiedAt)
    • tags

      public WidgetAttributes tags(List<String> tags)
    • addTagsItem

      public WidgetAttributes addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      User-defined tags for organizing widgets.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • putAdditionalProperty

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